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
Bandwidth is showing 0 in Nagios Xi
-
biswajit.banerjee
- Posts: 152
- Joined: Fri Dec 08, 2017 10:24 pm
Bandwidth is showing 0 in Nagios Xi
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Bandwidth is showing 0 in Nagios Xi
Can you run the following and post any errors
Also, lets see the permissions of /var/lib/mrtg/192.168.155.1_5.rrd
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=nagiosCode: Select all
ls -l /var/lib/mrtg/192.168.155.1_5.rrd-
biswajit.banerjee
- Posts: 152
- Joined: Fri Dec 08, 2017 10:24 pm
Re: Bandwidth is showing 0 in Nagios Xi
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.
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.
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Bandwidth is showing 0 in Nagios Xi
Lets modify these permissions
Code: Select all
chown apache.nagios -R /var/lib/mrtg
chmod ug+w -R /var/lib/mrtg