Hi, I've been using MRTG for a while and now have decided to have a play around with rrdtool. I have currently set it up (correctly I believe) to monitor the volume of network interface traffic on my server and am now trying to work out how to monitor the load on the server. I have searched the web and found many graphs displaying this data but have yet to come across the commands used to create the .rrd file and make/update the graph. I have checked the mailing list here as well and found a useful thread but it wasn't quite what I was looking for. I have also read "man rrdtutorial" a couple of times but I do obviously not understand something fundamental. I would be most grateful if someone could give me some help/pointers as to where I'm going wrong. I have enclosed the script and commands I am using and have used in creating the .rrd file: ######################################################################## ## /usr/local/bin/rrdtool create /home/dj/public_html/rrdtool/loadavg.rrd \ DS:1min:COUNTER:600:U:U \ RRA:AVERAGE:0.5:1:600 \ RRA:AVERAGE:0.5:6:700 \ RRA:AVERAGE:0.5:24:775 \ RRA:AVERAGE:0.5:288:797 \ RRA:MAX:0.5:1:600 \ RRA:MAX:0.5:6:700 \ RRA:MAX:0.5:24:775 \ RRA:MAX:0.5:288:797 ######################################################################## ## And here is my script which runs via a cron job every 5 minutes: ######################################################################## ## #!/usr/bin/perl $ip_address = "127.0.0.1"; $min1 = `/usr/local/bin/snmpget -Ov $ip_address public laLoad.1`; #$min5 = `/usr/local/bin/snmpget -Ov $ip_address public laLoad.2`; #$min15 = `/usr/local/bin/snmpget -Ov $ip_address public laLoad.3`; chomp ($min1) ; #chomp ($min5) ; #chomp ($min15) ; $update = `/usr/local/bin/rrdtool update /home/dj/public_html/rrdtool/loadavg.rr d N:$min1`; $graph = `/usr/local/bin/rrdtool graph /home/dj/public_html/rrdtool/loadavg_day.png --start -86400 \\ DEF:linea=/home/dj/public_html/rrdtool/loadavg.rrd:1min:AVERAGE LINE3:linea#FF0000:"1 min"`; ######################################################################## ## I did initially trying monitoring the 3 different load values but as this didn't work I've resorted to getting it to work with just the 1 minute average for now. Kindest regards, David
-- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
