Hi guys,
i'm trying to make a tempager plugin to poll my device and make graph from it!
For the moment, everything is running smooth, but i have a kinda big problem!
TemPager return data in a four digit number (ie.: 2010) which means 20.10Celcius!
Is there a way i can create a CDEF that will take my number transform it to a float of 4 number and 2 numbers after the dot?
I know it's feasible in PHP or other language, but i can't find any documentatio on CDEF so i'm asking here!
thanks a lot!
[SOLVE] TemPager plugin
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 53
- Joined: Mon Nov 29, 2004 11:43 am
[SOLVE] TemPager plugin
Last edited by bloodrayne on Mon Aug 13, 2007 1:42 pm, edited 1 time in total.
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Isn't that just dividing by 100?
Code: Select all
variable,100,/
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
-
- Cacti User
- Posts: 53
- Joined: Mon Nov 29, 2004 11:43 am
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Math owned you....
[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]
-
- Cacti User
- Posts: 53
- Joined: Mon Nov 29, 2004 11:43 am
http://www.itsg33k.ca/2007/08/14/plugin ... -tempager/
If anybody is interested by this plugin ... i put a little how-to on my blog!
The plugin is tested on my platform and there's no way i can test it on other platform...
If you have any question please use this forum or the one linked into my blog!
thanks
I just realized it, but my blog is in FRENCH ... so if you can't read french ... ehhh .. try to translate it! or i'll maybe translate it one day!
If anybody is interested by this plugin ... i put a little how-to on my blog!
The plugin is tested on my platform and there's no way i can test it on other platform...
If you have any question please use this forum or the one linked into my blog!
thanks
I just realized it, but my blog is in FRENCH ... so if you can't read french ... ehhh .. try to translate it! or i'll maybe translate it one day!
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Lookup Fmangent on the member list and have him comment. Sort by number of posts. He is near the top.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 4 guests