APC UPS Daemon (apcupsd) via NIS [v1.1 2007-12-17]
Moderators: Developers, Moderators
I *think* its the UPS itself which does the internal calculation on runtime... I KNOW that my older 500 model's runtime is broken. During a power outage it'll drop significantly... then after a few weeks climb back up to something way too high.
I'm sure there is more info on the apcdaemon mailing list...
I'm sure there is more info on the apcdaemon mailing list...
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Yes, both apcdaemon and NIS must be enabled on the HOST, which you want to collect the data from.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Code: Select all
03/24/2008 07:15:10 PM - SPINE: Poller[0] Host[34] ERROR: Empty result [192.168.20.31]: '/usr/local/src/cacti/scripts/check_ups.sh 192.168.20.31 3551'
03/24/2008 07:15:10 PM - SPINE: Poller[0] Host[33] DS[292] WARNING: Result from SCRIPT not valid. Partial Result: ...
03/24/2008 07:15:10 PM - SPINE: Poller[0] Host[33] ERROR: Empty result [192.168.11.8]: '/usr/local/src/cacti/scripts/check_ups.sh 192.168.11.8 3551'
03/24/2008 07:15:10 PM - SPINE: Poller[0] Host[32] DS[294] WARNING: Result from SCRIPT not valid. Partial Result: ...
03/24/2008 07:15:10 PM - SPINE: Poller[0] Host[32] ERROR: Empty result [192.168.11.9]: '/usr/bin/php /usr/local/src/cacti/scripts/query_apcupsd.php 192.168.11.9 3551'
03/24/2008 07:15:10 PM - SPINE: Poller[0] Host[32] DS[295] WARNING: Result from SCRIPT not valid. Partial Result: ...
03/24/2008 07:15:10 PM - SPINE: Poller[0] Host[32] ERROR: Empty result [192.168.11.9]: '/usr/bin/php /usr/local/src/cacti/scripts/query_apcupsd.php 192.168.11.9 3551'
03/24/2008 07:15:08 PM - SPINE: Poller[0] Host[22] Hostname[192.168.12.251] ERROR: HOST EVENT: Host is DOWN Message: UDP: Ping timed out
os:centos 5.0+cacti 0.8.7b
thanks.
lingping
Any of you guys happen to run an APC EMU?
I'm trying to get a graph working that displays the overall average temperature from an EMU OID that returns multiple values ie:
snmpwalk -v 1 -c public xxx .1.3.6.1.4.1.318.1.1.10.4.2.3.1.5
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.0.1 = INTEGER: 21
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.0.2 = INTEGER: 29
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.1.1 = INTEGER: 24
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.1.2 = INTEGER: 24
But can't seem to work it out. I can graph a single OID no problems, but want to have a single graph that averages the total.
I'm trying to get a graph working that displays the overall average temperature from an EMU OID that returns multiple values ie:
snmpwalk -v 1 -c public xxx .1.3.6.1.4.1.318.1.1.10.4.2.3.1.5
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.0.1 = INTEGER: 21
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.0.2 = INTEGER: 29
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.1.1 = INTEGER: 24
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.1.2 = INTEGER: 24
But can't seem to work it out. I can graph a single OID no problems, but want to have a single graph that averages the total.
lingping: did you enable NIS on the apcdaemon? Manually run query_apcupsd.php 192.168.11.9 3551 and see if you get data.
ben_c: this script doesn't do emu; only apc daemon.
ben_c: this script doesn't do emu; only apc daemon.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Excuse me, how start to perhaps install NIS and apcdaemon?BSOD2600 wrote:lingping: did you enable NIS on the apcdaemon? Manually run query_apcupsd.php 192.168.11.9 3551 and see if you get data.
ben_c: this script doesn't do emu; only apc daemon.
The my hand moves run query_apcupsd.php's 192.168.11.93551 results as follows:
Code: Select all
This need not realize:sh: /var/www/html/cacti/scripts/apcaccess: No such file or directory
Excuse me, , what is "EMU"?ben_c wrote:Any of you guys happen to run an APC EMU?
I'm trying to get a graph working that displays the overall average temperature from an EMU OID that returns multiple values ie:
snmpwalk -v 1 -c public xxx .1.3.6.1.4.1.318.1.1.10.4.2.3.1.5
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.0.1 = INTEGER: 21
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.0.2 = INTEGER: 29
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.1.1 = INTEGER: 24
SNMPv2-SMI::enterprises.318.1.1.10.4.2.3.1.5.1.2 = INTEGER: 24
But can't seem to work it out. I can graph a single OID no problems, but want to have a single graph that averages the total.
can now also single OID normally shows, but I also hope to show many pieces in the single the chart according to,
include, input, output electric voltage, temperature, load, battery appearance etc.
Moreover, I can't show battery appearance now, the hint of cacti log:
Code: Select all
03/24/2008 07:20:10 PM - SPINE: Poller[0] Host[32] ERROR: Empty result [192.168.11.9]: '/usr/bin/php /usr/local/src/cacti/scripts/query_apcupsd.php 192.168.11.9 3551'
03/24/2008 07:15:10 PM - SPINE: Poller[0] Host[33] ERROR: Empty result [192.168.11.8]: '/usr/local/src/cacti/scripts/check_ups.sh 192.168.11.8 3551'
My equipments model number is:APC Smart-UPS VT
15 kVA
Does don't know that equipments support NIS or apcdaemon?
15 kVA
Does don't know that equipments support NIS or apcdaemon?
Sorry, my english isn't good and express not enough clear.
--------------------------------------------------
centos 5.0+php 5.1+mysql 5.0+http 2.2.3
cacti 0.8.7b+rrdtool 1.0.5+net-snmp 5.4.1
--------------------------------------------------
centos 5.0+php 5.1+mysql 5.0+http 2.2.3
cacti 0.8.7b+rrdtool 1.0.5+net-snmp 5.4.1
1) if your apc device supports SNMP natively, which I imagine a 15 kVA unit would, you should really be using the other APC scripts found on this forum. It's more faster and efficient than this one.
2) NIS is enabled in the apc daemon config file. Read the manual.
2) NIS is enabled in the apc daemon config file. Read the manual.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Code: Select all
[root@monitor scripts]# php query_apcupsd.php 192.168.101.9 3551
sh: /var/www/html/cacti/scriptsapcaccess: No such file or directory
Sorry, my english isn't good and express not enough clear.
--------------------------------------------------
centos 5.0+php 5.1+mysql 5.0+http 2.2.3
cacti 0.8.7b+rrdtool 1.0.5+net-snmp 5.4.1
--------------------------------------------------
centos 5.0+php 5.1+mysql 5.0+http 2.2.3
cacti 0.8.7b+rrdtool 1.0.5+net-snmp 5.4.1
Code: Select all
04/23/2008 11:35:43 AM - SPINE: Poller[0] Host[67] ERROR: Empty result [192.168.101.8]: '/usr/bin/php /var/www/html/cacti/scripts/query_apcupsd.php 192.168.101.8 3551'
Sorry, my english isn't good and express not enough clear.
--------------------------------------------------
centos 5.0+php 5.1+mysql 5.0+http 2.2.3
cacti 0.8.7b+rrdtool 1.0.5+net-snmp 5.4.1
--------------------------------------------------
centos 5.0+php 5.1+mysql 5.0+http 2.2.3
cacti 0.8.7b+rrdtool 1.0.5+net-snmp 5.4.1
I'm curious why you're trying to use this script again on an APC device which already supports snmp?
Did you install apcdaemon and enabled NIS, as the instructions state?
Did you install apcdaemon and enabled NIS, as the instructions state?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 1 guest