On Wed, Nov 30, 2011 at 05:25:27PM +0000, Nagios FTL wrote: > Good afternoon, > > I am completely new to Nagios so please excuse me if this is a really silly > question: > > I am currently testing before i start to add in real hosts. > > I am testing notifications at the moment and i have created a file for > SWITCHES that i have put in a test switch that does not exist so always > will be down and should trigger notification. > > I recieve Host Alert Emails in the output of > > Subject: ** PROBLEM Host Alert: Test Switch is DOWN ** > > ***** Nagios ***** > > Notification Type: PROBLEM > > Info: CRITICAL - Host Unreachable (192.168.1.208) > > Host: Test Switch > > Address: 192.168.1.208 > > State: DOWN > > Date/Time: Wed Nov 30 16:47:07 GMT 2011 > > > But i never recieve a Service Alert email. > > I have tried disabling nofitications in the host template and only enabling > notifications in the service template but then i recieve nothing at all. > > Here the whole of my switch.cfg that i am using for testing, Nagios likes > it and reports Down and Critical statuses on it so it works but just doesnt > send out service alert notifications. > > http://dl.dropbox.com/u/895609/Switch.cfg > > > Could somebody help me as to why please? > > > Thankyou very much
If the host is in a DOWN state, by default nagios won't also send out service notifications for that host (kind of an in-built service dependency). In the default configuration, you'll only get service notifications when the host is up (the logic being that if a host is down, no services can be running on the host). Check the docs for notifications here: http://nagios.sourceforge.net/docs/3_0/notifications.html Also, if you've got predictive failure checking enabled, nagios will by default perform a host check on the first instance of a service going critical. If this is the behaviour that you want, then you may be able to do something with host/service dependencies: http://nagios.sourceforge.net/docs/3_0/dependencies.html Cheers, -- Richard Clark rich...@fohnet.co.uk
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d
_______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null