Sendpage doesn't work with nagios

Tao Yaoning yonienjcn at gmail.com
Wed Nov 2 17:44:55 CET 2005


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





More information about the Users mailing list