Newbie: Graph Data from a script

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

Moderators: Developers, Moderators

Post Reply
dan.tappin
Posts: 6
Joined: Thu Mar 17, 2005 1:18 pm

Newbie: Graph Data from a script

Post by dan.tappin »

I am an existing MRTG user looking to upgrade to RRDTool. I have Cacti installed and up and running with the basic graphs (cpu, disk, ip traffic etc).

I have a bunch of MRTG plots of other data (SMB users, uptime) and some more data I would like to track via some custom scripts. With MRTG is was pretty easy - output 2 data values to mrtg and plot away!

I was wondering if someone could point me to a FAQ or an example of such a set-up? I have looked at the docs and am a bit overwhelmed. If I can just get some data plotted I will dig into the more advanced stuff later.

For example. The Xserve does not have a public SNMP MIB for the wealth of stats that the unit reports. I can manual parse the CLI server admin and get for example all the temperatures valves and the max values. I would like to have one plot that has all the temps and the upper limits.

Any tips / pointers would be appreciated.

Thanks,

Dan T
metos
Posts: 16
Joined: Fri Mar 11, 2005 9:46 am

want to do this with a script ?

Post by metos »

You'd like to graph your values with a script ?

If it is that, i've made a little tutorial :
a script with:
input: hostname
output: 2 values returned by the script

http://www.nuxora.com/linux.php?n=cacti_dim

Metos
Last edited by metos on Thu Jan 26, 2006 6:05 pm, edited 1 time in total.
dan.tappin
Posts: 6
Joined: Thu Mar 17, 2005 1:18 pm

Newbie: Graph Data from a script

Post by dan.tappin »

Ahh... I see now. I was a bit fuzzy on how I got the data into a rrd file but see that cacti will take care of that for you.

So all I would need is a script that spits out:

temp_1:57
temp_2:59
temp_4:55

and I then feed that into cacti.

Thanks for the tip.

Dan T
metos
Posts: 16
Joined: Fri Mar 11, 2005 9:46 am

another thing

Post by metos »

the result is quite correct, but it is not completly what i want to do. Now i have this:

my script output is:
nb_connect:10 nb_connect_total:20

--------------

but i'd like to create automatically with one graph template various graph
my script output would be:
what:telnet nb_connect:10 nb_connect_total:20
what:oracle nb_connect:30 nb_connect_total:90
what:http nb_connect:2 nb_connect_total:12

and have these 3 graphs with those values, i'm still looking for that.


Metos
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests