Bandwidth is showing 0 in Nagios Xi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
biswajit.banerjee
Posts: 152
Joined: Fri Dec 08, 2017 10:24 pm

Bandwidth is showing 0 in Nagios Xi

Post 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
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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
biswajit.banerjee
Posts: 152
Joined: Fri Dec 08, 2017 10:24 pm

Re: Bandwidth is showing 0 in Nagios Xi

Post 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.
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

Post by scottwilkerson »

Lets modify these permissions

Code: Select all

chown apache.nagios -R /var/lib/mrtg
chmod ug+w -R /var/lib/mrtg
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked