Code: Select all
grep start /var/log/nagios/nagios.log
Right now I'm wondering if your config has been reloaded since you enabled notifications for the ssh service - no doubt you noticed it's disabled by default.
Code: Select all
grep start /var/log/nagios/nagios.log
Code: Select all
[1425256083] Nagios 4.0.8 starting... (PID=19273)
[1425256711] Nagios 4.0.8 starting... (PID=19544)
[1425256711] Error: Could not find any host matching 'ssh' (config file '/usr/local/nagios/etc/objects/localhost.cfg', starting on line 45)
[1425257653] Nagios 4.0.8 starting... (PID=19966)
[1425257653] Error: Could not find any host matching 'ssh' (config file '/usr/local/nagios/etc/objects/localhost.cfg', starting on line 45)
[1425258280] Nagios 4.0.8 starting... (PID=20217)
[1425262196] Nagios 4.0.8 starting... (PID=21356)
[1425262675] Nagios 4.0.8 starting... (PID=21601)
[1425262882] Nagios 4.0.8 starting... (PID=21711)
[1425265502] Nagios 4.0.8 starting... (PID=940)
[1425206057] Nagios 4.0.8 starting... (PID=1732)
[1425206057] Error: Could not find any host matching 'ssh' (config file '/usr/local/nagios/etc/objects/localhost.cfg', starting on line 45)
[1425206525] Nagios 4.0.8 starting... (PID=1890)
[1425206525] Error: Could not find any host matching 'ssh' (config file '/usr/local/nagios/etc/objects/localhost.cfg', starting on line 45)
[1425206774] Nagios 4.0.8 starting... (PID=1981)
[1425206774] Error: Could not find any host matching 'ssh' (config file '/usr/local/nagios/etc/objects/localhost.cfg', starting on line 46)
[1425296125] Nagios 4.0.8 starting... (PID=946)
[1425296125] Error: Could not find any host matching 'ssh' (config file '/usr/local/nagios/etc/objects/localhost.cfg', starting on line 46)
[1425330408] Nagios 4.0.8 starting... (PID=2881)
[1425330408] Error: Could not find any host matching 'ssh' (config file '/usr/local/nagios/etc/objects/localhost.cfg', starting on line 46)
[1425330707] Nagios 4.0.8 starting... (PID=3043)
[1425330707] Error: Could not find any host matching 'ssh' (config file '/usr/local/nagios/etc/objects/localhost.cfg', starting on line 46)
[1425410275] Nagios 4.0.8 starting... (PID=947)
[1425410275] Error: Could not find any host matching 'ssh' (config file '/usr/local/nagios/etc/objects/localhost.cfg', starting on line 46)
[1425494319] Nagios 4.0.8 starting... (PID=942)
[1425501728] Nagios 4.0.8 starting... (PID=3661)
[1425502535] SERVICE FLAPPING ALERT: localhost;SSH;STARTED; Service appears to have started flapping (23.4% change >= 20.0% threshold)
Code: Select all
debug_level=32
debug_verbosity=2
debug_file=/var/log/nagios/nagios.debug
Code: Select all
service_notification_options w,u,c,r,f,s,n
AAAAAAAAAAAAAAHHHHHHHHHH! YESSSSSSSSSSSSSSSSSSSSSSSSSSSSS! THANK YOU!jdalrymple wrote:I can't believe I didn't see this sooner. The debug log answers all...
Remove the ",n" from the end of that line in contacts.cfg then reload Nagios.Code: Select all
service_notification_options w,u,c,r,f,s,n