Page 1 of 1

No traffic data on newly created monitoring?!

Posted: Tue Feb 25, 2020 11:55 am
by xpertech
It seems that no traffic data on newly created device monitoring, but the old ones have,

it does have traffic data on that local host(Figure1)

but no traffic on the NagiosXI(Figure2)
TWACCNWADMDC21P (10.36.10.166)
AI2-Server-S1-3560G (10.36.169.1)

had been tried to delete the following config and performance file and then re-create monitoring, but still no traffic data on NagiosXI,
/etc/mrtg/conf.d/ip.cfg
/var/lib/mrtg/ip.rrd

is it possible because of the NagiosXI version 5.6.4 problem?
anything need to be aware of?

Re: No traffic data on newly created monitoring?!

Posted: Wed Feb 26, 2020 11:14 am
by tgriep
Can you run the following commands as root and post the the /tmp/mrtg.txt file to the ticket?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -debug=cfg,base,log &> /tmp/mrtg.txt
LANG=C LC_ALL=C /usr/bin/mrtg &>> /tmp/mrtg.txt
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok --user=nagios --group=nagios &>> /tmp/mrtg.txt
{ time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg 2>1 ; } 2>> /tmp/mrtg.txt

Re: No traffic data on newly created monitoring?!

Posted: Thu Feb 27, 2020 6:17 pm
by xpertech
tgriep wrote:Can you run the following commands as root and post the the /tmp/mrtg.txt file to the ticket?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -debug=cfg,base,log &> /tmp/mrtg.txt
LANG=C LC_ALL=C /usr/bin/mrtg &>> /tmp/mrtg.txt
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok --user=nagios --group=nagios &>> /tmp/mrtg.txt
{ time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg 2>1 ; } 2>> /tmp/mrtg.txt

please see attachment.

Re: No traffic data on newly created monitoring?!

Posted: Fri Feb 28, 2020 10:06 am
by tgriep
First, upgrade the Network Switch / Router wizard in XI to the latest version by logging in to the XI GUI and going to the Admin > Manage Config Wizards menu.
Click the Check for Updates button and update the Network Switch / Router wizard.

There are some permission issues for some of the performance files and they are not getting updated. Run this at root to fix them.

Code: Select all

chown apache:nagios /etc/mrtg -R
chmod 775 /etc/mrtg -R
chown apache:nagios /var/lib/mrtg -R
chmod 775 /var/lib/mrtg -R
Let the system run for 15 minutes and see if the issue has been resolved.