Nagios Notifications
Jeremy J. Rossi
j.rossi at xaos.it
Fri Jan 30 15:35:02 CET 2004
Ron,
try this:
printf " Hostname: $HOSTNAME$\n IP: $HOSTADDRESS$\n Service: $SERVICEDESC$\n State is: $SERVICESTATE$\n Reason: $OUTPUT$"
| mail -s "$HOSTNAME$ $SERVICEDESC$ *$SERVICESTATE$*" $CONTACTEMAIL$
ciao,
Jeremy
Thursday, January 29, 2004, 7:24:09 PM, you wrote:
> I'm one of those implementors that does not come from a System
> Administration background. I've successfully implemented much of
> the nagios monitoring system, but I'm having trouble with Notifications.
> I need help just setting up a simple notification command to use sendmail.
> I have sendmail functioning at the most basic level (I can send myself mail).
> Would someone send me a simple, 'command_line' for the checkcommands.cfg
> file that uses sendmail...the sample configs just invoke 'printf' ...I just
> need a little boost over this hurdle, rather than spending days digging thru
> sendmail docs...
> - Ron Huff / UCD NOC
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> 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
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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