Created
March 23, 2013 13:45
-
-
Save mizzy/5227780 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'container_spec_helper' | |
| describe 'nrpe' do | |
| it { should be_installed } | |
| it { should be_enabled } | |
| it { should be_running } | |
| end | |
| describe 'nagios-plugins-all' do | |
| it { should be_installed } | |
| end | |
| describe '/etc/nagios/nrpe.cfg' do | |
| it { should be_file } | |
| it { should contain 'server_port=5666' } | |
| end | |
| describe '/etc/nrpe.d/01base.cfg' do | |
| it { should be_file } | |
| end | |
| describe 'port 5666' do | |
| it { should be_listening } | |
| end | |
| plugins = %w( | |
| check_mem | |
| check_readonlyfs | |
| check_postfix_queue | |
| check_mount | |
| number_range_utils.sh | |
| ) | |
| plugins.each do |plugin| | |
| describe "/usr/lib64/nagios/plugins/#{plugin}" do | |
| it { should be_file } | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment