Templates for HP Servers

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

Moderators: Moderators, Developers

Author
Message
Cova
Posts: 15
Joined: Mon Nov 27, 2006 1:47 pm

Templates for HP Servers

#1 Post by Cova » Fri Mar 23, 2007 3:30 pm

As I said a while back over in the other HP-related thread - I've been working on a set of templates based on the SNMP information made available by HP's Insight Agents. Some of these OIDs are available on any system with the HP agents installed, some of them are specific to the windows agent. There is a OID tree specific to linux agents as well, however they don't really provide much on an ESX host and I don't have physical HP linux boxes to develop templates against. OIDs that should be available on any OS with the agents installed I've labeled as "generic OIDs".

In the attached zip is a single export of my templates from Cacti 0.8.6j - hopefully it detected all the dependancies correctly and isn't missing anything and also doesn't include too much extra. There are also 6 data queries (the 6 small files) that need to be installed into your <cacti_path>/resource/snmp_queries/ directory.

These templates currently allow for monitoring:
CPU Utilization (User/System time - uses Windows agent OIDs)
Memory Faults (soft/hard faults per second - uses Windows agent OIDs)
NIC Utilization (Bytes/Packets sent/received, queue, errors - uses Windows agent OIDs)
Disk Utilization (Bytes/IOs read/write per second, queue length - uses Windows agent OIDs)
Temperature sensors (current temp + threshold - uses generic agent OIDs)
SmartArray Controller utilization (commands / sec, raid CPU utilization, command latency - uses generic agent OIDs)
SmartArray Logical Drive utilization (read/write IOs per second, cache hits/misses/depth, read/read-ahead/write sectors per second - uses generic agent OIDs)

Update:
There might be some un-documented fixes scattered around. I re-exported it to get the new graphs below included. You're also likely getting my 5-year RRA - since all RRA's are selected by default you'll have to go through and delete that one if you don't want to keep data for that long.

SmartArray Physical Disk info (read/write sectors per second, some static drive info (serial no, firmware, etc.) - uses generic agent OIDs)
Attachments
HP-Windows-Server.zip
(22.76 KiB) Downloaded 9222 times
Last edited by Cova on Tue Jun 26, 2007 6:21 pm, edited 2 times in total.

YoMarK
Cacti User
Posts: 78
Joined: Fri Feb 02, 2007 8:36 am
Location: Eindhoven/The Netherlands

#2 Post by YoMarK » Mon Mar 26, 2007 4:55 am

Thank you!
Implementing them right now one some Vmware ESX servers, and they seems to be working great(the non-windows parts).

jkstraw
Posts: 34
Joined: Tue Aug 01, 2006 10:24 am
Contact:

#3 Post by jkstraw » Tue Mar 27, 2007 1:08 pm

Great work - thank you for posting these!

apperrault
Cacti User
Posts: 372
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

#4 Post by apperrault » Wed Apr 25, 2007 3:17 pm

Thanks for these great templates. I am having a problem on a couple of my machines. Some of the data just does not show up on them. At first, i thought it was because the systems are DL360 G5s, and things may have changed from the G4 to the G5, but that doesnt appear to be the problem. On one system, the LogicalDrive IOs doesn't show a graph, but on another one, that graph shows up great, but the ArrayController doesn't seem to work. In the log file for these it says:

Code: Select all

 04/25/2007 01:11:00 PM - CMDPHP: Poller[0] Host[148] DS[1489] WARNING: Result from SNMP not valid. Partial Result:
04/25/2007 01:11:00 PM - CMDPHP: Poller[0] Host[148] DS[1489] WARNING: Result from SNMP not valid. Partial Result:
04/25/2007 01:10:54 PM - CMDPHP: Poller[0] Host[238] DS[3259] WARNING: Result from SNMP not valid. Partial Result:
04/25/2007 01:10:52 PM - CMDPHP: Poller[0] Host[238] DS[3259] WARNING: Result from SNMP not valid. Partial Result:
04/25/2007 01:10:52 PM - CMDPHP: Poller[0] Host[238] DS[3259] WARNING: Result from SNMP not valid. Partial Result:
04/25/2007 01:10:52 PM - CMDPHP: Poller[0] Host[238] DS[3259] WARNING: Result from SNMP not valid. Partial Result:
04/25/2007 01:10:52 PM - CMDPHP: Poller[0] Host[238] DS[3259] WARNING: Result from SNMP not valid. Partial Result:
04/25/2007 01:10:52 PM - CMDPHP: Poller[0] Host[238] DS[3259] WARNING: Result from SNMP not valid. Partial Result:
04/25/2007 01:10:52 PM - CMDPHP: Poller[0] Host[238] DS[3258] WARNING: Result from SNMP not valid. Partial Result:
04/25/2007 01:10:52 PM - CMDPHP: Poller[0] Host[238] DS[3258] WARNING: Result from SNMP not valid. Partial Result:
04/25/2007 01:10:52 PM - CMDPHP: Poller[0] Host[238] DS[3258] WARNING: Result from SNMP not valid. Partial Result:
04/25/2007 01:10:30 PM - CMDPHP: Poller[0] Host[221] DS[2761] WARNING: Result from SNMP not valid. Partial Result:
04/25/2007 01:10:30 PM - CMDPHP: Poller[0] Host[221] DS[2761] WARNING: Result from SNMP not valid. Partial Result:
04/25/2007 01:10:30 PM - CMDPHP: Poller[0] Host[221] DS[2761] WARNING: Result from SNMP not valid. Partial Result:
Here is the graph debug from one of them:

Code: Select all

Data Source Debug

E:/rrdtool/rrdtool.exe create \
E:/cacti/rra/emymas_cpupercent_2761.rrd \
--step 300  \
DS:CPUPercent:GAUGE:600:0:U \
DS:CmdCount:GAUGE:600:0:U \
DS:AvgLatency:GAUGE:600:0:U \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:AVERAGE:0.5:864:732 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MIN:0.5:864:732 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:MAX:0.5:864:732 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \
RRA:LAST:0.5:864:732 \
Any assistance would be GREATLY appreciated.

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]

Cova
Posts: 15
Joined: Mon Nov 27, 2006 1:47 pm

#5 Post by Cova » Mon Apr 30, 2007 4:06 pm

I'm afraid I often have the same problem with some hosts. It seems to be a bug in the HP SNMP agents - rebooting the host usually fixes it. Unfortunately having cacti problems isn't enough justification to reboot production servers here so I usually have to wait till the next microsoft patch cycle.

If you run an snmpwalk against the servers showing that problem you will notice that they don't return any data at all. I've got a windows 2000 / SQL 2000 server here right now that the entire .1.3.6.1.4.1.232.19 tree is missing - though it was there a couple weeks ago. Neither restarting the SNMP service or the HP Insight Agents resolves the problem.

RHarmer
Posts: 1
Joined: Thu May 24, 2007 5:55 pm

Can you post pictures?

#6 Post by RHarmer » Thu May 24, 2007 5:57 pm

I'm very curious what the temperature graph looks like. Can someone post some pictures of some temperature data?

I don't have Cacti currently running (I will shortly), but I'd love to see what it can do against HP temperature information.

Thanks!

Rich

kohalik_kalamees
Posts: 2
Joined: Wed May 23, 2007 7:26 am

#7 Post by kohalik_kalamees » Fri May 25, 2007 2:04 am

Good morning fellow mates!
Has anybody made some templates for Disk Array Physical Drives too?
if so, then i would appreciate that a lot.

Cheers.

User avatar
ajohnson
Posts: 36
Joined: Tue Dec 27, 2005 5:36 pm

#8 Post by ajohnson » Fri Jun 15, 2007 5:39 pm

Note: I had to increase the width of the graph templates to be 525. It was cutting of the "m" in the maximum fields.

Looking at the graphs this morning and I'm seeing 94.68 for maximum command latency and I'm thinking HOLY SH!T! It's taking over a minute and a half to complete SCSI commands!!!

:oops:

Cova
Posts: 15
Joined: Mon Nov 27, 2006 1:47 pm

#9 Post by Cova » Tue Jun 26, 2007 6:15 pm

Ok - did some more work on these. I'll update the original post in a moment with a new version of the attachment. Here's some screens of graphs - this is NOT a complete set of all the graphs included in the host template.

Yes - it now does disk array physical drives too. Anything else you'd like graphed from the HP Insight Agent MIBs, post in this thread and I'll see if it can be done.
Attachments
TempGraph.PNG
TempGraph.PNG (15.98 KiB) Viewed 57356 times
CPUGraph.PNG
CPUGraph.PNG (29.93 KiB) Viewed 57356 times
ArrayController.PNG
ArrayController.PNG (68.73 KiB) Viewed 57357 times
DiskGraph.PNG
DiskGraph.PNG (19.26 KiB) Viewed 57356 times

apperrault
Cacti User
Posts: 372
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

#10 Post by apperrault » Wed Jun 27, 2007 11:07 am

These templates ROCK!!!!! I mean they were great before, but the fact that we can now see down to the individual disk level, that is very cool. Now i need to add this to all of my systems. I will look through everything else that HPInsight collects, and let you know if i see anything else useful.

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]

User avatar
cyrill
Cacti User
Posts: 271
Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA

#11 Post by cyrill » Fri Feb 01, 2008 10:03 am

hello !

I've get the seven small file in <cacti-path>/ressource/snmp_queries and after this, I've imported the big file into cacti.

I've created new host and associed the host template. All Associated data Querie are the status "Success" but each of them are 0 items and 0 rows ...

why ?

User avatar
fmangeant
Cacti Guru User
Posts: 2326
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

#12 Post by fmangeant » Fri Feb 01, 2008 10:06 am

Hi

can you run the data queries in verbose mode ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]

User avatar
cyrill
Cacti User
Posts: 271
Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA

#13 Post by cyrill » Mon Feb 04, 2008 1:41 am

Hello !

Yes I can run all data query in verbose mode ! But For each query No SNMP data returned...

Code: Select all

Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/hpWinOSMgmt-CPU.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.232.19.2.3.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/hpWinOSMgmt-CPU.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/hpWinOSMgmt-CPU.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/hpWinOSMgmt-CPU.xml'
And my server is a HP Prolian DL380 G5.

thanks for your help

User avatar
BSOD2600
Cacti Moderator
Posts: 12160
Joined: Sat May 08, 2004 12:44 pm
Location: USA

#14 Post by BSOD2600 » Mon Feb 04, 2008 2:10 am

Post a snmpwalk of .1.3.6.1.4.1.232.19.2.3.2.1

User avatar
cyrill
Cacti User
Posts: 271
Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA

#15 Post by cyrill » Mon Feb 04, 2008 2:23 am

Code: Select all

chmscacti:/var/www/cacti# snmpwalk -c public -v1 172.25.16.23 .1.3.6.1.4.1.232.19.2.3.2.1
End of MIB
hum ! Why ?? lol

Post Reply