[mrtg] Re: Need help with PNGTitle and 2 general questions.

Scott_Rochford at DELL.com Scott_Rochford at DELL.com
Tue May 2 10:33:26 MEST 2006

> General Questions:
> 1) I'm already monitoring my disk partitions and swap space, but i
> like to also monitor disk usage of some folders (e.g.: /var/log or
/home/ ,
> is that possible?)

Write a little script on the host to be monitored containing something
the following (cut along dotted lines):

------------------ 8< ----------------------

df -Pk $1 | awk '/^\// {print $2 "\n" $3}'
------------------ 8< ----------------------

Then run the script from MRTG using the `backquotes` syntax.  If it's a 
remote host you can do it via SSH with non-interactive authentication.

Note that it takes one parameter, the filesystem to be monitored.

> 2) If i use the option "Suppres[_]: ym" will i loose the suppressed
> e.g. in 6 months, if i remove the suppres, will i get my data back??

I believe it just suppresses the charts, not the data. 



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