Hi Steve,
Thank you very much for the explaination! I think that I have a trouble to correctly configure routers2.conf. Would you please help?
I have successfully daemonized MRTG and configured files/directories permissions for the mrtg user. I tried to use the "grouping" feature by following the HOWTO. However, I just couldn't get it working. The errors still persist. Here is my settings in the routers2.conf file:
[routers.cgi]
confpath = /etc/mrtg/cfg
cfgfiles = servers/*.cfg
# /etc/mrtg/cfg/servers/myserver.cfg is my server's MRTG conf file
# I'll create /etc/mrtg/cfg/network/myrouters.cfg after I get my server working with rrdtool
# So, I will eventually have two groups: servers and network
group = yes
[targetnames]
/etc/mrtg/cfg/servers/myserver.cfg = Myserver
routerdefault = filename
A snippet of my mrtg conf file is the following:
Target[localhost_10.10.1.100]: /10.10.1.100:mysnmpstring@localhost:
SetEnv[localhost_10.10.1.100]: MRTG_INT_IP="10.10.1.100" MRTG_INT_DESCR="eth0"
MaxBytes[localhost_10.10.1.100]: 12500000
Title[localhost_10.10.1.100]: Traffic Analysis for 10.10.1.100 -- myserver
PageTop[localhost_10.10.1.100]: <h1>Traffic Analysis for 10.10.1.100 -- myserver</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>myserver</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>root@mydomain</td>
</tr>
<tr>
<td>Description:</td>
<td>eth0 </td>
</tr>
<tr>
<td>ifType:</td>
<td>ethernetCsmacd (6)</td>
</tr>
<tr>
<td>ifName:</td>
<td>eth0</td>
</tr>
<tr>
<td>Max Speed:</td>
<td>100.0 Mbits/s</td>
</tr>
<tr>
<td>Ip:</td>
<td>10.10.1.100 (myserver)</td>
</tr>
</table>
</div>
The rrdtool version that I have is rrdtool-1.4.4-1.el5.rf and mrtg is mrtg-2.14.5-2. The version of the routers.cgi is v2.21.
Am I missing something in my routers2.conf or anywhere else? Would you please enlighten me how may I fix the configuration? Where can I find a working example of the routers2.conf file that fits my needs? I read the doc at this URL (
http://www.steveshipway.org/software/rr ... UTERS_CONF) but still unable to figure out what to do to fix the two errors.
Your time and assistance will be highly appreciated!