Web Hosting Talk







View Full Version : Nagios Email Senders


sprintserve
09-01-2004, 03:47 AM
Dear all

Is it possible to change the From: name and email in nagios notifications?

i.e instead of it being shown as the username in shell nagios is running as.

Help appreciated.

andreyka
09-01-2004, 10:16 AM
Create acces to nagios run mail comman in sudo.
Then use:
command[notify-by-email]=/bin/printf "$OUTPUT$" | sudo accoutname -c "/bin/mail -s '$SERVICESTATE$ alert for $HOSTALIAS$/$SERVICEDESC$' $CONTACTEMAIL$"

sprintserve
09-01-2004, 11:01 AM
Currently the emails are already sent as the username. I want to know if it can be done such that you can set the From Email sender and address or the reply-to email address. Thanks.

andreyka
09-01-2004, 11:49 AM
Try use nail.