Problem with notify-by-email

Rob Blake rob.blake at gmail.com
Wed Mar 14 12:42:56 CET 2007


On 3/14/07, chiel <chiel at gmx.net> wrote:
>
>  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
>

It looks like the keyword 'mail' is missing from your command definition,
right after the pipe.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070314/a41dc735/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