Notification Problem

Herman (ISTD) herman_ang at toyota.co.id
Wed Dec 13 18:12:09 CET 2006


Dear Hendrik, thank you very much for your suggestion.
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 ?
 
Besst Regards,
 
Herman  
 
 
The message on Reporting Notification :
No notifications have been recorded in the current log file
 
In event log, no attempt from Nagios to send notification :
[12-14-2006 00:11:33] SERVICE ALERT: NAS-TMMIN-HO-2;PING;CRITICAL;HARD;1;CRITICAL - Plugin timed out after 10 seconds
[12-14-2006 00:11:33] HOST EVENT HANDLER: NAS-TMMIN-HO-2;DOWN;HARD;3;log-host
[12-14-2006 00:11:33] HOST ALERT: NAS-TMMIN-HO-2;DOWN;HARD;3;CRITICAL - Plugin timed out after 10 seconds
[12-14-2006 00:11:23] HOST EVENT HANDLER: NAS-TMMIN-HO-2;DOWN;SOFT;2;log-host
[12-14-2006 00:11:23] HOST ALERT: NAS-TMMIN-HO-2;DOWN;SOFT;2;CRITICAL - Plugin timed out after 10 seconds
[12-14-2006 00:11:13] HOST EVENT HANDLER: NAS-TMMIN-HO-2;DOWN;SOFT;1;log-host
[12-14-2006 00:11:13] HOST ALERT: NAS-TMMIN-HO-2;DOWN;SOFT;1;CRITICAL - Plugin timed out after 10 seconds
[12-14-2006 00:10:17] SERVICE EVENT HANDLER: NAS-TMMIN-HO-2;FTP;CRITICAL;HARD;3;log-ftp
[12-14-2006 00:10:17] SERVICE ALERT: NAS-TMMIN-HO-2;FTP;CRITICAL;HARD;3;Connection refused
[12-14-2006 00:10:07] SERVICE EVENT HANDLER: NAS-TMMIN-HO-2;FTP;CRITICAL;SOFT;2;log-ftp
[12-14-2006 00:10:07] SERVICE ALERT: NAS-TMMIN-HO-2;FTP;CRITICAL;SOFT;2;Connection refused
[12-14-2006 00:09:57] SERVICE EVENT HANDLER: NAS-TMMIN-HO-2;FTP;CRITICAL;SOFT;1;log-ftp
[12-14-2006 00:09:57] SERVICE ALERT: NAS-TMMIN-HO-2;FTP;CRITICAL;SOFT;1;Connection refused
[12-14-2006 00:05:53] Finished daemonizing... (New PID=32622)
[12-14-2006 00:05:53] LOG VERSION: 2.0
[12-14-2006 00:05:53] Nagios 2.5 starting... (PID=32621)
[12
 
 
My configuration after changes :
define contact{
        contact_name                    nagiosadmin
        alias                           Nagios Admin
        service_notification_options    w,u,c,r,n
        host_notification_options       d,u,r,n
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_commands   notify-by-email
        host_notification_commands      host-notify-by-email
        email                           herman_ang at toyota.co.id
        } 
define service{
        use                             generic-service         ; Name of service template to use
        host_name                       NAS-TMMIN-HO-2
        obsess_over_service             0
        passive_checks_enabled          0
        service_description             FTP
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           1
        retry_check_interval            1
        contact_groups                  admins
        notification_interval           120
        notification_period             24x7
        notification_options            w,u,c,r,f
        check_command                   check_ftp
        event_handler                   log-ftp
        notifications_enabled           1
        event_handler_enabled           1
        }
 
# 'host-notify-by-email' command definition
define command{
        command_name    host-notify-by-email
        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$
        }
 
# 'notify-by-email' command definition
define command{
       command_name    notify-by-email
      command_line    /usr/bin/printf "Service Notification by Email"  >> /usr/local/nagios/libexec/eventhandlers/service-notify.txt
     }

 
 
 
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20061214/4e206391/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list