Page 1 of 1
Bandwidth is showing 0 in Nagios Xi
Posted: Tue May 07, 2019 2:27 am
by biswajit.banerjee
Hi team,
We are using below command for bandwidth usage and found output as below:
Command: usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/192.168.155.1_5.rrd -w 50.00,50.00 -c 80.00,80.00 -l M
Output: Current BW in: 0Mbps Out: 0Mbps|in=0Mb/s;50.00;80.00 out=0Mb/s;50.00;80.00
Re: Bandwidth is showing 0 in Nagios Xi
Posted: Tue May 07, 2019 10:08 am
by scottwilkerson
Can you run the following and post any errors
Code: Select all
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
Also, lets see the permissions of /var/lib/mrtg/192.168.155.1_5.rrd
Code: Select all
ls -l /var/lib/mrtg/192.168.155.1_5.rrd
Re: Bandwidth is showing 0 in Nagios Xi
Posted: Tue May 21, 2019 12:42 am
by biswajit.banerjee
Hi Team Please find output(bandwidth_command_output.docx) for below command:
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
Find screen shot for permission also.
Re: Bandwidth is showing 0 in Nagios Xi
Posted: Tue May 21, 2019 7:40 am
by scottwilkerson
Lets modify these permissions
Code: Select all
chown apache.nagios -R /var/lib/mrtg
chmod ug+w -R /var/lib/mrtg