<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"
xmlns:ns1="http://schemas.microsoft.com/office/2004/12/omml">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--a:link
{mso-style-priority:99;}
span.MSOHYPERLINK
{mso-style-priority:99;}
a:visited
{mso-style-priority:99;}
span.MSOHYPERLINKFOLLOWED
{mso-style-priority:99;}
code
{mso-style-priority:99;}
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
code
{font-family:"Courier New";}
span.EmailStyle18
{mso-style-type:personal;
font-family:Arial;
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal;
font-family:Calibri;
color:#1F497D;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>--Justin Brown</span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>eSolutions</span></font><font color=navy><span
style='color:navy'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>justin@esolutions.net</span></font><o:p></o:p></p>
</div>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> James Pratt
[mailto:jpratt@norwich.edu] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, May 23, 2008 3:30 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Justin Brown<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [Nagios-users] Host
Down Notifications not being sent</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>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… <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Regards,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>jamie<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p> </o:p></span></font></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Justin Brown<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, May 23, 2008 1:58 PM<br>
<b><span style='font-weight:bold'>To:</span></b>
nagios-users@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Nagios-users] Host Down
Notifications not being sent<o:p></o:p></span></font></p>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi,<br>
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.<br>
<br>
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.<br>
<br>
Here is my contact object:<o:p></o:p></span></font></p>
<p class=MsoNormal><code><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;color:black'>define contact{ </span></font></code><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'><br>
<code><font face="Courier New"> contact_name office
</font></code><br>
<code><font face="Courier New"> alias office
</font></code><br>
<code><font face="Courier New"> host_notifications_enabled 1
</font></code><br>
<code><font face="Courier New"> service_notifications_enabled 1
</font></code><br>
<code><font face="Courier New"> host_notification_period 24x7
</font></code><br>
<code><font face="Courier New"> service_notification_period 24x7
</font></code><br>
<code><font face="Courier New"> host_notification_options d,u,r
</font></code><br>
<code><font face="Courier New"> service_notification_options u,c,r
</font></code><br>
<code><font face="Courier New"> host_notification_commands host-notify-by-email
</font></code><br>
<code><font face="Courier New"> service_notification_commands notify-by-email
</font></code><br>
<code><font face="Courier New"> email myemail@mycompany.com
</font></code><br>
<code><font face="Courier New"> }</font></code></span></font><code><font
size=2 face="Courier New"><span style='font-size:10.0pt'> </span></font></code><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
<br>
And here is the host object (slightly edited):<o:p></o:p></span></font></p>
<p class=MsoNormal><code><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;color:black'>define host{ </span></font></code><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'><br>
<code><font face="Courier New"> host_name server
</font></code><br>
<code><font face="Courier New"> alias Server
</font></code><br>
<code><font face="Courier New"> address 123.123.123.123
</font></code><br>
<code><font face="Courier New"> parents parent_host
</font></code><br>
<code><font face="Courier New"> check_command check-host-alive
</font></code><br>
<code><font face="Courier New"> max_check_attempts 10
</font></code><br>
<code><font face="Courier New"> check_period 24x7
</font></code><br>
<code><font face="Courier New"> notification_interval 10
</font></code><br>
<code><font face="Courier New"> notification_period 24x7
</font></code><br>
<code><font face="Courier New"> notification_options d,u,r
</font></code><br>
<code><font face="Courier New"> contact_groups office_group
</font></code><br>
<code><font face="Courier New"> icon_image tux.png
</font></code><br>
<code><font face="Courier New"> icon_image_alt Linux
</font></code><br>
<code><font face="Courier New"> vrml_image tux.png
</font></code><br>
<code><font face="Courier New"> statusmap_image tux.gd2
</font></code><br>
<code><font face="Courier New"> }</font></code></span></font><code><font
size=2 face="Courier New"><span style='font-size:10.0pt'> </span></font></code><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
Naturally the contact I provided is in the 'office_group' contact_group.<br>
<br>
Thanks in advance.</span></font><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>--Justin Brown</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>eSolutions</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>justin@esolutions.net</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
__________ NOD32 3128 (20080523) Information __________<br>
<br>
This message was checked by NOD32 antivirus system.<br>
<a href="http://www.eset.com">http://www.eset.com</a><o:p></o:p></span></font></p>
</div>
</body>
</html>