Template Best practice for HP PDUs

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Jan Scholten
Posts: 9
Joined: Mon Oct 15, 2007 6:24 am

Template Best practice for HP PDUs

Post by Jan Scholten »

I am not really understanding the "regular" documentation, but Gandalfs Howto helps a bit, but i am not sure, whether this is the "best" or "most efficient" way.

So here is what i would like to do:
I am trying to monitor HP Power Distribution Units with Power Monitoring Model number is S2132.
It is a multiple socket outlet (?) with monitoring abilitys.

This PDU has a LAN interface and can be queried by snmp (and http aso. but this is irrelevant now)

It is internally divided into two PDU (for each "external 3 Phase 16A" connector) so behind each IP is a PDU A & a PDU B.

an SNMP Walk shows following interesting stuff (things i want to monitor):

Code: Select all

SNMPv2-SMI::enterprises.232.165.2.3.2.1.2.1.1 = Voltage Segment 1 PDU A 
SNMPv2-SMI::enterprises.232.165.2.3.2.1.2.1.2 = Voltage Segment 2 PDU A 
SNMPv2-SMI::enterprises.232.165.2.3.2.1.2.1.3 = Voltage Segment 3 PDU A 

SNMPv2-SMI::enterprises.232.165.2.3.2.1.3.1.1 = Current Segment 1 PDU A
SNMPv2-SMI::enterprises.232.165.2.3.2.1.3.1.2 = Current Segment 2	PDU A
SNMPv2-SMI::enterprises.232.165.2.3.2.1.3.1.3 = Current Segment 3	PDU A

SNMPv2-SMI::enterprises.232.165.2.3.2.1.4.1.1 = Load Segement 1 in % PDU A
SNMPv2-SMI::enterprises.232.165.2.3.2.1.4.1.2 = Load Segement 2 in % PDU A
SNMPv2-SMI::enterprises.232.165.2.3.2.1.4.1.3 = Load Segement 3 in % PDU A

SNMPv2-SMI::enterprises.232.165.2.3.2.1.2.2.1 = Voltage Segment 1 PDU B 
SNMPv2-SMI::enterprises.232.165.2.3.2.1.2.2.2 = Voltage Segment 2 PDU B 
SNMPv2-SMI::enterprises.232.165.2.3.2.1.2.2.3 = Voltage Segment 3 PDU B 

SNMPv2-SMI::enterprises.232.165.2.3.2.1.3.2.1 = Current Segment 1 PDU B 
SNMPv2-SMI::enterprises.232.165.2.3.2.1.3.2.2 = Current Segment 2	PDU B 
SNMPv2-SMI::enterprises.232.165.2.3.2.1.3.2.3 = Current Segment 3	PDU B 

SNMPv2-SMI::enterprises.232.165.2.3.2.1.4.2.1 = Load Segement 1 in % PDU B 
SNMPv2-SMI::enterprises.232.165.2.3.2.1.4.2.2 = Load Segement 2 in % PDU B 
SNMPv2-SMI::enterprises.232.165.2.3.2.1.4.2.3 = Load Segement 3 in % PDU B 

SNMPv2-SMI::enterprises.232.165.2.3.1.1.3.1 = Total Heat PDU A in BTU
SNMPv2-SMI::enterprises.232.165.2.3.1.1.4.1 = Total Power PDU A in Watt

SNMPv2-SMI::enterprises.232.165.2.3.1.1.3.2 = Total Heat PDU B in BTU
SNMPv2-SMI::enterprises.232.165.2.3.1.1.4.2 = Total Power PDU B in Watt
SNMPv2-SMI::enterprises. is 1.3.6.1.4.1. so the OIDS are
1.3.6.1.4.1.232.165.2.3.2.1.2.1.1
All values are integers btw.

Now I'd like to create templates so that for more PDUs i just have to enter an IP and *magic* all Graphs are created.. *g*

So i started with creating an "Get SNMP Data" Data Template for each and every line (see above).

After that i created Graph Templates for Voltage, Current, Load .. so each goes in one Graph, ... after that i created a host Template and added Voltage, Current and Load Graphs to it. BUT i don't now what i should choose at associated Data querys.. as i have none-- i guess i don't add any?

Which way would the experienced User try to accomplish my task?


Last question:
Would it be betterto use "Get SNMP Data (indexed)" If so what do i need to specify in the xml? Or is it not possible at all?
I thought it might be cleaner/faster (as it can query all data in on run?)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Template Best practice for HP PDUs

Post by BSOD2600 »

Jan Scholten wrote:Which way would the experienced User try to accomplish my task?
If the device gives you an index count, then you can use the 'Get SNMP Data (indexed)' method for acquiring data (like the snmp interface template & \resource\snmp_queries\interface.xml). If it doesn't then I'd use the PHP script server to query the OIDs and return their data (like the snmp partition template & \scripts\ss_host_disk.php)

I've got additional examples of both methods in my signature for the various scripts.
Jan Scholten
Posts: 9
Joined: Mon Oct 15, 2007 6:24 am

Post by Jan Scholten »

I am not really sure what an indexed count is, so i guess no it does not ;-)

I will have a look at your scripts though.. thanks.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

an index is a number which represents the count of something. For example, on Interfaces, there is a number (ifIndex), which represents each unique interface on a device. Go ahead and run the following on a snmp enabled device to see what I mean: snmpwalk -v 1 -c public 127.0.0.1 ifEntry.

That enables cacti to uniquely collect data from a specific interface and also investigate how many a device has (also because it uses the number returned from ifNumber). But I degrees. If your HP device doesn't give a unique index number for each umm PDU, then you have to hard-code the snmp queries to the specific OIDs which the device has.

The sloppy way would be to create a dozen data templates, each specifying a single OID. the better way is to create a script utilizing the PHP script server, which queries all of those OIDs at once.
Jan Scholten
Posts: 9
Joined: Mon Oct 15, 2007 6:24 am

Post by Jan Scholten »

I did it the first way (creating lots of Data Templates) as this was the easiest way, and the presentation is on Friday.. will have a look for the script server thingy later, 12 PDUs give my about 200 rra..
I am a interested if cacti will work when i start monitoring 200+ Cisco Routers..
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Jan Scholten wrote:I am a interested if cacti will work when i start monitoring 200+ Cisco Routers..
Yup, no problem.

Check out the announcement forum for metrics of others giant cacti installations.
mango
Posts: 7
Joined: Fri Jun 05, 2009 6:03 pm

Did you ever get template created?

Post by mango »

I am working on template for this now. Did you ever complete it?
mango
Posts: 7
Joined: Fri Jun 05, 2009 6:03 pm

Amps Template for HP 3 segment PDU

Post by mango »

Amps Template for HP 3 segment PDU
Attachments
cacti_graph_template_hp_pdu_amps_3_segment_graph_template.xml
(27.09 KiB) Downloaded 188 times
Last edited by mango on Fri Jul 10, 2009 5:51 pm, edited 2 times in total.
mango
Posts: 7
Joined: Fri Jun 05, 2009 6:03 pm

Volts Template for HP 3 segment PDU

Post by mango »

Volts Template for HP 3 segment PDU
Last edited by mango on Fri Jul 10, 2009 5:57 pm, edited 1 time in total.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Your templates are very welcome.
Would you mind publishing them at the 4th link of my sig? This is the official Cacti Template repository and we'd love to see your results there
Reinhard
mango
Posts: 7
Joined: Fri Jun 05, 2009 6:03 pm

Need a MIB for HP PDU's

Post by mango »

Having trouble getting a MIB for HP PDU's. Endless hassle from HP rep getting one. If anyone has one, please post, and I can get a lot further with this project.

Yes I will for sure post them to the official template page.

Mango
mango
Posts: 7
Joined: Fri Jun 05, 2009 6:03 pm

HP 6 Segment PDU Template AMPS (most AC Blade enclosures)

Post by mango »

HP 6 Segment PDU Template AMPS (most AC Blade enclosures)
Attachments
cacti_graph_template_hp_pdu_amps_6_segment_graph_template.xml
(44.35 KiB) Downloaded 266 times
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests