Hi all,
Is it possible to make a division on a SNMP OID Graphic result???
Im trying to get the temperature of a switch, but the OID of this variable only gives to me the value multiplied per 10 (x10). But i want to plot the value in the graph with the correct and reasoning that i want.
Thanks for any help,
Andre.
How i can make a DIVISION on a SNMP OID result????
Moderators: Developers, Moderators
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Use a CDEF.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Well, not to repeat myself, but read the documentation, it covers CDEFs and RPN. If you have questions after that, I will help you out more. Only because I have to remember how to do it as well.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
I got it. I made a duplicate of the standard template for SNMP OID Graphic, and a add the CDEF function that i created for division per 10 in the configuration of this newer template that i had created. Finallly, i changed the template of the temperature graph from SNMP OID template to my new created graph template. I only have to per attention at the syntax creation of a CEDF, so i took the CDEF of multiplly per 1024 as an example.
Thanks,
Andre.
Thanks,
Andre.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Re: How i can make a DIVISION on a SNMP OID result????
This solution does not resolve wrong displayed data in legend graphs. Maybe is better solution for this purpose (eg based on data sources tepmplate modifications) ?
- Attachments
-
- graph_template.png (93.05 KiB) Viewed 1011 times
-
- cacti_graph_1555.png (13.4 KiB) Viewed 1011 times
Re: How i can make a DIVISION on a SNMP OID result????
Please don't dredge up a 9 year old thread, as everyone involved gets emailed on the subject when its already dead and gone.
And BTW, you can apply CDEFs to data at the bottom too.
Locking this thread.
And BTW, you can apply CDEFs to data at the bottom too.
Locking this thread.
Who is online
Users browsing this forum: No registered users and 4 guests