Are you using Rocky 9.x too?shadkr wrote: ↑Mon Nov 25, 2024 2:23 pmI checked the paths - they match the path specified in the file poller_apcupsd.phpTheWitness wrote: ↑Mon Nov 25, 2024 11:46 am Maybe you have the wrong apcaccess path setup in Cacti. Here is from my setup using the develop branch of the plugin.In my case it is /usr/sbin/apcaccess -u -h 127.0.0.1:3551Code: Select all
$paths = array( '/usr/sbin/', '/usr/bin/', '/usr/local/bin/' );
I have no more ideas
UPS Monitoring Plugin for Cacti Released
Moderators: Developers, Moderators
-
- Posts: 7
- Joined: Wed Jul 18, 2012 7:59 am
Re: UPS Monitoring Plugin for Cacti Released
Re: UPS Monitoring Plugin for Cacti Released
I am using Rocky Linux 8.10DangerDevil wrote: ↑Mon Nov 25, 2024 2:26 pmAre you using Rocky 9.x too?shadkr wrote: ↑Mon Nov 25, 2024 2:23 pmI checked the paths - they match the path specified in the file poller_apcupsd.phpTheWitness wrote: ↑Mon Nov 25, 2024 11:46 am Maybe you have the wrong apcaccess path setup in Cacti. Here is from my setup using the develop branch of the plugin.In my case it is /usr/sbin/apcaccess -u -h 127.0.0.1:3551Code: Select all
$paths = array( '/usr/sbin/', '/usr/bin/', '/usr/local/bin/' );
I have no more ideas
nginx/1.14.1
PHP: 8.2.25
10.11.6-MariaDB
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: UPS Monitoring Plugin for Cacti Released
It could be SELinux. You could use the cacti_log() function to output the contents of the output array...
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: UPS Monitoring Plugin for Cacti Released
I just updated the develop version of the apcupsd plugin. If you run the poller_apcupsd.php script now using the --debug option, you should get output as below.
Code: Select all
[root@vmhost3 apcupsd]# php -q poller_apcupsd.php --force --debug
20:36:25 DEBUG: Collecting UPS Information for BX 1500M Basement
20:36:25 DEBUG: Output:APC : 001,038,0969
20:36:25 DEBUG: Output:DATE : 2024-11-25 20:36:21 -0500
20:36:25 DEBUG: Output:HOSTNAME : vmhost3
20:36:25 DEBUG: Output:VERSION : 3.14.14 (31 May 2016) redhat
20:36:25 DEBUG: Output:UPSNAME : APC1500
20:36:25 DEBUG: Output:CABLE : USB Cable
20:36:25 DEBUG: Output:DRIVER : USB UPS Driver
20:36:25 DEBUG: Output:UPSMODE : Stand Alone
20:36:25 DEBUG: Output:STARTTIME: 2024-11-15 11:15:52 -0500
20:36:25 DEBUG: Output:MODEL : Back-UPS BX1500G
20:36:25 DEBUG: Output:STATUS : ONLINE
20:36:25 DEBUG: Output:LINEV : 123.0
20:36:25 DEBUG: Output:LOADPCT : 6.0
20:36:25 DEBUG: Output:BCHARGE : 100.0
20:36:25 DEBUG: Output:TIMELEFT : 84.2
20:36:25 DEBUG: Output:MBATTCHG : 5
20:36:25 DEBUG: Output:MINTIMEL : 3
20:36:25 DEBUG: Output:MAXTIME : 0
20:36:25 DEBUG: Output:SENSE : Low
20:36:25 DEBUG: Output:LOTRANS : 88.0
20:36:25 DEBUG: Output:HITRANS : 136.0
20:36:25 DEBUG: Output:ALARMDEL : 30
20:36:25 DEBUG: Output:BATTV : 27.2
20:36:25 DEBUG: Output:LASTXFER : Automatic or explicit self test
20:36:25 DEBUG: Output:NUMXFERS : 1
20:36:25 DEBUG: Output:XONBATT : 2024-11-25 09:01:59 -0500
20:36:25 DEBUG: Output:TONBATT : 0
20:36:25 DEBUG: Output:CUMONBATT: 9
20:36:25 DEBUG: Output:XOFFBATT : 2024-11-25 09:02:08 -0500
20:36:25 DEBUG: Output:LASTSTEST: 2024-11-25 09:01:59 -0500
20:36:25 DEBUG: Output:SELFTEST : NO
20:36:25 DEBUG: Output:STATFLAG : 0x05000008
20:36:25 DEBUG: Output:SERIALNO : 3B1050X33233
20:36:25 DEBUG: Output:BATTDATE : 2021-04-01
20:36:25 DEBUG: Output:NOMINV : 120
20:36:25 DEBUG: Output:NOMBATTV : 24.0
20:36:25 DEBUG: Output:NOMPOWER : 865
20:36:25 DEBUG: Output:FIRMWARE : 866.L5 .D USB FW:L5
20:36:25 DEBUG: Output:END APC : 2024-11-25 20:36:25 -0500
20:36:25 DEBUG: Collecting UPS Information for XS 1500M Basement
20:36:25 DEBUG: Output:APC : 001,038,0974
20:36:25 DEBUG: Output:DATE : 2024-11-25 20:36:25 -0500
20:36:25 DEBUG: Output:HOSTNAME : vmhost2
20:36:25 DEBUG: Output:VERSION : 3.14.14 (31 May 2016) redhat
20:36:25 DEBUG: Output:UPSNAME : vmhost2
20:36:25 DEBUG: Output:CABLE : USB Cable
20:36:25 DEBUG: Output:DRIVER : USB UPS Driver
20:36:25 DEBUG: Output:UPSMODE : Stand Alone
20:36:25 DEBUG: Output:STARTTIME: 2024-11-02 08:01:20 -0400
20:36:25 DEBUG: Output:MODEL : Back-UPS XS 1500M
20:36:25 DEBUG: Output:STATUS : ONLINE
20:36:25 DEBUG: Output:LINEV : 123.0
20:36:25 DEBUG: Output:LOADPCT : 13.0
20:36:25 DEBUG: Output:BCHARGE : 100.0
20:36:25 DEBUG: Output:TIMELEFT : 47.1
20:36:25 DEBUG: Output:MBATTCHG : 5
20:36:25 DEBUG: Output:MINTIMEL : 3
20:36:25 DEBUG: Output:MAXTIME : 0
20:36:25 DEBUG: Output:SENSE : Medium
20:36:25 DEBUG: Output:LOTRANS : 88.0
20:36:25 DEBUG: Output:HITRANS : 139.0
20:36:25 DEBUG: Output:ALARMDEL : 30
20:36:25 DEBUG: Output:BATTV : 27.3
20:36:25 DEBUG: Output:LASTXFER : Automatic or explicit self test
20:36:25 DEBUG: Output:NUMXFERS : 1
20:36:25 DEBUG: Output:XONBATT : 2024-11-16 03:08:43 -0500
20:36:25 DEBUG: Output:TONBATT : 0
20:36:25 DEBUG: Output:CUMONBATT: 8
20:36:25 DEBUG: Output:XOFFBATT : 2024-11-16 03:08:51 -0500
20:36:25 DEBUG: Output:LASTSTEST: 2024-11-16 03:08:43 -0500
20:36:25 DEBUG: Output:SELFTEST : NO
20:36:25 DEBUG: Output:STATFLAG : 0x05000008
20:36:25 DEBUG: Output:SERIALNO : 0B2117N10526
20:36:25 DEBUG: Output:BATTDATE : 2021-04-25
20:36:25 DEBUG: Output:NOMINV : 120
20:36:25 DEBUG: Output:NOMBATTV : 24.0
20:36:25 DEBUG: Output:NOMPOWER : 900
20:36:25 DEBUG: Output:FIRMWARE : 947.d10 .D USB FW:d
20:36:25 DEBUG: Output:END APC : 2024-11-25 20:36:25 -0500
20:36:25 DEBUG: Collecting UPS Information for SMT 750 Basement
20:36:25 DEBUG: Output:APC : 001,042,0990
20:36:25 DEBUG: Output:DATE : 2024-11-25 20:35:50 -0500
20:36:25 DEBUG: Output:HOSTNAME : vmhost1
20:36:25 DEBUG: Output:VERSION : 3.14.14 (31 May 2016) redhat
20:36:25 DEBUG: Output:UPSNAME : UPS-NA0167
20:36:25 DEBUG: Output:CABLE : Ethernet Link
20:36:25 DEBUG: Output:DRIVER : SNMP UPS Driver
20:36:25 DEBUG: Output:UPSMODE : Stand Alone
20:36:25 DEBUG: Output:STARTTIME: 2024-11-02 08:00:52 -0400
20:36:25 DEBUG: Output:MODEL : Smart-UPS 750
20:36:25 DEBUG: Output:STATUS : ONLINE
20:36:25 DEBUG: Output:LINEV : 123.0
20:36:25 DEBUG: Output:LOADPCT : 10.0
20:36:25 DEBUG: Output:BCHARGE : 100.0
20:36:25 DEBUG: Output:TIMELEFT : 50.0
20:36:25 DEBUG: Output:MBATTCHG : 5
20:36:25 DEBUG: Output:MINTIMEL : 3
20:36:25 DEBUG: Output:MAXTIME : 0
20:36:25 DEBUG: Output:MAXLINEV : 123.0
20:36:25 DEBUG: Output:MINLINEV : 123.0
20:36:25 DEBUG: Output:OUTPUTV : 123.0
20:36:25 DEBUG: Output:SENSE : High
20:36:25 DEBUG: Output:DLOWBATT : 2
20:36:25 DEBUG: Output:LOTRANS : 106.0
20:36:25 DEBUG: Output:HITRANS : 127.0
20:36:25 DEBUG: Output:ITEMP : 31.0
20:36:25 DEBUG: Output:ALARMDEL : 30
20:36:25 DEBUG: Output:BATTV : 27.0
20:36:25 DEBUG: Output:LINEFREQ : 60.0
20:36:25 DEBUG: Output:LASTXFER : Automatic or explicit self test
20:36:25 DEBUG: Output:NUMXFERS : 0
20:36:25 DEBUG: Output:TONBATT : 0
20:36:25 DEBUG: Output:CUMONBATT: 0
20:36:25 DEBUG: Output:XOFFBATT : N/A
20:36:25 DEBUG: Output:SELFTEST : OK
20:36:25 DEBUG: Output:STESTI : OFF
20:36:25 DEBUG: Output:STATFLAG : 0x05000008
20:36:25 DEBUG: Output:MANDATE : 05/12/2016
20:36:25 DEBUG: Output:SERIALNO : 3S1619X02041
20:36:25 DEBUG: Output:BATTDATE : 05/12/2016
20:36:25 DEBUG: Output:NOMOUTV : 120
20:36:25 DEBUG: Output:FIRMWARE : UPS 09.3 (ID18)
20:36:25 DEBUG: Output:END APC : 2024-11-25 20:36:25 -0500
20:36:25 DEBUG: Collecting UPS Information for APC BG500 Office
20:36:25 DEBUG: Output:APC : 001,028,0729
20:36:25 DEBUG: Output:DATE : 2024-11-25 20:36:22 -0500
20:36:25 DEBUG: Output:HOSTNAME : adamsnas
20:36:25 DEBUG: Output:VERSION : 3.14.14 (31 May 2016) redhat
20:36:25 DEBUG: Output:UPSNAME : BG500
20:36:25 DEBUG: Output:CABLE : USB Cable
20:36:25 DEBUG: Output:DRIVER : USB UPS Driver
20:36:25 DEBUG: Output:UPSMODE : Stand Alone
20:36:25 DEBUG: Output:STARTTIME: 2024-06-05 11:39:34 -0400
20:36:25 DEBUG: Output:MODEL : Back-UPS Pro 500
20:36:25 DEBUG: Output:STATUS : ONLINE
20:36:25 DEBUG: Output:BCHARGE : 100.0
20:36:25 DEBUG: Output:TIMELEFT : 20.4
20:36:25 DEBUG: Output:MBATTCHG : 5
20:36:25 DEBUG: Output:MINTIMEL : 3
20:36:25 DEBUG: Output:MAXTIME : 0
20:36:25 DEBUG: Output:ALARMDEL : 30
20:36:25 DEBUG: Output:BATTV : 13.3
20:36:25 DEBUG: Output:NUMXFERS : 25
20:36:25 DEBUG: Output:XONBATT : 2024-10-28 11:29:45 -0400
20:36:25 DEBUG: Output:TONBATT : 0
20:36:25 DEBUG: Output:CUMONBATT: 1059
20:36:25 DEBUG: Output:XOFFBATT : 2024-10-28 11:29:46 -0400
20:36:25 DEBUG: Output:STATFLAG : 0x05000008
20:36:25 DEBUG: Output:MANDATE : 2018-08-05
20:36:25 DEBUG: Output:SERIALNO : 5B1831T19827
20:36:25 DEBUG: Output:NOMBATTV : 13.2
20:36:25 DEBUG: Output:FIRMWARE : UPS 05.3 / ID=3000
20:36:25 DEBUG: Output:END APC : 2024-11-25 20:36:25 -0500
20:36:25 DEBUG: Collecting UPS Information for ES 750 Basement
20:36:26 DEBUG: Output:APC : 001,038,0956
20:36:26 DEBUG: Output:DATE : 2024-11-25 20:36:25 -0500
20:36:26 DEBUG: Output:HOSTNAME : vmhost10
20:36:26 DEBUG: Output:VERSION : 3.14.14 (31 May 2016) redhat
20:36:26 DEBUG: Output:UPSNAME : vmhost10
20:36:26 DEBUG: Output:CABLE : USB Cable
20:36:26 DEBUG: Output:DRIVER : USB UPS Driver
20:36:26 DEBUG: Output:UPSMODE : Stand Alone
20:36:26 DEBUG: Output:STARTTIME: 2024-11-02 08:01:14 -0400
20:36:26 DEBUG: Output:MODEL : Back-UPS ES 750
20:36:26 DEBUG: Output:STATUS : ONLINE
20:36:26 DEBUG: Output:LINEV : 123.0
20:36:26 DEBUG: Output:LOADPCT : 7.0
20:36:26 DEBUG: Output:BCHARGE : 100.0
20:36:26 DEBUG: Output:TIMELEFT : 63.6
20:36:26 DEBUG: Output:MBATTCHG : 5
20:36:26 DEBUG: Output:MINTIMEL : 3
20:36:26 DEBUG: Output:MAXTIME : 0
20:36:26 DEBUG: Output:SENSE : High
20:36:26 DEBUG: Output:LOTRANS : 96.0
20:36:26 DEBUG: Output:HITRANS : 136.0
20:36:26 DEBUG: Output:ALARMDEL : 30
20:36:26 DEBUG: Output:BATTV : 13.7
20:36:26 DEBUG: Output:LASTXFER : Low line voltage
20:36:26 DEBUG: Output:NUMXFERS : 2
20:36:26 DEBUG: Output:XONBATT : 2024-11-24 05:26:32 -0500
20:36:26 DEBUG: Output:TONBATT : 0
20:36:26 DEBUG: Output:CUMONBATT: 9
20:36:26 DEBUG: Output:XOFFBATT : 2024-11-24 05:26:33 -0500
20:36:26 DEBUG: Output:LASTSTEST: 2024-11-16 03:08:43 -0500
20:36:26 DEBUG: Output:SELFTEST : NO
20:36:26 DEBUG: Output:STATFLAG : 0x05000008
20:36:26 DEBUG: Output:SERIALNO : 3B0925X28817
20:36:26 DEBUG: Output:BATTDATE : 2022-09-14
20:36:26 DEBUG: Output:NOMINV : 120
20:36:26 DEBUG: Output:NOMBATTV : 12.0
20:36:26 DEBUG: Output:NOMPOWER : 450
20:36:26 DEBUG: Output:FIRMWARE : 841.I3 .D USB FW:I3
20:36:26 DEBUG: Output:END APC : 2024-11-25 20:36:26 -0500
20:36:26 DEBUG: Collecting UPS Information for SMT 750 Network Attached
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.1.1.1.0, Key APCMODEL, DB Column: ups_model, Rendered: Smart-UPS 750
20:36:26 DEBUG: SNMP Check for 1.3.6.1.4.1.318.1.1.1.2.1.3.0, Key BATTDATE, DB Column: ups_battery_date, Rendered: 05/12/2016
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.2.1.1.0, Key BATTSTAT, DB Column: ups_battery_status, Rendered: 2
20:36:26 DEBUG: ------------------ UPS ENUM BATTSTAT
20:36:26 DEBUG: ------------ 2 ---- Normal
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.2.2.8.0, Key BATTV, DB Column: ups_battery_voltage, Rendered: 27
20:36:26 DEBUG: SNMP Check for 1.3.6.1.4.1.318.1.1.1.2.2.1.0, Key BCHARGE, DB Column: ups_battery_charge, Rendered: 100
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.5.2.8.0, Key DLOWBATT, DB Column: ups_dlowbatt, Rendered: 12000
20:36:26 DEBUG: SNMP Check for 1.3.6.1.4.1.318.1.1.1.1.2.1.0, Key FIRMWARE, DB Column: ups_firmware, Rendered: UPS 09.3 (ID18)
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.5.2.3.0, Key HITRANS, DB Column: ups_hitrans, Rendered: 106
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.2.2.2.0, Key ITEMP, DB Column: ups_internal_temp, Rendered: 31
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.3.2.4.0, Key LINEFREQ, DB Column: ups_line_frequency, Rendered: 60
20:36:26 DEBUG: SNMP Check for 1.3.6.1.4.1.318.1.1.1.3.2.1.0, Key LINEV, DB Column: ups_line_voltage, Rendered: 123
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.4.2.3.0, Key LOADPCT, DB Column: ups_load_percent, Rendered: 13
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.5.2.2.0, Key LOTRANS, DB Column: ups_lowtrans, Rendered: 127
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.1.2.2.0, Key MANDATE, DB Column: ups_mandate, Rendered: 05/12/2016
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.3.2.2.0, Key MAXLINEV, DB Column: ups_max_line_voltage, Rendered: 123
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.3.2.3.0, Key MINLINEV, DB Column: ups_min_line_voltage, Rendered: 123
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.1.1.1.0, Key MODEL, DB Column: ups_model, Rendered: Smart-UPS 750
20:36:26 DEBUG: SNMP Check for 1.3.6.1.2.1.33.1.9.3.0, Key NOMOUTV, DB Column: ups_nominal_output_voltage, Rendered: 120
20:36:26 DEBUG: SNMP Check for .1.3.6.1.2.1.33.1.9.6.0, Key NOMPOWER, DB Column: ups_nominal_power, Rendered: 500
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.4.2.1.0, Key OUTPUTV, DB Column: ups_output_voltage, Rendered: 123
20:36:26 DEBUG: SNMP Check for .1.3.6.1.2.1.33.1.7.3.0, Key SELFTEST, DB Column: ups_selftest, Rendered: 1
20:36:26 DEBUG: ------------------ UPS ENUM SELFTEST
20:36:26 DEBUG: ------------ 1 ---- Ok
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.1.2.3.0, Key SERIALNO, DB Column: ups_serialno, Rendered: 3S1619X02041
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.4.1.1.0, Key STATUS, DB Column: ups_status, Rendered: 2
20:36:26 DEBUG: ------------------ UPS ENUM STATUS
20:36:26 DEBUG: ------------ 2 ---- ONLINE
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.7.2.4.0, Key LASTSTEST, DB Column: ups_laststest, Rendered: 11/14/2024
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.7.2.1.0, Key STESTI, DB Column: ups_selftest_interval, Rendered: 8
20:36:26 DEBUG: ------------------ UPS ENUM STESTI
20:36:26 DEBUG: ------------ 8 ---- BIWEEKLYLAST
20:36:26 DEBUG: SNMP Check for 1.3.6.1.4.1.318.1.1.1.2.2.3.0, Key TIMELEFT, DB Column: ups_timeleft, Rendered: 282000
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.2.1.2.0, Key TONBATT, DB Column: ups_tonbatt, Rendered: 0
20:36:26 DEBUG: SNMP Check for .1.3.6.1.4.1.318.1.1.1.1.1.2.0, Key UPSNAME, DB Column: ups_name, Rendered: UPS-NA0167
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: UPS Monitoring Plugin for Cacti Released
Thanks for the answer.
Selinux is completely disabled.
After updating from GitHub, the debug output is also empty:
For example debug for thold:
Selinux is completely disabled.
Code: Select all
[root@hidden apcupsd]# sestatus
SELinux status: disabled
Code: Select all
[root@hidden apcupsd]# php -q poller_apcupsd.php --force --debug
[root@hidden apcupsd]#
Code: Select all
[hidden@hidden thold]# php -q poller_thold.php --force --debug
Starting the Thold Poller Process
Total[0.0000] DEBUG: Not upgrading Thold database.
Total[0.0001] DEBUG: Pruning stale dead host notifications.
Total[0.0008] DEBUG: Thold daemon not enabled. Preparing to perform checks.
Total[0.0008] DEBUG: Thold checks started.
Total[0.0038] DEBUG: Thold checks finished.
Total[0.0038] DEBUG: Down device checks started.
Total[0.0191] DEBUG: Down device checks finished.
Total[0.0193] DEBUG: Thold Log Cleanup started.
Total[0.0197] DEBUG: Thold Log Cleanup finished.
Total[0.0203] DEBUG: Prune old data started.
Total[0.0212] DEBUG: Prune old data finished.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: UPS Monitoring Plugin for Cacti Released
Let me add some more instrumentation later today. Is the plugin actually enabled?
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
-
- Posts: 7
- Joined: Wed Jul 18, 2012 7:59 am
Re: UPS Monitoring Plugin for Cacti Released
Hello.
Yes, Plugin is enabled, latest Version from git.
Plugin removed, installed. UPS_APC_UPSD_Device.xml.gz new importet
No output when run manual.
Yes, Plugin is enabled, latest Version from git.
Plugin removed, installed. UPS_APC_UPSD_Device.xml.gz new importet
No output when run manual.
- Attachments
-
- UPS.png (35.12 KiB) Viewed 635 times
-
- plugins.png (31.03 KiB) Viewed 635 times
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: UPS Monitoring Plugin for Cacti Released
I think I found the issue. Silly me. I added an INNER JOIN on the stat's table which for new UPS' they don't have stats, so polling never starts. This is fixed now in develop. Post your findings.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: UPS Monitoring Plugin for Cacti Released
New output:
Code: Select all
[root@vmhost3 apcupsd]# php -q poller_apcupsd.php --force
NOTE: APCUPSD Poller Process Starting.
NOTE: Found 5 apcaccess enabled UPS's
NOTE: Found 1 snmp enabled UPS's
[root@vmhost3 apcupsd]#
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: UPS Monitoring Plugin for Cacti Released
I just released 1.2 with this fix and added two new features in develop for filtering by Site and Location. Only one feature request currently open right now outside of that.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: UPS Monitoring Plugin for Cacti Released
Yes - it works. Thank you.TheWitness wrote: ↑Tue Nov 26, 2024 8:26 am New output:
Code: Select all
[root@vmhost3 apcupsd]# php -q poller_apcupsd.php --force NOTE: APCUPSD Poller Process Starting. NOTE: Found 5 apcaccess enabled UPS's NOTE: Found 1 snmp enabled UPS's [root@vmhost3 apcupsd]#
-
- Posts: 7
- Joined: Wed Jul 18, 2012 7:59 am
Re: UPS Monitoring Plugin for Cacti Released
YES.
Now it works how expected.
Thank you very much!
Kind regards,
DangerDevil
[root@cacti apcupsd]# php -q poller_apcupsd.php --force --debug
NOTE: APCUPSD Poller Process Starting.
NOTE: Found 1 apcaccess enabled UPS's
16:51:56 DEBUG: Collecting UPS Information for Keller
16:51:58 DEBUG: Output:APC : 001,036,0889
16:51:58 DEBUG: Output:DATE : 2024-11-26 17:53:31 +0100
.
.
.
16:51:58 DEBUG: Output:END APC : 2024-11-26 17:53:31 +0100
2024-11-26 16:51:59 - AUTOM8 TRACE [PID: 241928] automation_update_device() Device[16]
2024-11-26 16:52:01 - AUTOM8 TRACE [PID: 241928] automation_update_device() Create Tree for Device[16]
NOTE: Did not find any snmp enabled UPS's
Now it works how expected.
Thank you very much!
Kind regards,
DangerDevil
[root@cacti apcupsd]# php -q poller_apcupsd.php --force --debug
NOTE: APCUPSD Poller Process Starting.
NOTE: Found 1 apcaccess enabled UPS's
16:51:56 DEBUG: Collecting UPS Information for Keller
16:51:58 DEBUG: Output:APC : 001,036,0889
16:51:58 DEBUG: Output:DATE : 2024-11-26 17:53:31 +0100
.
.
.
16:51:58 DEBUG: Output:END APC : 2024-11-26 17:53:31 +0100
2024-11-26 16:51:59 - AUTOM8 TRACE [PID: 241928] automation_update_device() Device[16]
2024-11-26 16:52:01 - AUTOM8 TRACE [PID: 241928] automation_update_device() Create Tree for Device[16]
NOTE: Did not find any snmp enabled UPS's
Re: UPS Monitoring Plugin for Cacti Released
Hello,
Thanks for the plugin. I have it working, except if I try to edit any entry in Management -> UPSes I get the following error in cacti.log:
2024-12-02 08:28:20 - CMDPHP PHP ERROR WARNING Backtrace: (C:\Cacti\plugins\apcupsd\upses.php[210]:ups_edit(), C:\Cacti\plugins\apcupsd\upses.php[519]:CactiErrorHandler())
2024-12-02 08:28:20 - ERROR PHP WARNING: Undefined array key "name" in file: C:\Cacti\plugins\apcupsd\upses.php on line: 519
Also unable to delete an entry, no log error, just the message "Click 'Continue' to Delete the following UPS. Note, all Devices will be disassociated from this UPS." followed by empty bullet point, nothing happens.
Thanks for the plugin. I have it working, except if I try to edit any entry in Management -> UPSes I get the following error in cacti.log:
2024-12-02 08:28:20 - CMDPHP PHP ERROR WARNING Backtrace: (C:\Cacti\plugins\apcupsd\upses.php[210]:ups_edit(), C:\Cacti\plugins\apcupsd\upses.php[519]:CactiErrorHandler())
2024-12-02 08:28:20 - ERROR PHP WARNING: Undefined array key "name" in file: C:\Cacti\plugins\apcupsd\upses.php on line: 519
Also unable to delete an entry, no log error, just the message "Click 'Continue' to Delete the following UPS. Note, all Devices will be disassociated from this UPS." followed by empty bullet point, nothing happens.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: UPS Monitoring Plugin for Cacti Released
Can you please open a bug on GitHub?
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: UPS Monitoring Plugin for Cacti Released
Done, thanks.
Who is online
Users browsing this forum: No registered users and 1 guest