APC UPii Monitoring via Windows from *nix Cacti
Moderators: Developers, Moderators
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
APC UPii Monitoring via Windows from *nix Cacti
I've been following a couple of the APC Monitor threads for a bit now. It appears, at least to me, that to monitor APC UPii you either need to buy the 9606 card or use the APCUPSD for *nix. I happened to be doing an SNMP walk against one of my boxes today after I installed the PowerChute Agent from APC. At the bottom of the list was all the information for the UPS. Granted, it isn't everything that you'd get from the 9606 card, but it's enough to get a decent graph.
All you need is the APC PowerChute Business Edition software, which is freely downloaded from their site. You do need to register to download it though. You'll need at least one machine with the APC server installed and all the other machines as a Agent to the server. Once all the machines are configured properly, you should be able to poll them via SNMP.
Attached is an example graph and the Custom CDEF to calculate correct run times in minutes. If you have any problems, or at least if you find this useful, let me know.
All you need is the APC PowerChute Business Edition software, which is freely downloaded from their site. You do need to register to download it though. You'll need at least one machine with the APC server installed and all the other machines as a Agent to the server. Once all the machines are configured properly, you should be able to poll them via SNMP.
Attached is an example graph and the Custom CDEF to calculate correct run times in minutes. If you have any problems, or at least if you find this useful, let me know.
- Attachments
-
- cacti_graph_template_apc_stats.xml
- (35.79 KiB) Downloaded 4566 times
-
- APC-Graph.gif (21.65 KiB) Viewed 51873 times
-
- CDEF-APCRuntime.gif (5.45 KiB) Viewed 54567 times
Last edited by streaker69 on Tue May 01, 2007 3:28 pm, edited 2 times in total.
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
C to F
The default output of the APC Agent is for Battery Temp apparently in C, for those of us that are not used to reading C, here's a CDEF that will translate it into F.
If ya use this, make sure you change the Graph label from C to F.
If ya use this, make sure you change the Graph label from C to F.
- Attachments
-
- CDEF-CtoF.gif (6.1 KiB) Viewed 54596 times
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
-
- Cacti User
- Posts: 379
- Joined: Fri Feb 16, 2007 11:37 am
- Location: Emeryville, CA
- Contact:
Streaker, Is this a template that i should import, or should i put it in the scripts folder? I tried to import it and i got an XML Hash error. I am running two APC units, and I would love to be able to track this information.
thanks
app
thanks
app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
Chances are that model is using different OID's than the models that I'm using.ABX wrote:I have tried this template against a UPS APC Smart 5000, but the only thing I get is the Battery Temp.
Do an SNMP walk of your device and see which ones it's using and then modify your copy of the template with the correct ones.
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
Ok, that's really strange then because I don't have a leading period in any of mine and they're working fine. I wonder if this is a Cacti issue or an SNMP issue with the different APC devices.ABX wrote:Most of the OID's were ok, but they were missing the initial dot.
Old:
1.3.6.1.4.1.318.1.1.1.2.2.1.0
Correct:
.1.3.6.1.4.1.318.1.1.1.2.2.1.0
Anyway thanks for the tip and the graphs are coming out nicely.
Here is the fixed version for APC 5000 Smart UPS, this is the first time I upload something so be warned.
- Attachments
-
- cacti_graph_template_apc_stats.xml
- Fixed version for Cacti 0.8.7
- (48 KiB) Downloaded 3043 times
-
- cacti_graph_template_apc_stats.jpg (47.35 KiB) Viewed 50627 times
Last edited by ABX on Wed Nov 28, 2007 7:44 am, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 1 guest