<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Re: [Nagios-users] Notification Problem (Please Help - Resend)</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText47973 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Dear Hendrik, thank you very
much for your suggestion.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>I have modified the contacts.cfg as you
recommended, but still there's no attempt from Nagios to initiate the
notification. Is there anything else I have missed ?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Besst Regards,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Herman </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>The message on Reporting Notification
:</FONT></DIV>
<DIV dir=ltr>
<DIV class=errorMessage>No notifications have been recorded in the current log
file</DIV></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>In event log, no attempt from Nagios to
send notification :</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>[12-14-2006 00:11:33] SERVICE ALERT:
NAS-TMMIN-HO-2;PING;CRITICAL;HARD;1;CRITICAL - Plugin timed out after 10
seconds<BR>[12-14-2006 00:11:33] HOST EVENT HANDLER:
NAS-TMMIN-HO-2;DOWN;HARD;3;log-host<BR>[12-14-2006 00:11:33] HOST ALERT:
NAS-TMMIN-HO-2;DOWN;HARD;3;CRITICAL - Plugin timed out after 10
seconds<BR>[12-14-2006 00:11:23] HOST EVENT HANDLER:
NAS-TMMIN-HO-2;DOWN;SOFT;2;log-host<BR>[12-14-2006 00:11:23] HOST ALERT:
NAS-TMMIN-HO-2;DOWN;SOFT;2;CRITICAL - Plugin timed out after 10
seconds<BR>[12-14-2006 00:11:13] HOST EVENT HANDLER:
NAS-TMMIN-HO-2;DOWN;SOFT;1;log-host<BR>[12-14-2006 00:11:13] HOST ALERT:
NAS-TMMIN-HO-2;DOWN;SOFT;1;CRITICAL - Plugin timed out after 10
seconds<BR>[12-14-2006 00:10:17] SERVICE EVENT HANDLER:
NAS-TMMIN-HO-2;FTP;CRITICAL;HARD;3;log-ftp<BR>[12-14-2006 00:10:17] SERVICE
ALERT: NAS-TMMIN-HO-2;FTP;CRITICAL;HARD;3;Connection refused<BR>[12-14-2006
00:10:07] SERVICE EVENT HANDLER:
NAS-TMMIN-HO-2;FTP;CRITICAL;SOFT;2;log-ftp<BR>[12-14-2006 00:10:07] SERVICE
ALERT: NAS-TMMIN-HO-2;FTP;CRITICAL;SOFT;2;Connection refused<BR>[12-14-2006
00:09:57] SERVICE EVENT HANDLER:
NAS-TMMIN-HO-2;FTP;CRITICAL;SOFT;1;log-ftp<BR>[12-14-2006 00:09:57] SERVICE
ALERT: NAS-TMMIN-HO-2;FTP;CRITICAL;SOFT;1;Connection refused<BR>[12-14-2006
00:05:53] Finished daemonizing... (New PID=32622)<BR>[12-14-2006 00:05:53] LOG
VERSION: 2.0<BR>[12-14-2006 00:05:53] Nagios 2.5 starting...
(PID=32621)<BR>[12</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>My configuration after changes
:</FONT></DIV>define contact{<BR>
contact_name
nagiosadmin<BR>
alias
Nagios Admin<BR>
service_notification_options
w,u,c,r,n<BR>
host_notification_options
d,u,r,n<BR>
service_notification_period
24x7<BR>
host_notification_period
24x7<BR>
service_notification_commands
notify-by-email<BR>
host_notification_commands
host-notify-by-email<BR>
email
<A
href="mailto:herman_ang@toyota.co.id">herman_ang@toyota.co.id</A><BR>
}
<DIV dir=ltr>define service{<BR>
use
generic-service ; Name of
service template to use</DIV>
<DIV dir=ltr>
host_name
NAS-TMMIN-HO-2<BR>
obsess_over_service
0<BR>
passive_checks_enabled
0<BR>
service_description
FTP<BR>
is_volatile
0<BR>
check_period
24x7<BR>
max_check_attempts
3<BR>
normal_check_interval
1<BR>
retry_check_interval
1<BR>
contact_groups
admins<BR>
notification_interval
120<BR>
notification_period
24x7<BR>
notification_options
w,u,c,r,f<BR>
check_command
check_ftp<BR>
event_handler
log-ftp<BR>
notifications_enabled
1<BR>
event_handler_enabled
1<BR> }</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr># 'host-notify-by-email' command definition<BR>define
command{<BR>
command_name
host-notify-by-email<BR>
command_line /usr/bin/printf "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
$HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:
$LONGDATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!"
$CONTACTEMAIL$<BR> }</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr># 'notify-by-email' command definition<BR>define
command{<BR> command_name
notify-by-email<BR> command_line
/usr/bin/printf "Service Notification by Email" >>
/usr/local/nagios/libexec/eventhandlers/service-notify.txt<BR>
}<BR></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr><FONT size=3></FONT> </DIV></DIV>
</BODY>
</HTML>