Page 1 of 1
monitor apc ups using the check_apcupsd plug-in
Posted: Mon Oct 03, 2011 5:41 pm
by zul.shariff
I installed the check_apcupsd plug-in and did a test from the command line and I get no results or errors.
./check_apcupsd -c 50 -h <server name> -w 75 bcharge
I typed in the actual server name to which the UPS is connected via USB cable and we can monitor it using the APC application Powerchute Bussiness Edition.
I can ping the server by name from the NAGIOS server and I also tried using the ip address.
What am I missing?
Zul
Re: monitor apc ups using the check_apcupsd plug-in
Posted: Tue Oct 04, 2011 10:16 am
by mguthrie
Try running:
To get the usage and plugin documentation.
Re: monitor apc ups using the check_apcupsd plug-in
Posted: Tue Oct 04, 2011 4:23 pm
by zul.shariff
I got that and my command is correct as I don't get any error messages or the help screen.
I am just not getting any output.
Re: monitor apc ups using the check_apcupsd plug-in
Posted: Tue Oct 04, 2011 4:55 pm
by mguthrie
./check_apcupsd -c 50 -h <server name> -w 75 bcharge
Usually a lower case -h denotes a call to the help output. Did you mean to use -H for the host name?
Re: monitor apc ups using the check_apcupsd plug-in
Posted: Tue Oct 04, 2011 5:19 pm
by zul.shariff
For this it is the lowercase -h. It dose not like upper case H
[root@fsrvclonms1 libexec]# ./check_apcupsd -c 95 -H 10.6.0.7 -w 75 bcharge
./check_apcupsd: illegal option -- H
usage: check_apcupsd [-c critical_value] [-h hostname] [-p port]
[-w warning_value] <bcharge|itemp|loadpct|timeleft|linefail|battstat|status>
Re: monitor apc ups using the check_apcupsd plug-in
Posted: Wed Oct 05, 2011 11:54 am
by agriffin
What's the output of running the following command?
Code: Select all
/sbin/apaccess status 10.6.0.7:3551
Re: monitor apc ups using the check_apcupsd plug-in
Posted: Wed Oct 05, 2011 2:11 pm
by zul.shariff
[root@fsrvclonms1 libexec]# /sbin/apcaccess status 10.6.0.7:3551
FATAL ERROR in apcaccess.c at line 243
tcp_open: cannot connect to server 10.6.0.7 on port 3551.
ERR=Connection refused
The UPS is connected to the server (10.6.0.7) via a USB cable.
PowerchuteBusinessEdition is installed on the server and when I made the web connection to the UPS I noticed that it was connecting via port 3052.
So I tried the following:
[root@fsrvclonms1 libexec]# /sbin/apcaccess status 10.6.0.7:3052
and after about 5 minutes, I got this error
FATAL ERROR in apcaccess.c at line 251
Re: monitor apc ups using the check_apcupsd plug-in
Posted: Wed Oct 05, 2011 3:18 pm
by zul.shariff
3551 is the apcupsd port so it's not going to work until I figure that out or try another plug-in that uses snmp.
Re: monitor apc ups using the check_apcupsd plug-in
Posted: Fri Oct 07, 2011 11:47 am
by nscott
Well on that note thats a TCP layer issue so it has to be a firewall of super daemon getting in the way somehwere. Are you able to test the port using nmap or telnet?