<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Seun<br>
<br>
output of cat /etc/hosts<br>
<br>
[root@mx objects]# hostname<br>
nagios<br>
[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 nagios.domain.com localhost.localdomain localhost<br>
::1 localhost6.localdomain6 localhost6<br>
10.5.2.13 nagios.domain.com<br>
[root@mx objects]# <br>
<br>
from the contacs.cfg i made some changes now it looks like below;<br>
<br>
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<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-service-by-email<br>
host_notification_commands notify-host-by-email<br>
email kwaslee@zantel.com<br>
}<br>
<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF164887"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Seun Ojedeji [seun.ojedeji@gmail.com]<br>
<b>Sent:</b> Sunday, May 27, 2012 10:58 AM<br>
<b>To:</b> Kwame Saidi<br>
<b>Cc:</b> Hervey Allen; afnog@afnog.org<br>
<b>Subject:</b> Re: [afnog] Nagios support<br>
</font><br>
</div>
<div></div>
<div>Hello Kwame<br>
<br>
<div class="gmail_quote">On Sun, May 27, 2012 at 12:33 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>
<div>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<br>
<br>
</div>
</div>
</blockquote>
<div>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>
</div>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div>
<div><br>
</div>
</div>
</blockquote>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div>
<div style="direction:ltr; font-size:10pt; font-family:Tahoma">
<div style="font-size:16px; font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b> From:</b> 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
<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<br>
</div>
</div>
</font><br>
</div>
<div>
<div class="h5">
<div></div>
<div>Hello Kwame,<br>
<br>
<div class="gmail_quote">On Sat, May 26, 2012 at 10:52 PM, 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 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">Below are the output of command.cfg<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><br>
</span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><<snip>></span></p>
</div>
</div>
</blockquote>
<div> </div>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11pt; font-family:"Courier New""></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'notify-host-by-email' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name notify-host-by-email<u></u><u></u></span></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></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'notify-service-by-email' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name notify-service-by-email<u></u><u></u></span></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></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> </span></p>
</div>
</div>
</blockquote>
<div>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>
</div>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11pt; font-family:"Courier New""><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">################################################################################<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">#<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># SAMPLE HOST CHECK COMMANDS<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">#<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">################################################################################<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></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<u></u><u></u></span></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
<u></u><u></u></span></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.<u></u><u></u></span></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)<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check-host-alive' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check-host-alive<u></u><u></u></span></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<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">################################################################################<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">#<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># SAMPLE SERVICE CHECK COMMANDS<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">#<u></u><u></u></span></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<u></u><u></u></span></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
<u></u><u></u></span></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.<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">#<u></u><u></u></span></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<u></u><u></u></span></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).<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">################################################################################<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_local_disk' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_local_disk<u></u><u></u></span></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$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_local_load' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_local_load<u></u><u></u></span></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$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_local_procs' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_local_procs<u></u><u></u></span></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$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_local_users' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_local_users<u></u><u></u></span></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$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_local_swap' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_local_swap<u></u><u></u></span></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$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_local_mrtgtraf' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_local_mrtgtraf<u></u><u></u></span></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$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">################################################################################<u></u><u></u></span></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<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># both local and remote hosts.<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">################################################################################<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_ftp' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_ftp<u></u><u></u></span></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$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_hpjd' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_hpjd<u></u><u></u></span></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$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_snmp' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_snmp<u></u><u></u></span></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$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_http' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_http<u></u><u></u></span></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$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_ssh' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_ssh<u></u><u></u></span></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$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_dhcp' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_dhcp<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_line $USER1$/check_dhcp $ARG1$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_ping' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_ping<u></u><u></u></span></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<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_pop' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_pop<u></u><u></u></span></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$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_imap' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_imap<u></u><u></u></span></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$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_smtp' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_smtp<u></u><u></u></span></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$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_tcp' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_tcp<u></u><u></u></span></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$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_udp' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_udp<u></u><u></u></span></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$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'check_nt' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name check_nt<u></u><u></u></span></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$<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">################################################################################<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">#<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># SAMPLE PERFORMANCE DATA COMMANDS<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">#<u></u><u></u></span></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<u></u><u></u></span></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<u></u><u></u></span></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
<u></u><u></u></span></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.<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">#<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">################################################################################<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'process-host-perfdata' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name process-host-perfdata<u></u><u></u></span></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<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""># 'process-service-perfdata' command definition<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New"">define command{<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> command_name process-service-perfdata<u></u><u></u></span></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<u></u><u></u></span></p>
<div>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""> }<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt; font-family:"Courier New""><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"; 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 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></p>
<div>
<div><br>
<b>Subject:</b> Re: [afnog] Nagios support<u></u><u></u></div>
</div>
<p></p>
</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>
------------------------------------------------------------------------<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>
</div>
</div>
</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>
</div>
</div>
</div>
</body>
</html>