[OT] rrdtool examples

Dick Davies rasputnik at hellooperator.net
Tue Dec 21 04:01:25 PST 2004


* Jorn Argelo <jorn at wcborstel.nl> [1218 11:18]:
> Hi all,
> 
> I've been playing around with rrdtool for quite a while, but I still don't 
> really get it. I've been trying to find some example scripts for rrdtool, but 
> I really can't find much of them. I have found Erik de Mare's perl scripts 
> already. However, the author does not reply to his mail, and only a few of 
> his scripts work. Unfortunately I don't have any perl knowledge, so I cannot 
> fix them myself.
> 
> So my question is, do you guys know where I can find some other RRDtool 
> example scripts? Preferably something involving with CPU load, apache stats 
> and MySQL stats. All examples are welcome though :)

Have a look at rrdtutorial (in a man/ directory near you), its' fairly 
well written.

I knocked together some simple scripts to monitor some appservers (disk,cpu,process
count etc) but they get unwieldy very quickly - just a few boxes and it started
to get out of hand.

If you're going to be doing any gathering/graphing for this kind of thing, have
a look at cricket (ports/net-mgmt/cricket) - it makes using RRD a breeze
(though I would still read the tutorial at least, it does help to have a rough
understanding of the backend).

Favours SNMP, but you can use any script you like easily enough
(I have a ruby-ldap based version that pulls stats directly from
openldap, and it took an hour to get it graphing).


-- 
'In the beginning the Universe was created. This has made a lot of people
very angry and been widely regarded as a bad move.'
		-- The Guide
Rasputin :: Jack of All Trades - Master of Nuns


More information about the freebsd-questions mailing list