This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
vmesquita
Posts: 315 Joined: Fri Aug 10, 2012 12:52 pm
Post
by vmesquita » Mon Jul 22, 2013 1:33 pm
I am trying to change service notification from
/usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTNAME$ - $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$ " | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
to
/usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTNAME$ - $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$LONGSERVICEOUTPUT$ " | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
But I always get a configuration error... Could you please check what's wrong?
slansing
Posts: 7698 Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...
Post
by slansing » Mon Jul 22, 2013 1:35 pm
What is the exact error you are receiving? Also, it is advisable to use both types of output next to each other like so:
Code: Select all
$SERVICEOUTPUT$ $LONGSERVICEOUTPUT$
abrist
Red Shirt
Posts: 8334 Joined: Thu Nov 15, 2012 1:20 pm
Post
by abrist » Mon Jul 22, 2013 1:36 pm
Go to --> Configure --> Core Config Manager --> Write Config Files. Click "write" and then "verify". Post the results here in code wraps.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the
Dark Side .
vmesquita
Posts: 315 Joined: Fri Aug 10, 2012 12:52 pm
Post
by vmesquita » Mon Jul 22, 2013 3:37 pm
I rebooted the machine and it started working. Thanks for all replies.