[mrtg] Re: External snmp script?

bwoodcoc bwoodcoc at genuity.com
Sat Feb 2 22:15:55 MET 2002

The previous reply from Jay seems to be a cool idea. Another option is to 
build a small cgi script on the remote web server. Then use the external 
script option to call a local script which then calls the cgi url to pass 
in the values. This takes a bit of scripting but it is not too deep if you 
know how to get the user info at the server via script. The mrtg local 
script can use LWP::Simple module to call the url if perl is an option. 
This worked for me to distribute ping response time monitoring in the past.

At 01:20 PM 2/2/2002 +0100, Eric Persson wrote:

>Hi !
>This might be a bit off-topic, but I'll give it a shot, since I will use
>mrtg for this. I have a loaded webserver on a remote location. I would
>like to make graphs of the number of users logged on to a website on the
>machine. Since I do not want to have mrtg on that box, I have another
>box for this purpose.
>The question is, how do I make mrtg able to get what I want (with snmp?)
>from that other box? I could do some script to provide the information,
>but what do I after that? I saw the possibility to run external scripts
>as targets, but that seems to require that mrtg is on the same box.
>This might be more of a snmprelated question...
>Any hints?
>[ eric persson | eric at persson.tm | www.persson.tm ]
>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

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