Nagios Message Acknowledgment
Marc Powell
marc at ena.com
Thu Jun 21 14:00:04 CEST 2007
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic
> Sent: Wednesday, June 20, 2007 7:57 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Nagios Message Acknowledgment
>
> Hi all i have nagios 2.4 i was wondering when a user would
acknowledges a
> down host and it sends an email as well i want to include the message
the
> user has input of why the host is down
Add the $HOSTACKCOMMENT$ macro to your notification command like --
define command {
command_name host-notify-by-email
command_line /bin/echo -e "Subject:
$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$\n\n*****
Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost:
$HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo:
$HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\nAcknowledged By:
$HOSTACKAUTHOR$\nAcnkowledgement: $HOSTACKCOMMENT$" | /bin/mail
$CONTACTEMAIL$
}
A full list of macros available is listed in the documentation under
'Using Macros in Commands'.
--
Marc
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list