Email notification problems

Shawn M. Green shawn at greenthing.org
Thu Jul 17 20:31:50 CEST 2003


Hrm, interesting.  I figured that it was printf'ing the message & piping it
into /bin/mail via the notifications cgi.  The -s would work there as the
subject line.

Or am I mistaken on that assumption?

Thanks
Shawn

On 7/17/03 9:11 AM, "Jeff Verheyen" <jeff.verheyen at ampersant.be> wrote:

> 
> It looks like that the result of the "printf" command is piped into a
> (non existing) " -s " command.
> 
> Look right after the "|"
> 
> 
> 
> 
> 
> On Thu, 2003-07-17 at 03:10, Shawn M. Green wrote:
>> I have nagios setup & monitoring about 30 hosts on our network.  Everything
>> works well except for the email notifications and pages (email SMS) being
>> sent out.  Here's a snip from the nagios.log with the particular error:
>> 
>> [1058403710] Warning: Attempting to execute the command "/usr/bin/printf
>> "%b" "***** Nagios  *****\n\nNotification Type: PROBLEM\n\nService: Current
>> Users\nHost: Monitoring Server\nAddress: 69.36.xx.xx\nState:
>> WARNING\n\nDate/Time: Wed Jul 16 20:01:50 CDT 2003\n\nAdditional
>> Info:\n\nUSERS WARNING - 5 users currently logged in" |  -s "** PROBLEM
>> alert - Monitoring Server/Current Users is WARNING **" 911 at xxxxxxxx.com"
>> resulted in a return code of 127.  Make sure the script or binary you are
>> trying to execute actually exists...
>> 
>> 
>> Nagios is running on a gentoo machine w/ sendmail installed & running fine
>> (other services sending email thru it just fine).  Also installed mailx, as
>> it's not a standard installed package.
>> 
>> Any ideas would be appreciated.
>> 
>> Shawn
>> 
>> 
>> 
>> -------------------------------------------------------
>> This SF.net email is sponsored by: VM Ware
>> With VMware you can run multiple operating systems on a single machine.
>> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
>> same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
>> _______________________________________________
>> 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

-- 
Shawn M. Green                     shawn at greenthing.org
              http://greenthing.org



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
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