I want to know who acknowledged a nagios alert I've just received.
Copy this script to your nagios plugins directory,
- script must be executable (# chmod 755 send-by-email.sh)
Then make sure you specify this file under your nagios configuration, under the commands file or section of you configuration (depends on how your nagios is setup)
command_line /usr/lib64/nagios/plugins/notify-by-email.sh $NOTIFICATIONTYPE$ "$SERVICEDESC$" "$HOSTALIAS$" "$HOSTADDRESS$" "$SERVICESTATE$" "$SERVICEDURATION$" "$LONGDATETIME$" "$SERVICEOUTPUT$" "$CONTACTEMAIL$" "$NOTIFICATIONAUTHOR$" "$NOTIFICATIONCOMMENT$"
Then under your contacts set the service_notification_commands to notify-by-email as example below,
~ truncated ~
Enjoy! Remember this is just a quick overview of how to. If you have any question regarding your nagios installation, then please ask.