Thanks,
After adding "mail" into the command it works. What may have caused it to not
be there?
I didn't specify --with-mail=dir when I compiled nagios. Can that be the
problem???
----- Original Message -----
From: Mies, Christian
To: [email protected]
Sent: Wednesday, March 14, 2007 12:40 PM
Subject: Re: [Nagios-users] Problem with notify-by-email
Hi,
have a look at this part of the error:
Nagios process!" | -s "** PROBLEM alert
The mail command is missing, I think.
Mit freundlichem Gruß
Christian Mies
it-novum GmbH, Edelzeller Str. 44, 36043 Fulda, Germany
FON: +49 (661) 103-874(333) FAX: +49 (661) 103-334
MAIL: [EMAIL PROTECTED] WEB: http://www.itnovum.de
Handelsregister: Amtsgericht Fulda, HRB 1934
Geschäftsführer: Michael Kienle (Vorsitz), Stefan Heil
Sitz der Gesellschaft: Fulda
UstID-Nr: DE813211784
Steuernr.: 018/225/03095
----------------------------------------------------------------------------
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von chiel
Gesendet: Mittwoch, 14. März 2007 12:17
An: [email protected]
Betreff: [Nagios-users] Problem with notify-by-email
Hi,
When Nagios is trying to send me an e-mail I get the following error in the
event log:
[03-14-2007 12:02:36] Warning: Attempting to execute the command
"/usr/bin/printf "%b" "***** Nagios 2.7 *****\n\nNotification Type:
PROBLEM\n\nService: Nagios\nHost: ****\nAddress: ***.***.***.***\nState:
CRITICAL\n\nDate/Time: Wed Mar 14 12:02:36 CET 2007\n\nAdditional
Info:\n\nNAGIOS CRITICAL: Could not locate a running Nagios process!" | -s "**
PROBLEM alert - ****/Nagios is CRITICAL **" [EMAIL PROTECTED]" resulted in a
return code of 127. Make sure the script or binary you are trying to execute
actually exists...
I use Nagios 2.7 with Debian and Exim4. Exim is working normal and sents a
e-mail when I do the following test:
"printf text | mail -s "subject" e-mail address"
The "notify-by-email" command is present in the commands.cfg
I didn't find any help on google etc..
any idea?
chiel
------------------------------------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------------
_______________________________________________
Nagios-users mailing list
[email protected]
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-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
[email protected]
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