Problem with notify-by-email
D.Parise at iaea.org
D.Parise at iaea.org
Wed Mar 14 13:02:06 CET 2007
It happened to me as well as I installed the mail agent after nagios, I guess.
Regards,
Davide
________________________________
From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of chiel
Sent: 14 March 2007 12:53
To: Mies, Christian; nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Problem with notify-by-email
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 <mailto:c.mies at itnovum.de>
To: nagios-users at lists.sourceforge.net
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: c.mies at itnovum.de <mailto:c.mies at itnovum.de> WEB: http://www.itnovum.de <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: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] Im Auftrag von chiel
Gesendet: Mittwoch, 14. März 2007 12:17
An: nagios-users at lists.sourceforge.net
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 **" ****@****.com" 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
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
This email message is intended only for the use of the named recipient.
Information contained in this email message and its attachments may be
privileged, confidential and protected from disclosure. If you are not the
intended recipient, please do not read, copy, use or disclose this
communication to others. Also please notify the sender by replying to this
message and then delete it from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070314/c635956e/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- 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