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
monitor apc ups using the check_apcupsd plug-in
-
- Posts: 8
- Joined: Mon Jan 24, 2011 10:48 am
Re: monitor apc ups using the check_apcupsd plug-in
Try running:
To get the usage and plugin documentation.
Code: Select all
./check_apcupsd -h
-
- Posts: 8
- Joined: Mon Jan 24, 2011 10:48 am
Re: monitor apc ups using the check_apcupsd plug-in
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.
I am just not getting any output.
Re: monitor apc ups using the check_apcupsd plug-in
Usually a lower case -h denotes a call to the help output. Did you mean to use -H for the host name?./check_apcupsd -c 50 -h <server name> -w 75 bcharge
-
- Posts: 8
- Joined: Mon Jan 24, 2011 10:48 am
Re: monitor apc ups using the check_apcupsd plug-in
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>
[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
What's the output of running the following command?
Code: Select all
/sbin/apaccess status 10.6.0.7:3551
-
- Posts: 8
- Joined: Mon Jan 24, 2011 10:48 am
Re: monitor apc ups using the check_apcupsd plug-in
[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
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
-
- Posts: 8
- Joined: Mon Jan 24, 2011 10:48 am
Re: monitor apc ups using the check_apcupsd plug-in
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
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?
Nicholas Scott
Former Nagios employee
Former Nagios employee