>>> "Anson Rinesmith" <[EMAIL PROTECTED]> 2/11/2005
6:01:57 PM >>>
>Okay, lets take this example:
>I have a script that executes all the necessary code to update my
>"myownlog.log". By making this the first step in the script that would
run
>every 5 minutes, I should avoid having this file be open or locked
before
>running the next step. I'll handle all of the (if thens) and
open/closes).
>Then and only then, go on to making the graph.
>
>The next step in that script would be ...... what?
>I'm hearing use the external program call function. What is this?
>Does rateup change the log file?
>
>Sorry for all the confusion, but as Paul mentioned, I don't want to
put my
>server in a poor state.

Ok, here goes...

Write a script that outputs four lines:

In number
Out number
uptime
hostname 

The uptime and hostname may be reversed, but neither is really 
necessary.  

Copy an existing MRTG config file (or duplicate an existing target 
section), adjust what is necessary (hostname, max vaules, etc.)
Put this script on your Target[ezwf]: line.  

Done.

MRTG calls the program, takes in the values generated, then does 
all the other stuff needed to generate the log file, the backup 
log file, the daily, weekly, monthly and yearly graphs, plus 
the webpage.

Replace the 1:[EMAIL PROTECTED] with `/full/path/to/script`
Notice I put backticks in there, not single quotes.

Good luck.

Paul

--
Unsubscribe mailto:[EMAIL PROTECTED]
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

Reply via email to