APC snmp monitoring
Marc Powell
marc at ena.com
Wed May 7 16:06:07 CEST 2008
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Jim Perrin
> Sent: Wednesday, May 07, 2008 7:51 AM
> To: Nagios Users mailinglist
> Subject: [Nagios-users] APC snmp monitoring
>
> I'm running into an interesting issue with monitoring some of our UPS
> systems via the 9617 management card's snmp interface. I've trying to
> get the altinity check_apc_ups plugin
> (http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1733.html;d=1)
> working, but I'm having an issue with the ePN interpreter.
>
> Running CentOS 5 (x86) and nagios 2.11.
>
> If I execute the plugin as root or as the nagios user via su - nagios,
> it works fine, however when nagios itself executes the command, I get
> ePN failures about how the variables are un-defined. The only thing I
> can see which might cause this (my perl sucks) is that some of the
> other perl plugins have a 'use vars $var1 $var2' etc, and this one
> does not.
>
> Is anyone else seeing similar behavior, or could take a look at the
> perl-fu in the plugin?
The 'Using The Embedded Perl Interpreter' details most/all of the
requirements for a perl program to be compatible. Not all, and probably
most non-standard, plugins are not compatible with ePN out of the box.
You can either try to make it so, disable ePN entirely or just prefix
the command line with '/path/to/perl' to bypass the user of ePN for that
specific plugin.
define command {
...
command_line /usr/bin/perl $USER1$/check_apc_ups ...
}
--
Marc
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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