Problem using snpp.pl for notifications

Dave Augustus davea at support.kcm.org
Sun Aug 28 22:07:34 CEST 2005


I woke up this morning to find that one of my servers died. However, I
didn't receive any notifications on my alpha pager.

Checking /var/log/messages has numerous entries like the following:

Aug 28 10:14:56 monitor nagios: **ePN failed to compile /usr/bin/snpp:
"Global symbol "$cmd" requires explicit package name at (eval 6) li
ne 156, Global symbol "$arg" requires explicit package name at (eval 6)
line 163. Global symbol "$cmd" requires explicit package name at (
eval 6) line 165. Global symbol "$arg" requires expl" at /usr/bin/p1.pl
line 153

I use snpp.pl for alpha notifications. Here is my misc_command for
snpp: 

define  command {
    command_name    host-notify-by-tap
    command_line    /usr/bin/snpp -d -n -m "Service: $SERVICEDESC$ Host:
$HOSTALIAS$ Address: $HOSTADDRESS$ State: $SERVICESTATE$ Info: $OUTPUT$
Date: $DATETIME$"  $CONTACTPAGER$
    }

Running the following on Centos4:
nagios-nrpe-2.0-3.2
nagios-2.0-0.b4.1
nagios-plugins-1.4.1-1.2
nagios-plugins-nrpe-2.0-3.2

If I run snpp from the command line, it works fine. Is there a parameter
that I need to pass for it to invoke snpp properly?

Thanks,
Dave



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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