APC Environment Templates.

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

Moderators: Developers, Moderators

jberanek
Posts: 16
Joined: Fri Jul 25, 2008 6:10 am

My APC templates

Post by jberanek »

I thought I'd post my recently tidied/formulated APC templates. We use them on a Symmetra UPS, and they graph:

Templates were exported from a Cacti 0.8.7b installation.

* Battery Capacity
* Voltages (In/Out)
* UPS Load
* Internal (Battery) Temperature
* Room temperature
* Room humidity

The 2 room graphs utilise "Probe 1" on (I believe) an addin environment sensing card. Retrieved by SNMP as:

mUpsEnvironAmbientTemperature 1.3.6.1.4.1.318.1.1.2.1.1
mUpsEnvironRelativeHumidity 1.3.6.1.4.1.318.1.1.2.1.2

This is my first template post, so hopefully it goes OK...

John.
Attachments
UPC-Symmetra-1.0.zip
Graph templates for APC Symmetra UPS - utilises SNMP data from the POWERNET MIB.
(15.57 KiB) Downloaded 917 times
Battery capacity
Battery capacity
battery-capacity.png (19.95 KiB) Viewed 12664 times
Internal temperature
Internal temperature
internal-temp.png (20.16 KiB) Viewed 12664 times
Room temperature
Room temperature
room-temp.png (19.72 KiB) Viewed 12664 times
Room humidity
Room humidity
humidity.png (24.21 KiB) Viewed 12664 times
Last edited by jberanek on Fri Jul 25, 2008 6:35 am, edited 2 times in total.
jberanek
Posts: 16
Joined: Fri Jul 25, 2008 6:10 am

Post by jberanek »

The 6th attachment
Attachments
UPS Load
UPS Load
ups-load.png (18.48 KiB) Viewed 12662 times
drsprite
Posts: 5
Joined: Wed Oct 15, 2008 10:41 pm

Post by drsprite »

Hello all,

I have about 12 AP9340 environmental monitor units, and i can't seem to get these templates to graph them... I was able to get a quick blip, but it came in Celsius, then it stopped graphin.

I would like to get these to graph correctly in Fahrenheit.

Any ideas on how to get this working?

Any help would be great! :)
dave99
Posts: 26
Joined: Fri Mar 17, 2006 11:12 pm

Post by dave99 »

use a CDEF in your graph template that does the conversion.
drsprite
Posts: 5
Joined: Wed Oct 15, 2008 10:41 pm

Post by drsprite »

Well, the CDEF won't work when I can't get it to graph. All searches on this forum (and on google) for the OID returns ones that don't work.

I have a call into an APC tech to get back to me.
dave99
Posts: 26
Joined: Fri Mar 17, 2006 11:12 pm

Post by dave99 »

have you tried doing a snmpwalk on the device, and finding the OID's directly?
drsprite
Posts: 5
Joined: Wed Oct 15, 2008 10:41 pm

Post by drsprite »

yeah i have done an snmpwalk, me and a buddy haven't been able to figure it out. I work with APC on a lot of projects, so I've emailed them for some help. We'll see what they say I suppose.
vikingmaster
Posts: 12
Joined: Sun Apr 28, 2002 11:43 pm
Contact:

Post by vikingmaster »

thanks for you information
Shmegles
Cacti User
Posts: 64
Joined: Fri Oct 05, 2007 4:14 pm
Location: Seattle, WA, USA

Post by Shmegles »

I've posted some templates for AP9340, find 'em at http://forums.cacti.net/viewtopic.php?t=30362. You'll get graphs for both temp (in F) and humidity.

If you're unable to get anything to graph, are you getting a '0's' or "nan"? If "nan", try this (if you're using linux) "snmpget -c [communitystring] [host] sysDescr.0"

"snmpget -c [communitystring] -v 2c [host] sysDescr.0"

if those fail, try this:

"snmpget -c [communitystring] -v 1 [host] sysDescr.0"

if none of 'em work, you've likely got a problem with something like your community string (perhaps it's inaccurate), network connectivity, an access list on the AP9340, or some such.

if only the last works, you'll need to specify snmp v1 OR much better, upgrade the firmware on your AP9340's as mine respond to snmp v2 queries...using v3.5.6 of APC firmware.
DimmON
Posts: 14
Joined: Thu Apr 02, 2009 3:05 am

Post by DimmON »

Hello.

I`ve imported all of Symmetra`s templates through Cacti web interface. Some of them (internal_temperature and room_temperature) can not imported and show this error message "Error: XML parse error". :(

Where is my mistake?
Shmegles
Cacti User
Posts: 64
Joined: Fri Oct 05, 2007 4:14 pm
Location: Seattle, WA, USA

Post by Shmegles »

This has to do with cacti versions. I'm unsure what the root cause is but I've found that when attempting to import a template from a version of cacti which was created a newer version than I have, it fails. As noted above, the templates were created in 0.8.7b.

What version of cacti are you running?
toddritt
Posts: 6
Joined: Thu Dec 06, 2007 2:02 pm

Post by toddritt »

The 1.5 version of these templates works on my Temp/Humidity sensor for my APC 9320. Thank you very much for making these!
gundalba
Posts: 46
Joined: Mon Feb 23, 2009 12:15 pm

Post by gundalba »

Great thread and thanks everyone.

I am curious though if there is any good method to combine a Boolean value into graphical format such as good/bad, up/down, etc.
I am hoping to have simple color coded radio button(green/red?) or maybe a change in the graph background color from white to sth. else...

Hope this makes sense and I'm not beating the dead horse here,

Many thanks in advance and cheers,

BTW, not sure where exactly this was posted here but Google turned up a nice template on APC...
http://forums.cacti.net/download.php?id=14673

Note) You may need to change a Graph Template CF type to AVERAGE if graph don't come up and debug shows an error message saying;
"ERROR:the RRD does not contain an RRA matching the chosen CF"
luxor
Posts: 1
Joined: Mon Jan 19, 2009 4:22 am

Post by luxor »

DimmON wrote:Hello.

I`ve imported all of Symmetra`s templates through Cacti web interface. Some of them (internal_temperature and room_temperature) can not imported and show this error message "Error: XML parse error". :(

Where is my mistake?
Hello,
I have the same problem with the Cacti version 0.8.7d.
The Version from the Script is UPC-Symmetra-1.0.zip
What can I do?

Philipp
lanlananhanh
Posts: 1
Joined: Tue Jul 07, 2009 4:09 am

Post by lanlananhanh »

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests