network bw monitoring 0 BW

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
xx101
Posts: 8
Joined: Wed May 26, 2021 11:35 pm

network bw monitoring 0 BW

Post by xx101 »

Hello,
We need to monitor the in/out BW being consumed in our network devices, we are using this plugin check_rrdtraf in NagiosXI as this supports also the BW reporting but the result we currently have on both in/out is 0BW.

running this command LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
provides this output:
ERROR: Line 571 (Target[1.2.3.4_11111]: 11111:[email protected]:161::::2) in CFG file (/etc/mrtg/conf.d/1.2.3.4.cfg)
contains a duplicate definition for target[1.2.3.4_11111].
First definition is on line 4

I've deleted the RRDs of thosse that needs to be monitored but Im still getting the 0BW output when running the plugin
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: network bw monitoring 0 BW

Post by gsmith »

Hi,

Please check /etc/mrtg/conf.d for a config file for that specific device, it will be something like:
1.2.3.4.cfg

Look in there for duplicate targets.

There may also be duplication between /etc/mrtg/mrtg.cfg and /etc/mrtg/conf.d/1.2.3.4.cfg.

Thanks
Locked