No Notification email

Elizar M. Palad elizar.palad at gmail.com
Tue Sep 20 08:30:16 CEST 2005


Hello all!
Guys help me.
It seems that nagios is not sending notifications on most of my
host/services.
i have (i think) set up hosts, contacts and contactgroups.cfg 
correctly.
here are the files:
contacts.cfg
define contact{
        contact_name                    elizar
        alias                           Nagios Admin
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r
        host_notification_options       d,r
        service_notification_commands   notify-by-email
        host_notification_commands      host-notify-by-email
        email                           eli_palad at ... elizar.palad at ...
        }


define contact{
        contact_name                    adleo
        alias                           Au de Leon
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r
        host_notification_options       d,r
        service_notification_commands   notify-by-email
        host_notification_commands      host-notify-by-email
        email                           adleo at p3m
        }

contactgroups.cfg

define contactgroup{
        contactgroup_name       admins
        alias                   Nagios Administrators
        members                adleo, elizar  }


hosts.cfg
define host{
        use                     generic-host
        host_name               1 NFS05
        address                 10.160.2.5
        check_command           check-host-alive
        max_check_attempts      10
        notification_interval   120
        notification_period     24x7
        notification_options    d,r
        contact_groups          admins
        }



services.cfg
define service{
        use                             generic-service         ;     
            host_name                       2 P4FTPPROD
        service_description             Disk Usage
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              4
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                 admins
        notification_interval           960
        notification_period             24x7
        check_command                   check_remote_disk!rsh!ftp09!95!97

When the it triggers the warning or even the critical, no notification
is sent.

sending mail manually work, by the way..
commands.cfg

define command{
        command_name    notify-by-email
        command_line    /usr/bin/printf "%b" "***** AMKOR MONITORING
SERVER *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nH
ost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$OUTPUT$" | /usr/bin/mailx -s "** $
NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$
**" $CONTACTEMAIL$
        }


Thanks in advance!


-- 
----
Don't Tell Me How Hard You Work..
   Show Me How Much You'd Accomplished..


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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