Page 1 of 4
Bandwith Graphs show 0/0 in all network hosts.
Posted: Wed Dec 19, 2018 12:22 pm
by psasines
Hello,
I've added some hosts, using Wizard "Network Switch / Router" on NAgios XI, version 2.17.4.
Nagios language is Eng.
The ping and status graphs are working properly however the bandwith graphics do not. They always display values 0/0.
Can you help me please?
Thank you.
Re: Bandwith Graphs show 0/0 in all network hosts.
Posted: Wed Dec 19, 2018 1:15 pm
by bolson
Hello psasines,
The version number you have given does not seem to be correct. If you're running version 5.5.7 or 5.5.8. Running the following commands from terminal of your Nagios XI host will resolve your issue:
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 us know if this resolves your issue. Thank you!
Re: Bandwith Graphs show 0/0 in all network hosts.
Posted: Fri Dec 21, 2018 7:23 am
by psasines
Hi,
Thank you for your reply.
After run the commands, the HP equipments(SNMP V2) start showing infomation, but de Cisco Equipments do not(SNMP V3).
Can you help?
Thank you
Re: Bandwith Graphs show 0/0 in all network hosts.
Posted: Fri Dec 21, 2018 11:33 am
by bolson
Hello psasines,
Does the Cisco equipment send any information at all to your Nagios Server? If so, can you tell me what data is being returned and what data isn not? Thank you.
Re: Bandwith Graphs show 0/0 in all network hosts.
Posted: Wed Jan 09, 2019 10:37 am
by psasines
Hello,
At this moment in cisco equipments the ping and status graphs are working properly however the bandwith graphics do not.
Thank you.
Re: Bandwith Graphs show 0/0 in all network hosts.
Posted: Wed Jan 09, 2019 4:28 pm
by ssax
Please follow this guide for debugging:
Code: Select all
https://support.nagios.com/kb/article/nagios-xi-debugging-bandwidth-performance-graphs-29.html
Please PM one of us a copy of your profile as well and let us know the name of the Host you are having issues with so that we can look at your logs/configs. You can download your profile from Admin > System Profile, then click the Download Profile button.
Thank you
Re: Bandwith Graphs show 0/0 in all network hosts.
Posted: Thu Jan 10, 2019 12:09 pm
by psasines
Hi
After doing the troubleshooting I get the expected values, except for the errors that I send in the attachment (File Errors).
The other attachment is what you asked for.
I have this problem on all cisco equipment, eg:
SCT-DWIFI02-DC01
SCT-VMWARE-DC02
SCT-BACKUPIT-DC01
SCT-DLANIT-DC01
Thank you
Re: Bandwith Graphs show 0/0 in all network hosts.
Posted: Thu Jan 10, 2019 5:52 pm
by ssax
Please run this command and send me the entire output:
Code: Select all
time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
Additionally, please run the commands from the PM I sent you and let me know the results.
Re: Bandwith Graphs show 0/0 in all network hosts.
Posted: Tue Jan 15, 2019 5:38 am
by psasines
[root@localhost ~]# time LANC=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
-----------------------------------------------------------------------
ERROR: Mrtg will most likely not work properly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case. Try the following command to start:
env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
-----------------------------------------------------------------------
real 0m0.008s
user 0m0.002s
sys 0m0.005s
Re: Bandwith Graphs show 0/0 in all network hosts.
Posted: Tue Jan 15, 2019 4:24 pm
by tgriep
You had a typo in the command, you put in LANC in place of LANG.
Can you run the following commands as root and post the the /tmp/mrtg.txt file here?
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