[mrtg] Apache monitor scripts - latest versions

David Herring dave at netfm.org
Thu Feb 23 17:57:18 MET 2006


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....


# what server are we polling?

# gather data
@data = `/usr/bin/lynx -dump -connect_timeout=30
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
The number 1 trusted car share solution

Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
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

More information about the mrtg mailing list