a very custom situation

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
smario123
Posts: 1
Joined: Wed Sep 12, 2007 7:26 am
Location: Nicosia

a very custom situation

Post by smario123 »

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
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

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.
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!)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: a very custom situation

Post by gandalf »

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.
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.
If the timestamp is quite current, Howie's statement holds, for sure
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests