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 ?
Bandwidth utilization reports zero
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Bandwidth utilization reports zero
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
thanks looks like a permissions issue on the .cfg files in the conf.d directory
Re: Bandwidth utilization reports zero
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?
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.okFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Bandwidth utilization reports zero
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?)
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
looks like the files are in the conf.d directory ?
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Bandwidth utilization reports zero
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)
Each Port is defined with a Target line
Code: Select all
Target[192.168.1.1_1]: 1:[email protected]:::::2public is the snmp community
2 is the snmp version (thats the :::::2)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Bandwidth utilization reports zero
That the one thanks !
Re: Bandwidth utilization reports zero
We'll go ahead and close the thread. Thanks.