Host template for Compaq (HP) Insight Manager.

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

Moderators: Developers, Moderators

boots
Cacti User
Posts: 55
Joined: Wed Jan 07, 2004 4:59 am
Location: Melbourne Australia

Post by boots »

I also get the K instead of G as the unti of scale for disk space.

Also the CPU stats dont work for a single CPU. This is also the same for using the same OID from the insite mibs on the same host so its an insite manager issue not cacti....
pyronicide
Posts: 1
Joined: Mon May 02, 2005 4:36 pm

Post by pyronicide »

I'm having a little problem with this as well. Other than the aforementioned problems, for some reason I can't seem to get any temperature data to show up after getting rid of the leading '0's for the OIDs. Walking the OIDs seems to work just fine and doing a verbose query from the device screen also seems to produce output but when I create the graph, everything shows up as 'nan' and nothing is graphed.

Any ideas?
dskadra
Posts: 1
Joined: Thu May 05, 2005 9:40 pm
Location: Albuquerque, NM

Post by dskadra »

boots wrote:I also get the K instead of G as the unti of scale for disk space.

Also the CPU stats dont work for a single CPU. This is also the same for using the same OID from the insite mibs on the same host so its an insite manager issue not cacti....
This is because the Insight Agent reports it's disk space value in megabytes instead of bytes. The k that you see in the graph is from rrdtool. Sort of like scientific notation. For Example, it takes the number 80000 and converts it to 80k or (80 * 1000).

To fix it so the graph numbers make sense to someone that dosen't know what rrdtool is doing in the background, create a new CDEF that does the following commands:

Code: Select all

CURRENT_DATA_SOURCE
1024
/
1000000000
*
That converts MB to GB and the adds 9 zeros on to the end so that rrdtool uses the G symbol to save space instead of printing a really large number.

Then apply this new CDEF to each of the graph template items in the Compaq - Diskspace graph template.
mgb
Cacti User
Posts: 124
Joined: Mon Jun 21, 2004 4:06 am
Location: North of the Netherlands

Post by mgb »

dskadra wrote:
boots wrote:I also get the K instead of G as the unti of scale for disk space.

Also the CPU stats dont work for a single CPU. This is also the same for using the same OID from the insite mibs on the same host so its an insite manager issue not cacti....
This is because the Insight Agent reports it's disk space value in megabytes instead of bytes. The k that you see in the graph is from rrdtool. Sort of like scientific notation. For Example, it takes the number 80000 and converts it to 80k or (80 * 1000).

To fix it so the graph numbers make sense to someone that dosen't know what rrdtool is doing in the background, create a new CDEF that does the following commands:

Code: Select all

CURRENT_DATA_SOURCE
1024
/
1000000000
*
That converts MB to GB and the adds 9 zeros on to the end so that rrdtool uses the G symbol to save space instead of printing a really large number.

Then apply this new CDEF to each of the graph template items in the Compaq - Diskspace graph template.
Added the new host file with the changes from dskadra. Thanx. Just to make it easier for other users of the xml file.
Attachments
cacti_host_template_compaq_general.xml
(209.73 KiB) Downloaded 2083 times
rayvd
Posts: 6
Joined: Mon Apr 18, 2005 6:22 pm
Location: Chico, CA

Post by rayvd »

pyronicide wrote:I'm having a little problem with this as well. Other than the aforementioned problems, for some reason I can't seem to get any temperature data to show up after getting rid of the leading '0's for the OIDs. Walking the OIDs seems to work just fine and doing a verbose query from the device screen also seems to produce output but when I create the graph, everything shows up as 'nan' and nothing is graphed.

Any ideas?
Actually, removing the leading 0's doesn't quite do the trick. That last leading zero refers to the 'chassis' we are dealing with. 0 is invalid, but we do need some value there. I'm not sure which scenario would exist where you'd have multiple chassis, but setting this to 1 chooses the "first one" (only one?).

Seems to make the temp graphs work for me.
User avatar
Diggit2001
Cacti User
Posts: 195
Joined: Tue May 03, 2005 4:29 pm
Location: MD, US

Post by Diggit2001 »

OK, I have a dumb question. How do I change Celsius to Fahrenheit on the temp sensors graph?

Thanks
mgb
Cacti User
Posts: 124
Joined: Mon Jun 21, 2004 4:06 am
Location: North of the Netherlands

Post by mgb »

To convert Celsius to Fahrenheit you have to use a cdef function with this formula

Tf=(9/5)*Tc+32
Tc=temperature in degrees Celsius
Tf=temperature in degrees Fahrenheit

I have changed the graph template to display fahrenheit in stead of celsius

Michael
Attachments
cacti_graph_template_compaq_temperature_fahrenheit.xml
If you want to use the template permanent. You should change the compaq host template to use this graph template in stead of the old one
(13.84 KiB) Downloaded 1049 times
mgb
Cacti User
Posts: 124
Joined: Mon Jun 21, 2004 4:06 am
Location: North of the Netherlands

Post by mgb »

Might be that my template is corrupt. There seems to be an issue with import and export when the threshold module has been installed.

When I've fixed this issue i will post a new version.

For now, Just create a new CDEF. I called mine C2F.

Insert the following lines

Item #1 Custom String: 1.8
Item #2 Special Data Source: CURRENT_DATA_SOURCE
Item #3 Operator: *
Item #4 Custom String: 32
Item #5 Operator: +

Open the graph template Compaq - Temperature

Click on each Graph Item and under "CDEF Function" and replace None with C2F (or whatever you called the cdef function).

Change the Vertical Label from Deg C to Fahrenheit.

Done


Michael

:wink:
Attachments
Screenshot of the CDEF part
Screenshot of the CDEF part
cdef.PNG (11 KiB) Viewed 18221 times
User avatar
Diggit2001
Cacti User
Posts: 195
Joined: Tue May 03, 2005 4:29 pm
Location: MD, US

Post by Diggit2001 »

Wow. Worked lilke a champ. Thanks very much for your quick and extremely helpful reply. It's much appreciated!
David07
Posts: 1
Joined: Thu May 26, 2005 3:33 am

Post by David07 »

I got a problem with cpqHeTemperatureHwLocation (.1.3.6.1.4.1.232.6.2.6.8.1.8.0), this OID does not exist in the mib (checked with snmpwalk)
So I cannot see the label of the manitored temp. I have tried to browse the complete mib but no way to retrieve the label.
Can I hard code the label somewhere ?
Thanks.
cleaner
Posts: 36
Joined: Mon Feb 28, 2005 10:12 am

Post by cleaner »

anyone know where the sensors are located on the server?
limaunion
Posts: 20
Joined: Tue Jul 05, 2005 10:44 am

Trouble importing... (newbie)

Post by limaunion »

Hi, I'm not being able to import these templates, I go to 'import templates' > browse > then choose the template but nothing will happen, what may be wrong?

I've already imported other templates without trouble, and I've also tried pasting the templates under the snmp_scripts folder but still don't see them.

Thanks in advance for a response.
Jorge.

OS: Linux 2.6.10
Cacti: 0.8.6e
Utildayael
Posts: 34
Joined: Wed Sep 14, 2005 9:25 am
Location: Omaha, NE

Re: k instead of G

Post by Utildayael »

scavenger67 wrote:the hard disk graph is returning "k" for y axis instead of "g" as giga. how can i change that ?

thanks
++ would be interested in this as well
User avatar
sumsum
Cacti User
Posts: 68
Joined: Mon Apr 26, 2004 7:18 am
Location: Switzerland
Contact:

Post by sumsum »

anyone tested this on a HP proliant DL380 G4 server ?

thanx
tom
http://www.lounge-radio.com/
Utildayael
Posts: 34
Joined: Wed Sep 14, 2005 9:25 am
Location: Omaha, NE

Post by Utildayael »

sumsum wrote:anyone tested this on a HP proliant DL380 G4 server ?
Works on a ML370 G4 so I would imagine yes. :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest