Ups monitoring

MiikaT mlist.nagios at inlan.inmics.fi
Mon Nov 10 11:59:33 CET 2003


I modified the check_apc_ups.pl oid's to this:

my $upsBasicOutputStatus          = ".1.3.6.1.4.1.318.1.1.1.4.1.1.0";
my $upsBasicBatteryStatus         = ".1.3.6.1.2.1.33.1.2.1.0";
my $upsAdvInputLineFailCause      = ".1.3.6.1.4.1.318.1.1.1.3.2.5.0";
my $upsAdvBatteryTemperature      = ".1.3.6.1.2.1.33.1.2.7.0";
my $upsAdvBatteryRunTimeRemaining = ".1.3.6.1.2.1.33.1.2.3.0";
my $upsAdvBatteryReplaceIndicator = ".1.3.6.1.4.1.318.1.1.1.2.2.4.0";
my $upsAdvOutputLoad              = ".1.3.6.1.4.1.534.1.4.1.0";
my $upsAdvTestDiagnosticsResults  = ".1.3.6.1.4.1.318.1.1.1.7.2.3.0";

It appears that Powerware doesn't have same info available as apc, but I used 
the ones I found. Anyway, I get this, when I run the script:

./check_ups_powerware.pl -H 192.168.149.12
Parameter to use lib must be directory, not file at ./check_ups_powerware.pl 
line 16
Output status: unknown | Rem time: unknown | Battery status: unknown | Battery 
temp(C): unknown | Battery repl: unknown | Output load (%): unknown | Diag 
result: unknown

So I actually don't get any info from the ups :-(

What I tried in the first place, monitoring snmp values using negative alert 
status, still looks impossible...I could easily monitor input load or runtime, 
if I could tell nagios plugin that warning value should 220 and critical 210, 
where as "normal" values are 230. But the problem is that normal values are 
above warning and critical, so the status is always critical...

-Miika

> You can try using the check_apc_ups.pl plugin and editing the SNMP OID's to
> fit your brand.  They are easy enough to find, just look for the section
> that looks like this:
> 
> # APC UPS OIDs
> my $upsBasicOutputStatus          = ".1.3.6.1.4.1.318.1.1.1.4.1.1.0";
> my $upsBasicBatteryStatus         = ".1.3.6.1.4.1.318.1.1.1.2.1.1.0";
> ...
> my $upsAdvOutputLoad              = ".1.3.6.1.4.1.318.1.1.1.4.2.3.0";
> my $upsAdvTestDiagnosticsResults  = ".1.3.6.1.4.1.318.1.1.1.7.2.3.0";
> 
> If your UPS doesn't support a particular metric (temp, runtime, output
> load), it shouldn't be too hard to comment out the section asociated with
> each.
> 
> 
> "MiikaT" <mlist.nagios at inlan.inmics.fi> wrote in message
> news:1068201448.3fab75e850716 at imp.inmics.fi...
> >
> > Hi,
> >
> > I'm trying to use check_snmp with ups, to see if input voltage drops under
> > value 200. I suppose libexec/negate could negate the snmp query, so I
> could
> > get a warning when the voltage value drops to 220 and a critical when
> value is
> > <200.
> >
> > ./negate check_snmp -H 192.xxx.xxx.12 -o 1.3.6.1.2.1.33.1.3.3.1.3.1 -w
> 220 -c
> > 200
> >
> > the result for this is:
> >
> > SNMP CRITICAL - *233*
> >
> > which should be "ok".
> >
> > Should negate command work like this, or should I use something else? The
> ups
> > is powerware, so apc ups plugins don't work...
> >
> > -MiikaT
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program.
> > Does SourceForge.net help you be more productive?  Does it
> > help you create better code?   SHARE THE LOVE, and help us help
> > YOU!  Click Here: http://sourceforge.net/donate/
> > _______________________________________________
> > 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
> >
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> _______________________________________________
> 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
> 





-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
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