Templates for APC Smart UPS (Device, graph and data source)

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Templates for APC Smart UPS (Device, graph and data source)

Post by camerabob »

These were set up on Cacti 0.8.8h and imported to Cacti 1.0.3. The 'basement' UPS is a RM1400 and the 'office' is a 750XL. The firmware in the cards may be what differentiates the use of the 'Battery Status' template over the 'Precise Battery Status' template. The only difference between the two is the precise gives you one digit to the right of the decimal point. (.1 VDC) Version 0.8.8h does not include the precise template.
These are available in both versions
These are available in both versions
graph.png (186.67 KiB) Viewed 6318 times
This is only available in the 1.0.x template
This is only available in the 1.0.x template
Battery.png (25.82 KiB) Viewed 6318 times
This is available in both flavors, but my units didn't have an OID that included current
This is available in both flavors, but my units didn't have an OID that included current
Amps.png (14.48 KiB) Viewed 6318 times
Enjoy
Attachments
cacti_host_template_apc_smart_ups-0.8.8h.xml
Templates for Cacti 0.8.8h. Forward compatible.
(83.66 KiB) Downloaded 521 times
cacti_host_template_apc_smart_ups-1.0.x.xml
Templates for Cacti 1.0.3. These are NOT backward compatible.
(107.34 KiB) Downloaded 764 times
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
swoopko
Posts: 2
Joined: Mon Feb 06, 2017 12:58 pm

Re: Templates for APC Smart UPS (Device, graph and data sour

Post by swoopko »

Hello, Template is great and working fine. Thank you

Just i have one problem with Battery Temp Graph. See screenshots maybe you will have an idea how to solve this.
rrd_file.png
rrd_file.png (16.55 KiB) Viewed 6246 times
rrd_detail.png
rrd_detail.png (18.27 KiB) Viewed 6246 times
mc.png
mc.png (25.65 KiB) Viewed 6246 times
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Templates for APC Smart UPS (Device, graph and data sour

Post by camerabob »

It looks like a permissions issue on the server, though I don't know how all the rest worked and not that single one. Not a Cacti pro, but stammered through setting it up myself several times. All I can suggest at this time would be to re-import that graph template. Perhaps something got lost in translation.

Also try renaming that RRD file and see if Cacti will create a new one on the next poll.
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Templates for APC Smart UPS (Device, graph and data sour

Post by camerabob »

Just a short follow up:

The Runtime template seems to have a compatability issue with V1.1.38. It does work with 1.1.36, not sure about 1.1.37. It once again is fine with version 1.2.2, where I just upgraded to. Save you all the weeks of the troubleshooting I spent trying to figure out what the heck was wrong with that particular template.
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
acleech
Posts: 6
Joined: Thu Sep 20, 2007 10:09 am
Location: San Angelo, TX

Re: Templates for APC Smart UPS (Device, graph and data source)

Post by acleech »

I just wanted to thank you for your work on these - these work great on our UPS. Running on 1.2.6 with no problem.
Cacti Version - 1.2.6
Poller Type - SPINE 1.2.6
Server Info - CentOS7
Database - MariaDB 10.3.17
Web Server - Apache 2.4.6
SNMP - NET-SNMP 5.7.2
RRDTool - Version 1.4.8
PHP - 7.3.9
User avatar
RaduAlexandru
Posts: 43
Joined: Mon Mar 28, 2005 5:06 pm
Location: Bucharest, Romania
Contact:

Re: Templates for APC Smart UPS (Device, graph and data source)

Post by RaduAlexandru »

First of all, thank you for your work in creating these.

I would have one question, though: how does one change the temperature for Fahrenheit to Celsius (using cacti 1.2.6 if it makes any difference)?

Thank you in advance.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Templates for APC Smart UPS (Device, graph and data source)

Post by netniV »

You would need to modify the templates and use a CDEF that converts into celcius (or if the device already reports in that just remove the CDEF)
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Templates for APC Smart UPS (Device, graph and data source)

Post by camerabob »

The default output is Celcius, so just remove the CDEF. Make sure you also change the left side text to read Degrees C.
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
User avatar
RaduAlexandru
Posts: 43
Joined: Mon Mar 28, 2005 5:06 pm
Location: Bucharest, Romania
Contact:

Re: Templates for APC Smart UPS (Device, graph and data source)

Post by RaduAlexandru »

Thank you very much for your quick responses. I ended up just duplicating the graph and editing that one...
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Templates for APC Smart UPS (Device, graph and data source)

Post by camerabob »

Updated the graphs over time. Tested and exported from Cacti v1.2.15. These are the graph templates only.

2021-09-27 1045 EDT *** Updated the file
Made corrections on some graph templates (average changed to max)
Added a graph for two temperature probes
APC1.png
APC1.png (154.25 KiB) Viewed 3496 times
APC2.png
APC2.png (196.64 KiB) Viewed 3496 times
APC3.png
APC3.png (133.95 KiB) Viewed 3496 times
APC4.png
APC4.png (78.87 KiB) Viewed 3496 times
Attachments
APC-SmartUPS-graph.zip
(36.52 KiB) Downloaded 207 times
Last edited by camerabob on Mon Sep 27, 2021 9:58 pm, edited 3 times in total.
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Templates for APC Smart UPS (Device, graph and data source)

Post by camerabob »

Updated the graphs over time. Tested and exported from Cacti v1.2.15. This is the device (host) template.

2021-09-27 1045 EDT *** Updated the file
Made corrections on some graph templates (average changed to max)
Added a graph for two temperature probes
APC-Smart-UPS.zip
(10.51 KiB) Downloaded 282 times
Attachments
Two probe graph
Two probe graph
image_2021-09-29_140935.png (25.63 KiB) Viewed 3467 times
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest