Notifications by email

Antonio Pereira apereira at duocom.ca
Wed Jun 13 22:40:58 CEST 2007


I've changed it. I will find a way to check and see if it works.

 

Thanks

 

From: Valdinger, Stephen (DOV, MSX) [mailto:svalding at doverchem.com] 
Sent: Wednesday, June 13, 2007 3:37 PM
To: Antonio Pereira; Nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Notifications by email

 

You may need to supply the /usr/bin/mail (or preferred mail program)
directive to the notify-by-email command definition. That is what I had
to do to get my notifications going

 

The part I added is in red:

 

Define command{

 

Command_name           notify-host-by-email

Command_line              /usr/bin/printf "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
$HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:
$LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert:
$HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$

 

Stephen Valdinger

MIS Helpdesk Coordinator

Dover Chemical Corporation

3676 Davis Rd NW

Dover, OH 44622

330-365-3622

stephen.valdinger at doverchem.com

 

 

________________________________

From: Antonio Pereira [mailto:apereira at duocom.ca] 
Sent: Wednesday, June 13, 2007 3:36 PM
To: Nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Notifications by email

 

Hello,

 

I am trying to get the notifications by email working and I am having a
problem.

 

I see the emails going to the root account but it does not send to our
email server any ideas? Do I need to configure something additional to
Linux to allow or know where to send the emails to our email server?

 

Thanks

 

 

 

 

________________________________

Avis Le present message n'est destine qu'a la personne ou a l'entite a
qui il est adresse et peut contenir des renseignements de nature
privilegiee et confidentielle. Si le lecteur du present message n'est
pas le destinataire prevu ou encore la personne chargee de remettre ce
message au destinataire prevu, veuillez nous aviser immediatement. Toute
diffusion, distribution ou reproduction des renseignements contenus dans
ce message ou des documents qui lui sont joints est strictement
interdite. ________________________________________ Notice This message
is intended only for the use of individual or entity to which it is
addressed and may contain information that is privileged and
confidential. If the reader of this message is not the intended
recipient or the person responsible for delivering the message to the
intended recipient, please notify us immediately. Any disclosure,
distribution or copying of this message or the information contained
herein or attached hereto is strictly prohibited.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070613/185e0bf4/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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/
-------------- next part --------------
_______________________________________________
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