Page 1 of 1
Bandwidth utilization reports zero
Posted: Fri Jan 23, 2015 9:41 am
by btemple
I am troubleshooting the results of the router wizard checks.
On Bandwidth utilization this check prints the results of the .rrd file my question is what check writes to the .rrd ?
$USER1$/check_rrdtraf -f /var/lib/mrtg/$ARG1$ -w $ARG2$ -c $ARG3$ -l $ARG4$
I setup a couple of routers which are reporting back 0 mb as bandwidth utilization my assumption is that the snmp permissions on the router are disallowing the data back to the NAgios server ?
Re: Bandwidth utilization reports zero
Posted: Fri Jan 23, 2015 10:01 am
by scottwilkerson
When using the switch / router wizard, it add MRTG configuration in /etc/mrtg/conf.d that is run every 5 minutes to gather bandwidth utilization
Re: Bandwidth utilization reports zero
Posted: Fri Jan 23, 2015 10:19 am
by btemple
thanks looks like a permissions issue on the .cfg files in the conf.d directory
Re: Bandwidth utilization reports zero
Posted: Fri Jan 23, 2015 3:16 pm
by abrist
Note: User is still having issues.
Is other performance data working? Or just the bandwidth checks?
If you run the following command from the cli, what is the output?
Code: Select all
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok
Re: Bandwidth utilization reports zero
Posted: Fri Jan 23, 2015 3:38 pm
by btemple
This error only seems to pertain to the newly added routers all other look ok. When adding the new routers I chose snmp v 2 tab , but the other checks like latency changed to snmp 0 , I was able to manually changed those. Where would I change the snmp for these particular checks ?
2015-01-23 15:26:59: ERROR: Target[XX>XXX>XXXX>XXX][_IN_] ' $target->[3]{$mode} $snmpversion' (warn): (Missing operator before $snmpversion?)
Re: Bandwidth utilization reports zero
Posted: Fri Jan 23, 2015 3:45 pm
by btemple
looks like the files are in the conf.d directory ?
Re: Bandwidth utilization reports zero
Posted: Fri Jan 23, 2015 7:51 pm
by Box293
I'm pretty sure the answer is that it needs to be changed in every affected file in the conf.d directory for every port.
Each Port is defined with a Target line
In that example:
public is the snmp community
2 is the snmp version (thats the :::::2)
Re: Bandwidth utilization reports zero
Posted: Mon Jan 26, 2015 9:25 am
by btemple
That the one thanks !
Re: Bandwidth utilization reports zero
Posted: Mon Jan 26, 2015 10:26 am
by cmerchant
We'll go ahead and close the thread. Thanks.