Hi there.
I want to graph a certain value I receive when I run a shell script specifically runnning on the same server cacti is running. The shell script retrieves a certain format from another service and outputs the format like this:
12/09/2007 11:39
114086
Connection closed by foreign host.
How can I make sure cacti runs the script, parses that data and displays it on an xy graph where x=the numbr above and y = date.
Thanks,
Mario
a very custom situation
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
As long as that date is always the current time, then all you really need is value. Check out Script Queries in the Cacti manual.
You will need to write a small script to read that output and reformat it slightly - even an awk one-liner would do that job though.
You will need to write a small script to read that output and reformat it slightly - even an awk one-liner would do that job though.
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!)
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: a very custom situation
Currently it is not possible to define an update timestamp along with the data. There's already a feature request for this. You may add your vote.smario123 wrote:How can I make sure cacti runs the script, parses that data and displays it on an xy graph where x=the numbr above and y = date.
If the timestamp is quite current, Howie's statement holds, for sure
Reinhard
Who is online
Users browsing this forum: No registered users and 5 guests