APC UPS Daemon (apcupsd) via NIS [v1.1 2007-12-17]
Moderators: Developers, Moderators
How difficult would it be to modify the graphs to use the sensors from another set of scripts? I haven't attempted to create any myself yet and am still figuring Cacti out in general. From what I've seen it looks to be a bit work to create them much less to convert them. I like the way these graphs are laid out and would prefer to use them instead of the individual graphs I currently have functioning.
umm if you want to use different scripts, then you should read the documentation site (link above) on how to make the scripts/templates. not all that complicated.
| 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 |
This script works like a charm:
The problem im facing is that i connected 3 UPS to the same machine via USB, and i can make it to monitor one of them.... How can i do it to monitor the three of them? Each one runs in a different NIS port, 3551, 3552 and 3553.
I know they are giving the readings properly manually running the script.
Any idea?
The problem im facing is that i connected 3 UPS to the same machine via USB, and i can make it to monitor one of them.... How can i do it to monitor the three of them? Each one runs in a different NIS port, 3551, 3552 and 3553.
I know they are giving the readings properly manually running the script.
Any idea?
1) make sure your NIS client can read the separate UPS's on each port.
2) In the APC UPS Data Source for the device, specify the port which it should use.
2) In the APC UPS Data Source for the device, specify the port which it should use.
| 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 |
-
- Posts: 13
- Joined: Fri Dec 05, 2008 4:06 pm
- Location: Santa Clara CA
- Contact:
I take it, everyone is running the script and template aginst a server that is connected to the serial port of the ups. I'm trying to setup UPS monitoring just using the snmp accesss to the network management card in the ups. Do I need to modify any line in the .php file to do this? What about APCACCESS_PATH. How does this script work when there is no server running the apcupsd? I do have apcupsd in my cacti folder
Thanks,
Steve
Thanks,
Steve
While this script will work for your SNMP enabled UPS, I strongly recommend you use the snmp UPS script/templates on this forum instead. Less hassle to set up and much quicker.
Yes, every server running a ups you want to monitor must be running apcupsd with NIS for this script to work. Yes, per the installation guide, you must modify the apcaaccess_path.
Yes, every server running a ups you want to monitor must be running apcupsd with NIS for this script to work. Yes, per the installation guide, you must modify the apcaaccess_path.
| 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 |
-
- Posts: 13
- Joined: Fri Dec 05, 2008 4:06 pm
- Location: Santa Clara CA
- Contact:
Thanks for the info, I too figured it would be simpler to use a script build for just SNMP and the more I searched I found one by Streaker69. Thanks for the helpBSOD2600 wrote:While this script will work for your SNMP enabled UPS, I strongly recommend you use the snmp UPS script/templates on this forum instead. Less hassle to set up and much quicker.
Yes, every server running a ups you want to monitor must be running apcupsd with NIS for this script to work. Yes, per the installation guide, you must modify the apcaaccess_path.
Hi.
I'm using this template to monitor my symmetra apc ups.
when i run manually the script, i get this data:
But in graphs not all data is displayed...
The charge%, load%, internal temp,line freq and line voltege is ok but the battery voltage, nominal battery voltage, remaining time and nominal line voltage is not show on graphs.
what should i check first?
my cacti version is 0.8.7b running on Ubuntu server 8.10
I'm using this template to monitor my symmetra apc ups.
when i run manually the script, i get this data:
Code: Select all
dimis7@cacti:/usr/share/cacti/site/scripts$ php query_apcupsd.php 192.168.1.15 3551
LINEV:230.4 LOADPCT:0.0 BCHARGE:100.0 TIMELEFT:572.0 MAXLINEV:232.1 MINLINEV:230.4 ITEMP:48.2 BATTV:136.5 LINEFREQ:50.0 TONBATT:0 NOMBATTV:120.0dimis7@cacti:/usr/share/cacti/site/scripts$
The charge%, load%, internal temp,line freq and line voltege is ok but the battery voltage, nominal battery voltage, remaining time and nominal line voltage is not show on graphs.
what should i check first?
my cacti version is 0.8.7b running on Ubuntu server 8.10
Code: Select all
Data Source Debug
/usr/bin/rrdtool create \
/var/lib/cacti/rra/server_tonbatt_66.rrd \
--step 300 \
DS:LOADPCT:GAUGE:600:0:100 \
DS:BCHARGE:GAUGE:600:0:100 \
DS:TIMELEFT:GAUGE:600:0:700 \
DS:BATTV:GAUGE:600:0:150 \
DS:NOMINV:GAUGE:600:0:250 \
DS:NOMBATTV:GAUGE:600:0:100 \
DS:MAXLINEV:GAUGE:600:0:250 \
DS:MINLINEV:GAUGE:600:0:250 \
DS:ITEMP:GAUGE:600:0:120 \
DS:LINEFREQ:GAUGE:600:0:100 \
DS:TONBATT:GAUGE:600:0:100 \
DS:LINEV:GAUGE:600:0:250 \
RRA:AVERAGE:0.5:1:500 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:1:1440 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:1:1440 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \
- Attachments
-
- upd.PNG (61.31 KiB) Viewed 7739 times
The script merely spits out the parsed results from apcaccess. Manually run the command against your device and see if it spits out those missing fields:dimis7 wrote:The charge%, load%, internal temp,line freq and line voltege is ok but the battery voltage, nominal battery voltage, remaining time and nominal line voltage is not show on graphs.
what should i check first?
apcaccess status 192.168.1.15:3551
| 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 |
Re: APC UPS Daemon (apcupsd) via NIS [v1.1 2007-12-17]
This template/script works perfectly on 8.7i. Thanks for your great work!
Re: APC UPS Daemon (apcupsd) via NIS [v1.1 2007-12-17]
really?
what have i done wrong ?
RRDTool Says:
ERROR: opening '/var/www/localhost/htdocs/cacti/rra/apc_su700xl_linev_276.rrd': No such file or directory
what have i done wrong ?
RRDTool Says:
ERROR: opening '/var/www/localhost/htdocs/cacti/rra/apc_su700xl_linev_276.rrd': No such file or directory
Re: APC UPS Daemon (apcupsd) via NIS [v1.1 2007-12-17]
Hi there,
with Ubuntu 16.04 there comes PHP7, which caused me some headaches, because I just realized that *after* the upgrade was done and it was too late
So: The apcupsd-script "query_apcupsd.php" fails.
But: The solution is simple.
In line 66 just replace the "split" (deprecated) command with "explode".
Have fun.
PS: My UPS from APC and cacti (today 0.8.8f) work together perfectly for 10 (!) years now, never had to change anything until now *smile*
Sven
with Ubuntu 16.04 there comes PHP7, which caused me some headaches, because I just realized that *after* the upgrade was done and it was too late
So: The apcupsd-script "query_apcupsd.php" fails.
But: The solution is simple.
In line 66 just replace the "split" (deprecated) command with "explode".
Have fun.
PS: My UPS from APC and cacti (today 0.8.8f) work together perfectly for 10 (!) years now, never had to change anything until now *smile*
Sven
Re: APC UPS Daemon (apcupsd) via NIS [v1.1 2007-12-17]
Just to let you know, you can follow here:seveny13 wrote:Hi there,
with Ubuntu 16.04 there comes PHP7, which caused me some headaches, because I just realized that *after* the upgrade was done and it was too late
So: The apcupsd-script "query_apcupsd.php" fails.
But: The solution is simple.
In line 66 just replace the "split" (deprecated) command with "explode".
Have fun.
PS: My UPS from APC and cacti (today 0.8.8f) work together perfectly for 10 (!) years now, never had to change anything until now *smile*
Sven
http://askubuntu.com/questions/761713/h ... untu-16-04
And it will let you run PHP 5.6 on Ubuntu 16.04.
If you need to change the PHP command line, do this:
cd /etc/alternatives
sudo rm php
sudo ln -s /usr/bin/php5.6 php
(change php5.6 or php7.0 to switch back)
Who is online
Users browsing this forum: No registered users and 0 guests