I'm not sure what I'm doing wrong. I changed my format to MRTG with RRD.
This is the line I added to the index page...
VALUE="/gauge.swf?xml_source=publicxml.cgi%3Fcfg%3Dfranklin-hs.cfg%26target%3D10.91.0.171_16">
My cgi file looks like this...
# If my url matches this regexp, we're in public mode
my($PUBLICURL) = 'NONpublicxml';
# If in public mode, requested cfg must match this regexp
my($PUBLICCFG) = '^other-summary\/';
# This is the confpath from the routers2.conf
my($CFGDIR) = "/u01/mrtg/conf";
# This is the URL for routers2.cgi, if you have it
my($ROUTERSCGI) = "http://mrtg.auckland.ac.nz/cgi-bin/routers2.cgi";
# Default workdir for RRD files if not set in cfg file
my($workdir) = "/var/www/html/rrd/logs/HS";
# Not a good idea to change below here
# Columns of gauges if placing multiple ones
and my franklin-hs.cfg looks like this...
LogFormat: rrdtool
PathAdd: /usr/local/
LibAdd:/opt/rrdtool-1.4.3/bindings/perl-shared/
EnableIPv6: no
WorkDir: /var/www/html/rrd/logs/HS
<skipping output>
Target[10.91.0.171_16]: 16:mysecret@10.91.0.171:
SetEnv[10.91.0.171_16]: MRTG_INT_IP="10.91.1.171" MRTG_INT_DESCR="FastEthernet0/1.421"
MaxBytes[10.91.0.171_16]: 12500000
Title[10.91.0.171_16]: Traffic Analysis for 16 -- hs-franklin-r1
PageTop[10.91.0.171_16]: <h1>Traffic Analysis for 16 -- hs-franklin-r1</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>hs-franklin-r1 in </td>
</tr>
<tr>
<td>Maintainer:</td>
<td></td>
</tr>
<tr>
<td>Description:</td>
<td>FastEthernet0/1.421 OPTEMAN-Franklin SH </td>
</tr>
<tr>
<td>ifType:</td>
<td>Layer 2 Virtual LAN using 802.1Q (135)</td>
</tr>
<tr>
<td>ifName:</td>
<td>Fa0/1.421</td>
</tr>
<tr>
<td>Max Speed:</td>
<td>12.5 MBytes/s</td>
</tr>
<tr>
<td>Ip:</td>
<td>10.91.1.171 (hs-franklin-r1)</td>
</tr>
</table>
</div>
It seems as though the cgi file is not phasing the .cfg file. Is there a way to verify that the cgi file is able to locate the mrtg config file?Statistics: Posted by rmarnold — Tue Jun 08, 2010 9:47 pm
]]>