All notification emails are going to nagios admin

shadih rahman shadhin71 at gmail.com
Fri Feb 6 02:05:26 CET 2009


All my nagios notification emails are going nagiosadmin instead of correct
contactgroup.  Below is my command for email.  Please advise on this.
Thanks



define command{
        command_name    notify-host-by-email
        command_line    /usr/bin/printf "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
$HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nhttps://nagios.
cc.columbia.edu/nagios/cgi-bin/extinfo.cgi?type=1&host=$HOSTNAME$\n\nuser:$HOSTACKAUTHOR$\ncomment:$NOTIFICATIONCOMMENT$\n\nDate/Time:
$LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HO
STNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
        }


# 'notify-service-by-email' command definition
define command{
        command_name    notify-service-by-email
        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\nhttps://
nagios.cc.columbia.edu/nagios/cgi-bin/extinfo.cgi?type=2&host=$HOSTNAME$\nuser:$SERVICEACKAUTHOR$\ncomment:$NOTIFICATIONCOMMENT$\n\n"
|
 /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert:
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
        }



Here is my log


[1233882055] SERVICE NOTIFICATION: nagiosadmin;
schx-11-1-apreboot.net.columbia.edu;check-host-alive;CRITICAL;notify-service-by-email;PING
CRITICAL - Packet loss = 100%
[1233882201] SERVICE NOTIFICATION:
nagiosadmin;austerlitz.cc.columbia.edu;check-host-alive;CRITICAL;notify-service-by-email;PING
CRITICAL - Packet loss = 100%
[1233882201] SERVICE NOTIFICATION:
nagiosadmin;avh-ap-4-2.net.columbia.edu;check-host-alive;CRITICAL;notify-service-by-email;PING
CRITICAL - Packet loss = 100%
[1233882203] SERVICE NOTIFICATION: nagiosadmin;
butl-1-2-apreboot.net.columbia.edu;check-host-alive;CRITICAL;notify-service-by-email;PING
CRITICAL - Packet loss = 100%
[1233882204] SERVICE NOTIFICATION: nagiosadmin;
butl-1-4-apreboot.net.columbia.edu;check-host-alive;CRITICAL;notify-service-by-email;PING
CRITICAL - Packet loss = 100%
[1233882221] SERVICE NOTIFICATION: nagiosadmin;
butl-5-1-apreboot.net.columbia.edu;check-host-alive;CRITICAL;notify-service-by-email;PING
CRITICAL - Packet loss = 100%
[1233882225] SERVICE NOTIFICATION: nagiosadmin;
butler213b-printer.atg.columbia.edu;check_tray4;CRITICAL;notify-service-by-email;TRAY4
is at critical level
[1233882271] SERVICE NOTIFICATION: nagiosadmin;
car-b-1-apreboot.net.columbia.edu;check-host-alive;CRITICAL;notify-service-by-email;PING
CRITICAL - Packet loss = 100%
[1233882286] SERVICE NOTIFICATION: nagiosadmin;
cha-5-1-apreboot.net.columbia.edu;check-host-alive;CRITICAL;notify-service-by-email;PING
CRITICAL - Packet loss = 100%





-- 
Cordially,
Shadhin Rahman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090205/366e02cd/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
-------------- 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