[mrtg] Re: External snmp script?

paul beard paulbeard at mac.com
Sat Feb 2 23:13:21 MET 2002

you could quite easily record this information with a script and 
then access through a non-privileged port: have the script write 
data to /tmp/ipchains.out and have a line in /etc/inetd.conf that 
does 'cat /tmp/ipchains.out' on that port. Or grab it with a 
cronned scp/sftp transfer every 5 minutes as suggested. Or crib 
one of the perl server examples from the camel book and have it 
listen on a high-numbered port and serve out the data.

MRTG doesn't need SNMP to work: all it needs is datapoints. I have 
only recently been using SNMP with it, and I've used MRTG for 
years. At CNN.com we only used SNMP for routers but we monitored 
more than 100 other boxes without it.

Daniel R. Kilbourne wrote:

> As far as I know, that information is not available via snmp.
> You can do ipchains/iptables scripts to get that info.
> If you have some other scripts that can get it, you will just need to figure out a way to get the output of those scripts from the webserver to the mrtg server (maybe via ftp/sftp/scp).
> Eric Persson extolled:
>>Any hints? 

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