<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
## 'Debian server' host definition<br>
define host{<br>
host_name debian<br>
alias Debian server<br>
address ipaddress<br>
check_command check-host-alive<br>
max_check_attempts 3<br>
notification_interval 480<br>
notification_period 24x7<br>
}<br>
<br>
# Service definition 'debian'<br>
define service{<br>
host_name debian<br>
service_description PING<br>
is_volatile 0<br>
check_period 24x7<br>
max_check_attempts 3<br>
normal_check_interval 5<br>
retry_check_interval 1<br>
contact_groups server-admins<br>
notification_interval 120<br>
notification_period 24x7<br>
notification_options c,r<br>
check_command check_ping!100.0,20%!500.0,60%<br>
}<br>
<br>
<br>
# 'root' contact definition<br>
define contact{<br>
contact_name root<br>
alias Super User<br>
service_notification_period 24x7<br>
host_notification_period 24x7<br>
service_notification_options w,u,c,r<br>
host_notification_options d,u,r<br>
service_notification_commands notify-by-email<br>
host_notification_commands host-notify-by-email<br>
email root@redbankng<br>
}<br>
<br>
# 'host-notify-by-email' command definition<br>
define command{<br>
command_name host-notify-by-email<br>
command_line /usr/bin/printf "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost:
$HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo:
$OUTPUT$\n\nDate/Time: $DATETIME$\n" | /usr/bin/mail -s "Host
$HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$<br>
}<br>
<br>
<br>
Thanks,<br>
<br>
<br>
<br>
Kemp, Darren wrote:<br>
<blockquote type="cite"
cite="mid330CE9F92C02064B86090D40B479712F339221@usa0300ms04.na.xerox.net">
<meta http-equiv="Content-Type" content="text/html; ">
<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>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
color:black;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
pre
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.EmailStyle18
{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]-->
<div class="Section1">
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span
style="font-size: 10pt; font-family: Arial; color: navy;">Post your
host template and your command
syntax for the host notification.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span
style="font-size: 10pt; font-family: Arial; color: navy;">-dkk<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<div>
<div class="MsoNormal" align="center" style="text-align: center;"><font
size="3" color="black" face="Times New Roman"><span
style="font-size: 12pt; color: windowtext;">
<hr size="2" width="100%" align="center" tabindex="-1"></span></font></div>
<p class="MsoNormal"><b><font size="2" color="black" face="Tahoma"><span
style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">From:</span></font></b><font
size="2" color="black" face="Tahoma"><span
style="font-size: 10pt; font-family: Tahoma; color: windowtext;">
Sudheer Muddappa [<a class="moz-txt-link-freetext" href="mailto:sudheer@tgs-solutions.com">mailto:sudheer@tgs-solutions.com</a>] <br>
<b><span style="font-weight: bold;">Sent:</span></b> Thursday, August
05, 2004
4:22 PM<br>
<b><span style="font-weight: bold;">To:</span></b>
<a class="moz-txt-link-abbreviated" href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
<b><span style="font-weight: bold;">Cc:</span></b> Kemp, Darren; Marc
Powell<br>
<b><span style="font-weight: bold;">Subject:</span></b> Re:
[Nagios-users] Not
getting email alerts</span></font><font color="black"><span
style="color: windowtext;"><o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font size="3" color="black"
face="Times New Roman"><span style="font-size: 12pt;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black"
face="Times New Roman"><span style="font-size: 12pt;">Guys,<br>
<br>
The catch is I receive emails on snmp traps and disk quota etc.....<br>
<br>
But not on the host down or unreachable.<br>
<br>
Please let me know If you need any config files to look at.<br>
I will send them.<br>
<br>
THanks,<br>
<br>
Kemp, Darren wrote:<br>
<br>
<o:p></o:p></span></font></p>
<pre wrap=""><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">Hosts and Services have separate notification settings. Make sure your<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">host object is setup to notify.<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">-dkk<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">-----Original Message-----<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">From: <a
href="mailto:nagios-users-admin@lists.sourceforge.net">nagios-users-admin@lists.sourceforge.net</a><o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">[<a
href="mailto:nagios-users-admin@lists.sourceforge.net">mailto:nagios-users-admin@lists.sourceforge.net</a>] On Behalf Of Marc<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">Powell<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">Sent: Thursday, August 05, 2004 2:27 PM<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">To: Sudheer Muddappa; <a
href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">Subject: RE: [Nagios-users] Not getting email alerts<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">----Original Message----<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">From: Sudheer Muddappa [<a
href="mailto:sudheer@tgs-solutions.com">mailto:sudheer@tgs-solutions.com</a>]<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">Sent: Thursday, August 05, 2004 12:35 PM<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">To: <a
href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">Subject: Re: [Nagios-users] Not getting email alerts<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"> <o:p></o:p></span></font></pre>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
<pre wrap=""><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">As I mentioned before,<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">I am receiving emails for other services, like disk checks cpu<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">utilization etc. <o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">But host goes down , I dont get any emails at all.<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">And the email id is fine. As everything is happening on the same<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">server. <o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"> <o:p></o:p></span></font></pre>
</blockquote>
<pre wrap=""><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"> <o:p></o:p></span></font></pre>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
<pre wrap=""><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">pertinent to troubleshooting. Additionally, I suggested you look in<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">your nagios.log to verify that nagios was sending out the alerts.<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">What did you find? <o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"> <o:p></o:p></span></font></pre>
</blockquote>
</blockquote>
<pre wrap=""><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">...?<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">--<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">Marc<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">-------------------------------------------------------<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">This SF.Net email is sponsored by OSTG. Have you noticed the changes on<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">one more big change to announce. We are now OSTG- Open Source Technology<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">Group. Come see the changes on the new OSTG site. <a
href="http://www.ostg.com">www.ostg.com</a><o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">_______________________________________________<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">Nagios-users mailing list<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><a
href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><a
href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">::: Please include Nagios version, plugin version (-v) and OS when<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">reporting any issue. <o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">::: Messages without supporting info will risk being sent to /dev/null<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">-------------------------------------------------------<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">This SF.Net email is sponsored by OSTG. Have you noticed the changes on<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">one more big change to announce. We are now OSTG- Open Source Technology<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">Group. Come see the changes on the new OSTG site. <a
href="http://www.ostg.com">www.ostg.com</a><o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">_______________________________________________<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">Nagios-users mailing list<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><a
href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><a
href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;">::: Messages without supporting info will risk being sent to /dev/null<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"> <o:p></o:p></span></font></pre>
<p class="MsoNormal"><font size="3" color="black"
face="Times New Roman"><span style="font-size: 12pt;"><br>
<br>
<o:p></o:p></span></font></p>
<pre><font size="2" color="black" face="Courier New"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">
</pre>
</body>
</html>