Host template for Compaq (HP) Insight Manager.
Moderators: Developers, Moderators
-
- Posts: 1
- Joined: Mon May 02, 2005 4:36 pm
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?
Any ideas?
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).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....
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
*
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.dskadra wrote: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).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....
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:
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.Code: Select all
CURRENT_DATA_SOURCE 1024 / 1000000000 *
Then apply this new CDEF to each of the graph template items in the Compaq - Diskspace graph template.
- Attachments
-
- cacti_host_template_compaq_general.xml
- (209.73 KiB) Downloaded 2064 times
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?).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?
Seems to make the temp graphs work for me.
- Diggit2001
- Cacti User
- Posts: 195
- Joined: Tue May 03, 2005 4:29 pm
- Location: MD, US
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
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 1027 times
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
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
- Attachments
-
- Screenshot of the CDEF part
- cdef.PNG (11 KiB) Viewed 18100 times
- Diggit2001
- Cacti User
- Posts: 195
- Joined: Tue May 03, 2005 4:29 pm
- Location: MD, US
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.
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.
Trouble importing... (newbie)
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
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
-
- Posts: 34
- Joined: Wed Sep 14, 2005 9:25 am
- Location: Omaha, NE
Re: k instead of G
++ would be interested in this as wellscavenger67 wrote:the hard disk graph is returning "k" for y axis instead of "g" as giga. how can i change that ?
thanks
-
- Posts: 34
- Joined: Wed Sep 14, 2005 9:25 am
- Location: Omaha, NE
Who is online
Users browsing this forum: No registered users and 0 guests