All my nagios notification emails are going nagiosadmin instead of correct contactgroup.  Below is my command for email.  Please advise on this.  Thanks<br><br><br><br>define command{<br>        command_name    notify-host-by-email<br>
        command_line    /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nhttps://nagios.<br>
<a href="http://cc.columbia.edu/nagios/cgi-bin/extinfo.cgi?type=1&host=$HOSTNAME$\n\nuser:$HOSTACKAUTHOR$\ncomment:$NOTIFICATIONCOMMENT$\n\nDate/Time">cc.columbia.edu/nagios/cgi-bin/extinfo.cgi?type=1&host=$HOSTNAME$\n\nuser:$HOSTACKAUTHOR$\ncomment:$NOTIFICATIONCOMMENT$\n\nDate/Time</a>: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HO<br>
STNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$<br>        }<br><br><br># 'notify-service-by-email' command definition<br>define command{<br>        command_name    notify-service-by-email<br>        command_line    /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/<br>
Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n\nhttps://<a href="http://nagios.cc.columbia.edu/nagios/cgi-bin/extinfo.cgi?type=2&host=$HOSTNAME$\nuser:$SERVICEACKAUTHOR$\ncomment:$NOTIFICATIONCOMMENT$\n\n">nagios.cc.columbia.edu/nagios/cgi-bin/extinfo.cgi?type=2&host=$HOSTNAME$\nuser:$SERVICEACKAUTHOR$\ncomment:$NOTIFICATIONCOMMENT$\n\n</a>" |<br>
 /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$<br>        }<br><br><br><br>Here is my log <br><br><br>[1233882055] SERVICE NOTIFICATION: nagiosadmin;<a href="http://schx-11-1-apreboot.net.columbia.edu">schx-11-1-apreboot.net.columbia.edu</a>;check-host-alive;CRITICAL;notify-service-by-email;PING CRITICAL - Packet loss = 100%<br>
[1233882201] SERVICE NOTIFICATION: nagiosadmin;<a href="http://austerlitz.cc.columbia.edu">austerlitz.cc.columbia.edu</a>;check-host-alive;CRITICAL;notify-service-by-email;PING CRITICAL - Packet loss = 100%<br>[1233882201] SERVICE NOTIFICATION: nagiosadmin;<a href="http://avh-ap-4-2.net.columbia.edu">avh-ap-4-2.net.columbia.edu</a>;check-host-alive;CRITICAL;notify-service-by-email;PING CRITICAL - Packet loss = 100%<br>
[1233882203] SERVICE NOTIFICATION: nagiosadmin;<a href="http://butl-1-2-apreboot.net.columbia.edu">butl-1-2-apreboot.net.columbia.edu</a>;check-host-alive;CRITICAL;notify-service-by-email;PING CRITICAL - Packet loss = 100%<br>
[1233882204] SERVICE NOTIFICATION: nagiosadmin;<a href="http://butl-1-4-apreboot.net.columbia.edu">butl-1-4-apreboot.net.columbia.edu</a>;check-host-alive;CRITICAL;notify-service-by-email;PING CRITICAL - Packet loss = 100%<br>
[1233882221] SERVICE NOTIFICATION: nagiosadmin;<a href="http://butl-5-1-apreboot.net.columbia.edu">butl-5-1-apreboot.net.columbia.edu</a>;check-host-alive;CRITICAL;notify-service-by-email;PING CRITICAL - Packet loss = 100%<br>
[1233882225] SERVICE NOTIFICATION: nagiosadmin;<a href="http://butler213b-printer.atg.columbia.edu">butler213b-printer.atg.columbia.edu</a>;check_tray4;CRITICAL;notify-service-by-email;TRAY4 is at critical level<br>[1233882271] SERVICE NOTIFICATION: nagiosadmin;<a href="http://car-b-1-apreboot.net.columbia.edu">car-b-1-apreboot.net.columbia.edu</a>;check-host-alive;CRITICAL;notify-service-by-email;PING CRITICAL - Packet loss = 100%<br>
[1233882286] SERVICE NOTIFICATION: nagiosadmin;<a href="http://cha-5-1-apreboot.net.columbia.edu">cha-5-1-apreboot.net.columbia.edu</a>;check-host-alive;CRITICAL;notify-service-by-email;PING CRITICAL - Packet loss = 100%<br>
<br><br><br><br clear="all"><br>-- <br>Cordially,<br>Shadhin Rahman<br>