[mrtg] Re: Web

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Tue Oct 16 12:46:19 MEST 2001


Eric Lim Choon Keat - CSSG wrote:

> How can i use MRTG to monitor the whether the webpage is reachable or not

There are better programs for this job.  However, if you want to use
MRTG anyway I suggest to use the external program interface.

In a script you can try to connect to the server (using wget or so).  If
you can reach the server, the current reachability is 100 percent.  If you
cannot reach the server then the current reachability is 0 percent.  Return
this number from your script.  MRTG will use it and when it is consolidating
the numbers (for the weekly/monthly/yearly graph) it will display nice
percentages.

cheers,
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list