Email Notification Issue

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
AdnohNagios
Posts: 1
Joined: Wed Aug 17, 2016 8:10 am

Email Notification Issue

Post by AdnohNagios »

Hi. I am having an issue with some email notifications. When they arrive they look like this....

Subject: ** RECOVERY alert - KRONOS-***-SO-I2/$ is $ **
Body:
***** centreon Notification *****

Notification Type: RECOVERY

Service: $
Host: KRONOS-***-SO-I2
Address: 10.72.85.173
State: $

Date/Time: 17-08-2016 Additional Info : $

The host and service are coming in as dollar signs. Other notifications for different host and services work just fine.
This is my command line for email:

/usr/bin/printf "%b" "***** centreon Notification *****\n\nType:$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\nDate/Time: $DATE$" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$

How can I fix this????
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Email Notification Issue

Post by tmcdonald »

We do not provide support for Centreon. You will need to post on their forums.
Former Nagios employee
Locked