hello, first post - so happy to take pointers to best mrtg sites, etc....
Have been looking for the latest apache monitor scripts - can someone point me to a URL for these? The only version I can find outputs only one variable , and I understand the latest mrtg wants 4 variables output from scripts? Also, has anyone done a script that does a 'web ping' for web server response time / correctness - kind of a big brother / what's up gold etc type of monitor for mrtg. thanks dave ps. this is all I could find on web.... #!/usr/bin/perl # what server are we polling? [EMAIL PROTECTED]; # gather data @data = `/usr/bin/lynx -dump -connect_timeout=30 http://$server/server-status?au to 2> /dev/null`; if (@data[0] eq "") { # Uh oh! Webserver might be down! printf "0\n0\n0\nthe core webserver\n"; } else { # Webserver is up # lets calculate hits # @hits = split(/ /, @data[0]); # printf "@hits[2]"; # calculate bytes # @bytes = split(/ /, @data[1]); # printf ("%5.0f\n", ((@bytes[2]+0.5) * 1024)); #calculate concurrent users @users = split(/ /, @data[7]); printf "@users[1]"; } Thanks dave -- David Herring --- NetFM Ltd T: 01344 769068 M: 07973 673027 --- http://www.journey2share.co.uk/ The number 1 trusted car share solution -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
