Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


APC UPii Monitoring via Windows from *nix Cacti
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Wed Sep 20, 2006 9:32 pm    Post subject: APC UPii Monitoring via Windows from *nix Cacti Reply with quote

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.



APC-Graph.gif
 Description:
 Filesize:  21.65 KB
 Viewed:  11079 Time(s)

APC-Graph.gif



CDEF-APCRuntime.gif
 Description:
 Filesize:  5.45 KB
 Viewed:  13773 Time(s)

CDEF-APCRuntime.gif



cacti_graph_template_apc_stats.xml
 Description:

Download
 Filename:  cacti_graph_template_apc_stats.xml
 Filesize:  35.79 KB
 Downloaded:  1142 Time(s)



Last edited by streaker69 on Tue May 01, 2007 3:28 pm; edited 2 times in total
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Sun Oct 01, 2006 4:50 pm    Post subject: C to F Reply with quote

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.



CDEF-CtoF.gif
 Description:
 Filesize:  6.1 KB
 Viewed:  13802 Time(s)

CDEF-CtoF.gif


Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Thu Apr 05, 2007 8:01 pm    Post subject: Reply with quote

Just a little update to this. I just got a APC's NetSNMP card installed today and found that this template will work directly with it.
Back to top
apperrault
Cacti User


Joined: 16 Feb 2007
Posts: 351
Location: Emeryville, CA

PostPosted: Fri Apr 06, 2007 10:08 am    Post subject: Reply with quote

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
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Fri Apr 06, 2007 8:12 pm    Post subject: Reply with quote

It's an XML that you import.
Back to top
wjm



Joined: 13 Oct 2006
Posts: 10

PostPosted: Fri Apr 13, 2007 7:54 am    Post subject: Reply with quote

Great Template
I think the CDEF loads with a '6' instead of '6000' as a divisor
Also, the input voltage has '150' if you put 0, it will be OK for 220v systems
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Tue May 01, 2007 3:29 pm    Post subject: Reply with quote

I've uploaded a new version of the XML. This one now includes a GPRINT for Battery Replacement Indicator. With this, you can set a threshold that when the indicator goes above 1, to email you that the battery needs replaced.
Back to top
ABX
Cacti User


Joined: 01 Mar 2007
Posts: 61

PostPosted: Thu Jul 05, 2007 9:30 am    Post subject: Reply with quote

I have tried this template against a UPS APC Smart 5000, but the only thing I get is the Battery Temp.
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Thu Jul 05, 2007 9:41 am    Post subject: Reply with quote

ABX wrote:
I have tried this template against a UPS APC Smart 5000, but the only thing I get is the Battery Temp.


Chances are that model is using different OID's than the models that I'm using.

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.
Back to top
ABX
Cacti User


Joined: 01 Mar 2007
Posts: 61

PostPosted: Fri Jul 06, 2007 1:39 am    Post subject: Reply with quote

I'll try that, thanks.
Back to top
ABX
Cacti User


Joined: 01 Mar 2007
Posts: 61

PostPosted: Fri Jul 06, 2007 8:22 am    Post subject: Reply with quote

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.
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Fri Jul 06, 2007 11:17 am    Post subject: Reply with quote

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.


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.
Back to top
ABX
Cacti User


Joined: 01 Mar 2007
Posts: 61

PostPosted: Mon Jul 09, 2007 1:38 am    Post subject: Reply with quote

No idea, for the record I'm running Cacti on Windows 2003 Server.
Back to top
ABX
Cacti User


Joined: 01 Mar 2007
Posts: 61

PostPosted: Mon Jul 09, 2007 2:36 am    Post subject: Reply with quote

Here is the fixed version for APC 5000 Smart UPS, this is the first time I upload something so be warned.


cacti_graph_template_apc_stats.jpg
 Description:
 Filesize:  47.35 KB
 Viewed:  9830 Time(s)

cacti_graph_template_apc_stats.jpg



cacti_graph_template_apc_stats.xml
 Description:
Fixed version for Cacti 0.8.7

Download
 Filename:  cacti_graph_template_apc_stats.xml
 Filesize:  48 KB
 Downloaded:  495 Time(s)



Last edited by ABX on Wed Nov 28, 2007 7:44 am; edited 1 time in total
Back to top
zkenton



Joined: 29 Jun 2007
Posts: 47

PostPosted: Mon Jul 09, 2007 3:06 pm    Post subject: Reply with quote

sorry but I'm very new to cacti...i went to import templates page and tried importing this APC template you've developed and when i save it and import it says Hash version does not exist...do I have to edit this file somehow
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group