Hello.
I tried to modify the email which nagios sends to the users. In order to do this, i specified a definition in misccommands,cfg with a name host-notify-by-Controllers.
Nagios did not give any pre flight errors or warnings. But when i rebooted my controller i got the message specified within host-notify-by-email when it should have been a message within host-notify-by-Controllers,
I have the cgi’s below for reference. Please help as i am confused
Thanks

This is misccommands.cfg

‘host-notify-by-email’ command definition

define command{
command_name host-notify-by-email
command_line /usr/bin/printf “%b” “***** This is Nagios Network Monitoring System *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n” “This is a test, to see if DR steps can be included with email messages for the Host” | /bin/mail -s “Host $HOSTSTATE$ alert for $HOSTNAME$!” $CONTACTEMAIL$
}