[mrtg] Re: Strings
Daniel J McDonald
dmcdonald at digicontech.com
Fri Aug 17 17:19:45 MEST 2001
I'd probably do a server side include to a perl script that grabbed the
variable. That would be easy enough to code into pagetop.
pagetop[foo]: ... <!--exec /usr/local/mrtg-2/bin/getvar.pl
public at foo.ip sysLocation.0 --> ...
then getvar would be a pretty simple script like:
use lib qw( /usr/local/mrtg-2/lib/mrtg );
Daniel J McDonald, CCIE 2495, CNX
Principal Network Specialist
Digicon, a Cisco Partner, Silver Certified.
I've thought about how to do that too.
Seems as if it would be neat to be able to have a script run
for the name of the Title or PageTop vars instead of having
them hard-coded. Maybe change the code in mrtg where
the Title information is written to be the result of the
Or, you could always do something on the
web server side of things, like run an snmpget when the
html (asp, php?) page is called and populate the fields
on the fly....so many ideas, so little time...
>>> <McQuaidFD at bordenchem.com> 08/17/01 10:50AM >>>
I have an OID that returns a string from a router and would like to
display it in the header of the MRTG graphs.
The is similar to the system uptime that is displayed in the header of the
I looked threw the FAQ's but didn't see anything.
Has anyone done this and if so could you please give me an example.
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
More information about the mrtg