[mrtg] Re: How to use external data file.

Daniel R . Kilbourne drk at voyager.net
Thu Oct 5 05:07:27 MEST 2000


by saying : ` /tmp/mrtg-2.8.12/c2509/ausers.log`, you are telling mrtg to run ` /tmp/mrtg-2.8.12/c2509/ausers.log`


I think what you want is for mrtg to 'cat' this file


so, change the ` /tmp/mrtg-2.8.12/c2509/ausers.log`

line to

`/bin/cat /tmp/mrtg-2.8.12/c2509/ausers.log`


and it should work





(as long as the .log file is in the correct format)

by the way, there is VERY good documentation on calling external scripts from mrtg on the web page.....





On Thu, Oct 05, 2000 at 10:30:14AM +0800, benny.he at alcatel.com.cn spake:

> 
> Hi:
> 
> I use scripts creat a external data file every 5 minutes. Then I want 
> to use this data file to generate mrtg graphic pages.
> 
> But when I run ./mrtg mrtg.cfg, I get error message: 
> "Could not get any data from external command 
> `/tmp/mrtg-2.8.12/c2509/ausers.log`
> Maybe the external command did not even start. (Illegal seek)   "
> 
> Can anyone tell me how to configure the mrtg.cfg to use the external 
> data file? And what 's the format of the data file?
> 
> My mrtg.cfg is configured with:
> 
> WorkDir: /tmp/mrtg-2.8.12/c2509
> WithPeak[^]: ymw
> 
> Title[RemAccDev_Shanghai3]: Current Active Users On Shaanghai RAS
> PageTop[RemAccDev_Shanghai3]: <H1>Current Active Users</H1>
> MaxBytes[RemAccDev_Shanghai3]: 16
> Options[RemAccDev_Shanghai3]: absolute, gauge
> Target[RemAccDev_Shanghai3]: ` /tmp/mrtg-2.8.12/c2509/ausers.log`
> RouterUptime[RemAccDev_Shanghai3]: la*u!re at 172.24.24.67
> YLegend[RemAccDev_Shanghai3]: Current Active PPP Users
> ShortLegend[RemAccDev_Shanghai3]: Active Users
> Legend1[RemAccDev_Shanghai3]:
> Legend2[RemAccDev_Shanghai3]: Avg Active Users
> Legend3[RemAccDev_Shanghai3]:
> Legend4[RemAccDev_Shanghai3]: Maximal Active Users
> LegendI[RemAccDev_Shanghai3]:
> LegendO[RemAccDev_Shanghai3]: &nbsp;Total:
> 
> Thanks.
> 
> 
> --
> 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
> 

-- 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Daniel R. Kilbourne
daniel.kilbourne at voyager.net
Voyager.net Network Engineer

^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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