Hello Kwame,<br><br>Take note that its /var/log/mail.log (there is a dot between mail and log)<br>That being said, its still not a reason why your mails should not go out, do this:<br><br>- Edit this line in your /etc/hosts to look like this: <span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">127.0.0.1 localhost.localdomain localhost<br>
<br>- Restart sendmail and restart nagios <br><br>It should work if not then<br></span><pre class="screen"><font size="4">- run</font> nmap -sT -O localhost (if you have nmap installed, install if not)</pre>and post the output.<br>
<br>Regards<br><br><div class="gmail_quote">On Mon, May 28, 2012 at 7:18 AM, Kwame Saidi <span dir="ltr"><<a href="mailto:k.saidi@zantel.co.tz" target="_blank">k.saidi@zantel.co.tz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Seun<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Greetings..<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Still am unable to send email , now I cant see any logs from /var/log/maillog<u></u><u></u></span></p>
<div class="im">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#17365d">Regards,</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#17365d">-- Kwame Saidi</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#17365d">Mobile 0777899994</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#17365d">Zantel.</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
</div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Seun Ojedeji [mailto:<a href="mailto:seun.ojedeji@gmail.com" target="_blank">seun.ojedeji@gmail.com</a>]
<br>
<b>Sent:</b> Sunday, May 27, 2012 14:46</span></p><div><div class="h5"><br>
<b>To:</b> Kwame Saidi<br>
<b>Cc:</b> Hervey Allen; <a href="mailto:afnog@afnog.org" target="_blank">afnog@afnog.org</a><br>
<b>Subject:</b> Re: [afnog] Nagios support<u></u><u></u></div></div><p></p>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello Kwame,<u></u><u></u></p>
<div>
<p class="MsoNormal">On Sun, May 27, 2012 at 12:14 PM, Kwame Saidi <<a href="mailto:k.saidi@zantel.co.tz" target="_blank">k.saidi@zantel.co.tz</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Seun<br>
<br>
output of cat /etc/hosts<br>
<br>
[root@mx objects]# hostname<br>
nagios<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"> As you can see, your hostname is nagios so make your /etc/hosts look like this:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</blockquote>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">[root@mx objects]# cat /etc/hosts<br>
# Do not remove the following line, or various programs<br>
# that require network functionality will fail.<br>
127.0.0.1 localhost.localdomain nagios<br>
::1 localhost6.localdomain6 localhost6<br>
10.5.2.13 <a href="http://nagios.domain.com" target="_blank">nagios.domain.com</a> nagios<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">define contact{<br>
contact_name nagiosadmin ; Short name of user<br>
use generic-contact ; Inherit default values from generic-contact template (defined above)<br>
alias Nagios Admin ; Full name of user<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">service_notification_period 24x7<br>
host_notification_period 24x7<br>
service_notification_options w,u,c,r<u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">host_notification_options d,u,r<br>
service_notification_commands notify-service-by-email<br>
host_notification_commands notify-host-by-email<br>
email <a href="mailto:kwaslee@zantel.com" target="_blank">kwaslee@zantel.com</a><br>
}<u></u><u></u></span></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal">This is ok. Once you are done with all the above, run a restart on nagios process and apache2 then you should be good. Come back if not ;)<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><u></u> <u></u></span></p>
<div>
<div class="MsoNormal" style="text-align:center" align="center">
<hr size="2" width="100%" align="center">
</div>
<div>
<p class="MsoNormal"><b><span style="font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-family:"Tahoma","sans-serif""> Seun Ojedeji [<a href="mailto:seun.ojedeji@gmail.com" target="_blank">seun.ojedeji@gmail.com</a>]<br>
<b>Sent:</b> Sunday, May 27, 2012 10:58 AM<u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma","sans-serif""><br>
<b>To:</b> Kwame Saidi<br>
<b>Cc:</b> Hervey Allen; <a href="mailto:afnog@afnog.org" target="_blank">afnog@afnog.org</a><br>
<b>Subject:</b> Re: [afnog] Nagios support<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello Kwame<u></u><u></u></p>
<div>
<p class="MsoNormal">On Sun, May 27, 2012 at 12:33 AM, Kwame Saidi <<a href="mailto:k.saidi@zantel.co.tz" target="_blank">k.saidi@zantel.co.tz</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Seun <br>
<br>
I crosscheck the file mail is located on /bin/mail inside the /usr/bin there's a file callled mail.local<br>
<br>
output of contact.cfg<br>
<br>
###############################################################################<br>
# CONTACTS.CFG - SAMPLE CONTACT/CONTACTGROUP DEFINITIONS<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal">I don't seem to see your definition entry (do you have it created somewhere else?) below is how my entry looks like, edit yours to look like that:<br>
<br>
define contact{<br>
contact_name seun<br>
alias Administrator<br>
service_notification_period 24x7<br>
host_notification_period 24x7<br>
service_notification_options w,u,c,r<br>
host_notification_options d,r<br>
service_notification_commands notify-service-by-email<br>
host_notification_commands notify-host-by-email<br>
email <a href="mailto:seun.ojedeji@gmail.com" target="_blank">
seun.ojedeji@gmail.com</a><br>
<br>
Nevertheless, you need to also fix the error SM spotted. To do that, let see what you have post output of the following(you may disguise you url for privacy ;)<br>
<br>
cat /etc/hosts, hostname, hostname -f<br>
<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"><br>
<u></u><u></u></p>
</div>
</div>
</blockquote>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<div class="MsoNormal" style="text-align:center" align="center">
<hr size="2" width="100%" align="center">
</div>
<div>
<p class="MsoNormal"><b><span style="font-family:"Tahoma","sans-serif""> From:</span></b><span style="font-family:"Tahoma","sans-serif""> Seun Ojedeji [<a href="mailto:seun.ojedeji@gmail.com" target="_blank">seun.ojedeji@gmail.com</a>]<br>
<b>Sent:</b> Sunday, May 27, 2012 1:43 AM <u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma","sans-serif""><br>
<b>To:</b> Kwame Saidi<br>
<b>Cc:</b> Hervey Allen; <a href="mailto:afnog@afnog.org" target="_blank">afnog@afnog.org</a><br>
<b>Subject:</b> Re: [afnog] Nagios support<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello Kwame,<u></u><u></u></p>
<div>
<p class="MsoNormal">On Sat, May 26, 2012 at 10:52 PM, Kwame Saidi <<a href="mailto:k.saidi@zantel.co.tz" target="_blank">k.saidi@zantel.co.tz</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Seun</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Below are the output of command.cfg</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""><<snip>></span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'notify-host-by-email' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name notify-host-by-email</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n"
| <b>/bin/mail -s</b> "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'notify-service-by-email' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name notify-service-by-email</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
$LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n" | <b>/bin/mail -s</b> "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal">Could you crosscheck the part in bold i think it should be /usr/bin/mail -s (you could cd into /bin to see whether the file mail exist in there)<br>
<br>
Also trust your contacts.cfg has been setup properly? if you try the above ensure you restart nagios then try to trigger the notification by shutting down a service you are monitoring. If it still does not work then post output of cat /etc/nagios3/conf.d/contacts_nagios2.cfg
(OR cat /etc/nagios3/conf.d/contacts.cfg).<br>
<br>
Cheers!<br>
<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">################################################################################</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">#</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># SAMPLE HOST CHECK COMMANDS</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">#</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">################################################################################</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># This command checks to see if a host is "alive" by pinging it</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># The check must result in a 100% packet loss or 5 second (5000ms) round trip
</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># average time to produce a critical error.</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># Note: Five ICMP echo packets are sent (determined by the '-p 5' argument)</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check-host-alive' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check-host-alive</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">################################################################################</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">#</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># SAMPLE SERVICE CHECK COMMANDS</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">#</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># These are some example service check commands. They may or may not work on</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># your system, as they must be modified for your plugins. See the HTML
</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># documentation on the plugins for examples of how to configure command definitions.</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">#</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># NOTE: The following 'check_local_...' functions are designed to monitor</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># various metrics on the host that Nagios is running on (i.e. this one).</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">################################################################################</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_local_disk' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_local_disk</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_local_load' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_local_load</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_load -w $ARG1$ -c $ARG2$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_local_procs' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_local_procs</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_local_users' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_local_users</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_users -w $ARG1$ -c $ARG2$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_local_swap' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_local_swap</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_swap -w $ARG1$ -c $ARG2$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_local_mrtgtraf' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_local_mrtgtraf</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">################################################################################</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># NOTE: The following 'check_...' commands are used to monitor services on</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># both local and remote hosts.</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">################################################################################</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_ftp' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_ftp</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_hpjd' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_hpjd</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_hpjd -H $HOSTADDRESS$ $ARG1$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_snmp' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_snmp</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_http' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_http</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_ssh' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_ssh</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_ssh $ARG1$ $HOSTADDRESS$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_dhcp' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_dhcp</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_dhcp $ARG1$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_ping' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_ping</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_pop' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_pop</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_pop -H $HOSTADDRESS$ $ARG1$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_imap' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_imap</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_imap -H $HOSTADDRESS$ $ARG1$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_smtp' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_smtp</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_smtp -H $HOSTADDRESS$ $ARG1$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_tcp' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_tcp</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_udp' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_udp</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_udp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'check_nt' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name check_nt</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">################################################################################</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">#</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># SAMPLE PERFORMANCE DATA COMMANDS</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">#</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># These are sample performance data commands that can be used to send performance</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># data output to two text files (one for hosts, another for services). If you</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># plan on simply writing performance data out to a file, consider using the
</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># host_perfdata_file and service_perfdata_file options in the main config file.</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">#</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">################################################################################</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'process-host-perfdata' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name process-host-perfdata</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line /usr/bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >> /usr/local/nagios/var/host-perfdata.out</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""># 'process-service-perfdata' command definition</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New"">define command{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_name process-service-perfdata</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> command_line /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n"
>> /usr/local/nagios/var/service-perfdata.out</span><u></u><u></u></p>
<div>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> }</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#17365d">Regards,</span></b><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#17365d">-- Kwame Saidi</span></b><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#17365d">Mobile 0777899994</span></b><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#17365d">Zantel.</span></b><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
</div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Seun Ojedeji [mailto:<a href="mailto:seun.ojedeji@gmail.com" target="_blank">seun.ojedeji@gmail.com</a>]
<br>
<b>Sent:</b> Sunday, May 27, 2012 00:13<br>
<b>To:</b> Kwame Saidi<br>
<b>Cc:</b> Hervey Allen; <a href="mailto:afnog@afnog.org" target="_blank">afnog@afnog.org</a></span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><br>
<b>Subject:</b> Re: [afnog] Nagios support<u></u><u></u></p>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello Kwame,
<br>
<br>
What is the output of your cat /etc/nagios3/commands.cfg<br>
<br>
Cheers!<u></u><u></u></p>
<div>
<p class="MsoNormal">On Sat, May 26, 2012 at 1:56 PM, Kwame Saidi <<a href="mailto:k.saidi@zantel.co.tz" target="_blank">k.saidi@zantel.co.tz</a>> wrote:<u></u><u></u></p>
<p class="MsoNormal">Thanks all for explanation.<br>
<br>
May be I need to know something. From the server I installed nagios should I configure local mailserver like postfix or sendmail or I may use email addres that's located on the another server ?<br>
<br>
Below are the logs ;<br>
<br>
<br>
root@localhost ~]# tail -f /var/log/maillog<br>
May 24 11:16:22 nagios sendmail[13393]: My unqualified host name (nagios) unknown; sleeping for retry<br>
May 24 11:17:01 nagios sendmail[13489]: My unqualified host name (nagios) unknown; sleeping for retry<br>
May 24 11:17:34 nagios sendmail[13495]: My unqualified host name (nagios) unknown; sleeping for retry<br>
May 24 11:18:04 nagios sendmail[13501]: My unqualified host name (nagios) unknown; sleeping for retry<br>
May 24 11:18:42 nagios sendmail[13507]: My unqualified host name (nagios) unknown; sleeping for retry<br>
May 24 11:45:47 nagios sendmail[15615]: My unqualified host name (nagios) unknown; sleeping for retry<br>
May 24 11:47:05 nagios sendmail[15688]: My unqualified host name (nagios) unknown; sleeping for retry<br>
May 24 11:47:45 nagios sendmail[15694]: My unqualified host name (nagios) unknown; sleeping for retry<br>
<br>
<br>
[root@localhost ~]# tail -f /usr/local/nagios/var/nagios.log<br>
[1338036435] Local time is Sat May 26 15:47:15 EAT 2012<br>
[1338036435] LOG VERSION: 2.0<br>
[1338036435] Finished daemonizing... (New PID=2325)<br>
[1338036476] HOST NOTIFICATION: nagiosadmin;Allot-server;DOWN;notify-host-by-email;(Host Check Timed Out)<br>
[1338036486] HOST NOTIFICATION: nagiosadmin;Auvionics;DOWN;notify-host-by-email;(Host Check Timed Out)<br>
[1338036506] HOST NOTIFICATION: nagiosadmin;BOL-ARS;DOWN;notify-host-by-email;(Host Check Timed Out)<br>
[1338036516] HOST NOTIFICATION: nagiosadmin;BOL-DAR;DOWN;notify-host-by-email;(Host Check Timed Out)<br>
[1338036536] HOST NOTIFICATION: nagiosadmin;DAR-PE;DOWN;notify-host-by-email;(Host Check Timed Out)<u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<br>
<br>
Regards,<br>
<br>
-- Kwame Saidi<br>
Mobile 0777899994<br>
Zantel.<br>
<u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">-----Original Message-----<br>
From: Hervey Allen [mailto:<a href="mailto:hervey@nsrc.org" target="_blank">hervey@nsrc.org</a>]<br>
Sent: Friday, May 25, 2012 23:54<br>
To: Kwame Saidi<br>
Cc: <a href="mailto:afnog@afnog.org" target="_blank">afnog@afnog.org</a><br>
Subject: Re: [afnog] Nagios support<br>
<br>
On 5/25/12 8:59 AM, Kwame Saidi wrote:<br>
> Greetings..!!<br>
><br>
><br>
><br>
> I have installed nagios on centos,its running but unfortunately it's not<br>
> sending notification email (from the contacts.cfg I have changed to my<br>
> email but still am unable to receive emails)and sound alert is not<br>
> functioning as well,<br>
><br>
<br>
Hi Kwame,<br>
If you determine that you can send email from the CentOS box on which<br>
Nagios is running, then be sure that you have specified the contact<br>
group or contacts option for the service or host that you want to be<br>
notified for when something happens.<br>
<br>
For example, to be notified by host specify either contact or a<br>
contact_groups in the host definition:<br>
<br>
<a href="http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host" target="_blank">http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host</a><br>
<br>
Or, if by service:<br>
<br>
<a href="http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service" target="_blank">http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service</a><br>
<br>
Or, for things like serviceescalation, hostescalation,<br>
<br>
<a href="http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html" target="_blank">http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html</a><br>
<br>
Cheers,<br>
- Hervey<br>
<br>
--<br>
Hervey Allen Network Startup Resource Center<br>
<a href="mailto:hervey@nsrc.org" target="_blank">hervey@nsrc.org</a> <a href="http://nsrc.org/" target="_blank">
http://nsrc.org/</a> : <a href="http://facebook.com/nsrc.org" target="_blank">http://facebook.com/nsrc.org</a><br>
GPG Fingerprint: AC08 31CB E453 6C65 2AB3 4EDB CEEB 5A74 C6E5 624F<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><br>
This email is Virus free! Has been Scanned.<br>
_______________________________________________<br>
afnog mailing list<br>
<a href="http://afnog.org/mailman/listinfo/afnog" target="_blank">http://afnog.org/mailman/listinfo/afnog</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
------------------------------------------------------------------------<u></u><u></u></p>
<p class="MsoNormal"><i><span style="font-family:"Garamond","serif";color:#006600">Seun Ojedeji,<br>
Federal University Oye-Ekiti<br>
web: </span></i><i><span style="font-family:"Garamond","serif";color:#888888"><a href="http://www.fuoye.edu.ng" target="_blank">http://www.fuoye.edu.ng</a><br>
</span></i><i><span style="font-family:"Garamond","serif";color:#006600">Mobile: <a href="tel:%2B2348035233535" target="_blank">
+2348035233535</a></span></i><i><span style="font-family:"Garamond","serif";color:#888888"><br>
</span></i><i><span style="font-family:"Garamond","serif";color:#006600">alt email:<a href="http://goog_1872880453" target="_blank">
</a><a href="mailto:seun.ojedeji@fuoye.edu.ng" target="_blank">seun.ojedeji@fuoye.edu.ng</a></span></i><u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><br>
This email is Virus free! Has been Scanned.<u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
------------------------------------------------------------------------<span style="color:#888888"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span style="font-family:"Garamond","serif";color:#006600">Seun Ojedeji,<br>
Federal University Oye-Ekiti<br>
web: </span></i><i><span style="font-family:"Garamond","serif";color:#888888"><a href="http://www.fuoye.edu.ng" target="_blank">http://www.fuoye.edu.ng</a><br>
</span></i><i><span style="font-family:"Garamond","serif";color:#006600">Mobile: <a href="tel:%2B2348035233535" value="+2348035233535" target="_blank">+2348035233535</a></span></i><i><span style="font-family:"Garamond","serif";color:#888888"><br>
</span></i><i><span style="font-family:"Garamond","serif";color:#006600">alt email:<a href="http://goog_1872880453" target="_blank">
</a><a href="mailto:seun.ojedeji@fuoye.edu.ng" target="_blank">seun.ojedeji@fuoye.edu.ng</a></span></i><span style="font-family:"Garamond","serif";color:#888888"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><br>
This email is Virus free! Has been Scanned.<u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
------------------------------------------------------------------------<span style="color:#888888"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span style="font-family:"Garamond","serif";color:#006600">Seun Ojedeji,<br>
Federal University Oye-Ekiti<br>
web: </span></i><i><span style="font-family:"Garamond","serif";color:#888888"><a href="http://www.fuoye.edu.ng" target="_blank">http://www.fuoye.edu.ng</a><br>
</span></i><i><span style="font-family:"Garamond","serif";color:#006600">Mobile: <a href="tel:%2B2348035233535" value="+2348035233535" target="_blank">+2348035233535</a></span></i><i><span style="font-family:"Garamond","serif";color:#888888"><br>
</span></i><i><span style="font-family:"Garamond","serif";color:#006600">alt email:<a href="http://goog_1872880453" target="_blank">
</a><a href="mailto:seun.ojedeji@fuoye.edu.ng" target="_blank">seun.ojedeji@fuoye.edu.ng</a></span></i><span style="font-family:"Garamond","serif";color:#888888"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><br>
This email is Virus free! Has been Scanned.<u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
------------------------------------------------------------------------<span style="color:#888888"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span style="font-family:"Garamond","serif";color:#006600">Seun Ojedeji,<br>
Federal University Oye-Ekiti<br>
web: </span></i><i><span style="font-family:"Garamond","serif";color:#888888"><a href="http://www.fuoye.edu.ng" target="_blank">http://www.fuoye.edu.ng</a><br>
</span></i><i><span style="font-family:"Garamond","serif";color:#006600">Mobile: <a href="tel:%2B2348035233535" value="+2348035233535" target="_blank">+2348035233535</a></span></i><i><span style="font-family:"Garamond","serif";color:#888888"><br>
</span></i><i><span style="font-family:"Garamond","serif";color:#006600">alt email:<a href="http://goog_1872880453" target="_blank">
</a><a href="mailto:seun.ojedeji@fuoye.edu.ng" target="_blank">seun.ojedeji@fuoye.edu.ng</a></span></i><span style="font-family:"Garamond","serif";color:#888888"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
</div></div></div>
</div>
<br>This email is Virus free! Has been Scanned.<br></blockquote></div><br><br clear="all"><br>-- <br>------------------------------------------------------------------------<br><font color="#888888"><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;font-family:garamond,serif">
<i><span style="color:rgb(0,102,0)">Seun Ojedeji,<br style="color:rgb(0,102,0)"></span><span style="color:rgb(0,102,0)">Federal University Oye-Ekiti<br style="color:rgb(0,102,0)"></span><span style="color:rgb(0,102,0)">web: </span><a href="http://www.fuoye.edu.ng" target="_blank">http://www.fuoye.edu.ng</a><br>
<span style="color:rgb(0,102,0)"></span><span style="color:rgb(0,102,0)">Mobile: <a value="+2348035233535">+2348035233535</a></span><span style="color:rgb(0,102,0)"></span><br></i><i><span style="color:rgb(0,102,0)">alt email:<a href="http://goog_1872880453" target="_blank"> </a><a href="mailto:seun.ojedeji@fuoye.edu.ng" target="_blank">seun.ojedeji@fuoye.edu.ng</a></span></i><br>
</blockquote></font><br><br>