Host Down Notifications not being sent
Justin Brown
justin at esolutions.net
Sat May 24 00:52:44 CEST 2008
Thanks for the tip. I looked and the title of the command is correct in my
contact definition. Also, there are no messages in nagios.log indicating
that it is trying to send out emails.
--Justin Brown
eSolutions
justin at esolutions.net
_____
From: James Pratt [mailto:jpratt at norwich.edu]
Sent: Friday, May 23, 2008 3:30 PM
To: Justin Brown
Subject: RE: [Nagios-users] Host Down Notifications not being sent
Not sure if it pertains to your situation, but one of the problems I had
moving to 3.x was that the "host-notify-by-email" command definition name
had changed. See templates.cfg - I believe it changed from like
"notify-host-by-email" to "host-notify-by-email". (or vice-versa - I'm not
on my Nagios box at the moment so I'm not positive) - anyhow, I had the same
issue until I changed them all in my (old) cfg files to match the new
definition names in the 3.x template.cfg file.
Regards,
jamie
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Justin
Brown
Sent: Friday, May 23, 2008 1:58 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Host Down Notifications not being sent
Hi,
I have been using Nagios 2.x for almost 2 years now and I have been very
happy with its performance. Recently I decided to upgrade to version 3 but
when I did Nagios stopped sending out notifications. I figured that I had
some bugs in my configuration so I rebuilt the whole thing one object at a
time using the Nagios 3 documentation. When I had completed that Nagios
still did not send out down notices and I don't know what to do other than
revert back to version 2.
When I go to the Host detail page for a server it says that notifications
are enabled. I know my email command works because I can send custom
notifications just fine. The system correctly displays a server going down
and then up (nagios.log records this as well) but no notifications are sent.
I have doublechecked both my contact and host objects and I can't find
anything wrong. Notifications are enabled in nagios.cfg. Is there anywhere
else I should be looking? Any help you could offer would be greatly
appreciated.
Here is my contact object:
define contact{
contact_name office
alias office
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,u,r
service_notification_options u,c,r
host_notification_commands host-notify-by-email
service_notification_commands notify-by-email
email myemail at mycompany.com
}
And here is the host object (slightly edited):
define host{
host_name server
alias Server
address 123.123.123.123
parents parent_host
check_command check-host-alive
max_check_attempts 10
check_period 24x7
notification_interval 10
notification_period 24x7
notification_options d,u,r
contact_groups office_group
icon_image tux.png
icon_image_alt Linux
vrml_image tux.png
statusmap_image tux.gd2
}
Naturally the contact I provided is in the 'office_group' contact_group.
Thanks in advance.
--Justin Brown
eSolutions
justin at esolutions.net
__________ NOD32 3128 (20080523) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080523/42d11f13/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list