Thanks, that points me in the right direction and clears up most of the confusion.
Mike Prezbindowski IT Manager Andrews Space, Inc. 505 5th Avenue South, Suite 300 Seattle, WA 98104 Office (206) 438-0617 Cell: (206) 499-0367 mailto:[EMAIL PROTECTED] http://www.andrews-space.com/ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 6:22 AM To: [email protected] Subject: [rrd-users] Re: Finally Success wtih mrtg, 14all.cgi and RRD! Mike- 14all.cgi is a server-side script. When you put your script tags in the web page, you're asking the webbrowser to execute it locally, which is impossible. 14all.cgi doesn't do well with server-side includes, either. Your easiest option would be to make it the target of a link or a frame. You could also use it as an IFRAME target or have a hyperlink open it in a new window. Hope that helps, -Jon Hartman -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Prezbindowski Sent: Monday, December 29, 2003 5:54 PM To: [email protected] Subject: [rrd-users] Finally Success wtih mrtg, 14all.cgi and RRD! Thanks for the help everyone. Your emails were invaluable in learning these tools. I can now get the default 14all.cgi script running by itself but I need to attach it to my IT web page. I am running Win2k and IE 6.x. When I embed the 14all.cgi script in a web page it just doesn't do anything. Blank screen. I tried adding <script>, </script> tags and language="Perl" but no luck. I know it works because I can call it from the browers URL http://localhost/scripts/14all.cgi. Anyone know how to get this to work inside a web page or how to call it from a web page? Mike Prezbindowski IT Manager Andrews Space, Inc. 505 5th Avenue South, Suite 300 Seattle, WA 98104 Office (206) 438-0617 Cell: (206) 499-0367 mailto:[EMAIL PROTECTED] http://www.andrews-space.com/ -----Original Message----- From: Graeme Donaldson [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2003 3:24 AM To: [email protected] Subject: [rrd-users] Re: Monitoring System Load (graphing it) David Jenkins said: > 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. This is how I do it. I don't store the 1-min avg since I only do the update every 5 minutes and it wouldn't really make much sense to do so. Also, I'm not (currently) using SNMP to get the value, but it should be fairly easy to modify to use SNMP. *Create* rrdtool create /var/db/rrd/loadavg.rrd \ DS:5min:GAUGE:600:U:U \ DS:15min:GAUGE:600:U:U \ RRA:AVERAGE:0.5:1:576 \ RRA:AVERAGE:0.5:6:672 \ RRA:AVERAGE:0.5:24:744 \ RRA:AVERAGE:0.5:288:732 \ RRA:MAX:0.5:1:576 \ RRA:MAX:0.5:6:672 \ RRA:MAX:0.5:24:744 \ RRA:MAX:0.5:288:732 *Update* #!/usr/local/bin/bash PATH=/bin:/usr/bin:/usr/local/bin echo $(uptime | sed -e 's/^.*load average.*: //' -e 's/ //g' | \ awk -F, "{ printf(\"update /var/db/rrd/loadavg.rrd N:%f:%f\", \$2, \$3)}") | rrdtool - *Graph* #!/usr/local/bin/bash PATH=/bin:/usr/bin:/usr/local/bin tstamp=`date` rrdtool graph /var/www/localhost/stats/loadavg-day.png \ --start now-1day \ --vertical-label "Load averages" \ --title "Load averages for the past day" \ --width 600 \ --height 200 \ --alt-autoscale-max \ --lower-limit 0 \ DEF:5minavg=/var/db/rrd/loadavg.rrd:5min:AVERAGE \ AREA:5minavg#0000dd:"5-min load avgs" \ GPRINT:5minavg:AVERAGE:"Avg\:%3.2lf" \ GPRINT:5minavg:MAX:"Max\:%3.2lf\n" \ COMMENT:"$tstamp\r" HTH Graeme -- 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 -- 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 -- 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 -- 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
