check_apc_pdu question

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
brandon.pal
Posts: 129
Joined: Wed Feb 19, 2014 10:18 pm

check_apc_pdu question

Post by brandon.pal »

Hey,

Is any one out there using the check_apc_pdu plugin?

I'm wondering what the load value is exactly?

Code: Select all

 ./check_apc_pdu.pl -H 10.91.12.240 -C public
OK: All Outlets ok. |load=14
What is the 14? I'm trying to figure out our current amp usage.

So I know we have a 30amp circuit and want to monitor our current usage and set off alarms if we go above a set amount.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_apc_pdu question

Post by tmcdonald »

brandon.pal wrote:What is the 14? I'm trying to figure out our current amp usage.
My guess is that's your current load in amps. Means you're a little under 50% utilization. I checked out the code and there wasn't a lot in the way of comments explaining what the output is, but I didn't do a full code audit so there could be something in the supporting documentation or the variable names.
Former Nagios employee
brandon.pal
Posts: 129
Joined: Wed Feb 19, 2014 10:18 pm

Re: check_apc_pdu question

Post by brandon.pal »

My Amp draw at the moment is about 3 so the 14 is sadly not that. I could not find anything in the code to make sense of it.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_apc_pdu question

Post by tmcdonald »

Well, 14% of 30Amps is 4.2 so that's pretty close to your utilization.
Former Nagios employee
brandon.pal
Posts: 129
Joined: Wed Feb 19, 2014 10:18 pm

Re: check_apc_pdu question

Post by brandon.pal »

Sounds right. It was a bit off so I was thinking maybe it was something else.

Now If I run the script in Nagios is there a way to add a graph ?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_apc_pdu question

Post by sreinhardt »

If you have performance data being processed, it will generate a graph without further configuration. The portion after pipe (|) is what nagios or more sepecifically pnp will use to generate graphs and things.

Your output:
OK: All Outlets ok. |load=14
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked