Sendpage doesn't work with nagios

Russell Adams RLAdams at AdamsInfoServ.Com
Wed Nov 2 18:00:23 CET 2005


Try changing your command to:

/bin/sh -c /usr/bin/snpp.pl ...

On Wed, Nov 02, 2005 at 11:44:55AM -0500, Tao Yaoning wrote:
> I get an error information from log file
> 
> **ePN failed to compile /usr/bin/snpp: "Global symbol "$cmd" requires
> explicit package name at (eval 31) line 156, Global symbol "$arg"
> requires explicit package name at (eval 31) line 163. Global symbol
> "$cmd" requires explicit package name at (eval 31) line 165. Global
> symbol "$arg" requires e" at / usr/bin/p1.pl line 153.
> 
> 
> On 11/2/05, Tao Yaoning <yonienjcn at gmail.com> wrote:
> > Hi, all
> >
> > I configured nagios 2.0b4 to monitor my network. It works very fine. So I
> > try to configure sendpage to send me pager information.
> > I installed sendpage on my nagios server, and I can use command to send
> > pager by manually.
> > /usr/bin/snpp -n -m "test information" testpager
> > and receive the message "test information"
> >
> > I defined testpager information on sendpage.cf <http://sendpage.cf>, so
> > here
> > I just use character alias "testpager" to instead my really pager number
> >
> >
> > So, I configure nagios contact information and set pager as "testpager",
> > notify command is notify-by-sendpage
> > notifi-by-sendpage looks like
> > /usr/bin/snpp -n -m "$SERVICEOUTPUT$\n$LONGDATE$" $CONTACTPAGER$
> >
> > I think when nagios notify me with sendpage should use command like
> > /usr/bin/snpp -n -m "whatever information" testpager
> >
> > But my nagios never send pager information out. I check the log files, I
> > seems nagios never run the command?
> > the permission of /usr/bin/snpp is 755
> >
> > Anybody can give me some ideas?
> >
> >
> 
> 
> --
> looking for Network Adminstrator Position
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> 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
> 
> 
------------------------------------------------------------------
Russell Adams                            RLAdams at AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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