Variable Problem in notifications
Posted: Mon Jul 29, 2013 10:29 am
Hello,
I have Installed FAN and i meet this problem.
Here is th notification command:
/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nDate/Time: $DATE$ Additional Info : $SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
Here is the mail I receive:
** PROBLEM alert - Automate/$ is $ **
***** Nagios *****
Notification Type: PROBLEM
Service: $
Host: Automate
Address: 192.168.1.6
State: $
Date/Time: 29-07-2013 Additional Info : $
I dont understand, service_description is present in services.cfg. I have try some things i have found on the net but nothing works..
Thanks for your help
I have Installed FAN and i meet this problem.
Here is th notification command:
/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nDate/Time: $DATE$ Additional Info : $SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
Here is the mail I receive:
** PROBLEM alert - Automate/$ is $ **
***** Nagios *****
Notification Type: PROBLEM
Service: $
Host: Automate
Address: 192.168.1.6
State: $
Date/Time: 29-07-2013 Additional Info : $
I dont understand, service_description is present in services.cfg. I have try some things i have found on the net but nothing works..
Thanks for your help