Help - I am unable to send notifications

Jonathan Williams jonathan.williams at us.g4s.com
Thu Jul 24 19:45:13 CEST 2008


I have decided on another course of action.  I have spent way too much
time with no success on this issue.  I just can't get this script to
work.  Are there any other recommended plug-ins that anyone can
recommend.  The native e-mailer did not work either and when on the
Nagios Wiki I found this about it:

 

by default, nagios uses 'mail' or 'mailx' to send it's email. The actual
mail command is found in the default commands.cfg file
/usr/local/nagios/etc/objects/command.cfg

 

there are two definitions by default 'notify-host-by-email' and
'notify-service-by-email'

 

in each of these definitions, there is a "command_line"; this is what
nagios executes in order to send mail using the mail or mailx system
(varies from system to system) and it *may* need to be changed in order
to work - although I must admit to not having much success so far with
it myself :( (see forum thread -->

 

Perhaps I'll go back to the native mailx mailer and try that again and
reset my commands.cgf back to how it was.

 

-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Jay R.
Ashworth
Sent: Thursday, July 24, 2008 10:01 AM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Help - I am unable to send notifications

 

On Tue, Jul 22, 2008 at 05:06:22PM -0400, Fulton, David wrote:

> As Marc broke down the sed line I will break down the line above, the
#

> character is indeed a comment character, but only to PERL. PERL is not

> what tries to load the file initially, the shell tries to load the
file

> as a compiled program(like /bin/ls is the compiled program that lists

> the files in a directory: I ran this on my nagios server as an
example):

 

<nit>

The actual interpretation of a sh-bang line is usually done by the

general loader, which is to say exec(3) (I think that's the distinction

between exec(2) and exec(3)); if the sh-bang line doesn't call a shell,

one is not involved.

</nit>

 

But I suppose you may have meant "the interactive shell you're talking

to"...

 

Cheers,

-- jra

-- 

Jay R. Ashworth                   Baylink
jra at baylink.com

Designer                     The Things I Think
RFC 2100

Ashworth & Associates     http://baylink.pitas.com
'87 e24

St Petersburg FL USA      http://photo.imageinc.us             +1 727
647 1274

 

           Those who cast the vote decide nothing.

           Those who count the vote decide everything.

             -- (Josef Stalin)

 

------------------------------------------------------------------------
-

This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge

Build the coolest Linux based applications with Moblin SDK & win great
prizes

Grand prize is a trip for two to an Open Source event anywhere in the
world

http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080724/05d4c9cb/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------- 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