Page 3 of 5

Re: Regarding Tunnel interface graph not polling

Posted: Sat Sep 28, 2019 6:57 am
by mejokj
Hi Team,

Just an information, we are able to get output of tunnel interface with the nwc_health plugin but not the default nagios xi plugin.

[root@nagios libexec]# ./check_nwc_health --hostname 188.231.80.1 --community gSrou1er --mode interface-usage --name Tunnel19244140 --units KB
OK - interface Tunnel19244140 (alias !CYP-PE1 to Omdorman!) usage is in:55.27% (53.97KB/s) out:0.00% (0.00KB/s) | 'Tunnel19244140_usage_in'=55.27%;80;90;0;100 'Tunnel19244140_usage_out'=0.00%;80;90;0;100 'Tunnel19244140_traffic_in'=53.97KB;78.125;87.8906;0;97.6562 'Tunnel19244140_traffic_out'=0.00KB;78.125;87.8906;0;97.6562
[root@nagios libexec]#

Thanks

Re: Regarding Tunnel interface graph not polling

Posted: Mon Sep 30, 2019 1:17 pm
by ssax
Glad you were able to find a solution, you will likely need to delete the backend /usr/local/nagios/share/perfdata/HOSTNAME/SERVICENAME.rrd so that it graphs properly though. Did you do that? Is it graphing for you properly?

Re: Regarding Tunnel interface graph not polling

Posted: Tue Oct 01, 2019 12:38 am
by mejokj
Hi Team,

We have already deleted the rrd file of the service and tested. but it didn't work. Graph is still showing as 0

Thanks

Re: Regarding Tunnel interface graph not polling

Posted: Tue Oct 01, 2019 4:46 pm
by ssax
Please attach both of these files AND a fresh copy of your Profile:

Code: Select all

/usr/local/nagios/share/perfdata/HOSTNAME/SERVICENAME.rrd
/usr/local/nagios/share/perfdata/HOSTNAME/SERVICENAME.xml
Thank you!

Re: Regarding Tunnel interface graph not polling

Posted: Wed Oct 02, 2019 1:47 am
by inshad
dear ssax

i have send the requested detail to your inbox

Re: Regarding Tunnel interface graph not polling

Posted: Wed Oct 02, 2019 4:20 pm
by ssax
Please attach these as well (I need these for the internal details):
- Change HOSTNAME to the host and SERVICENAME to the service name in question so that I can look at the graphing details and compare the contents

Code: Select all

/usr/local/nagios/share/perfdata/HOSTNAME/SERVICENAME.rrd
/usr/local/nagios/share/perfdata/HOSTNAME/SERVICENAME.xml

Re: Regarding Tunnel interface graph not polling

Posted: Mon Oct 07, 2019 1:31 pm
by mejokj
Hi Team,

Can we have any update on this?

Thanks

Re: Regarding Tunnel interface graph not polling

Posted: Mon Oct 07, 2019 4:47 pm
by tgriep
Can you run this command as root on the Nagios server and post the /tmp/cfg.txt file here?

Code: Select all

/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed 100000 [email protected]:161::::2 >/tmp/cfg.txt

Re: Regarding Tunnel interface graph not polling

Posted: Tue Oct 08, 2019 8:39 am
by tgriep
Thanks for running the command.
I went through it and at the time it was ran, the interface called Tunnel19244140 was not captured so there is no data for that interface.
The tunnel should be Interface 36 but it is missing.
If the tunnel was down when it was ran, then the cfgmaker command would not see it.
Was the tunnel down at the time the cfgmaker command was ran?
Is the tunnel always up and never goes down?

I do have a thought, if the tunnel drops and restarts, I would guess that the counters are reset when it comes back and that would give false data to for the bandwidth collection. That might be the cause of the issue.

Even though the tunnel interface may not exist, try this.
Edit the /etc/mrtg/mrtg.d/188.231.80.1.cfg file and remove this line (Line 1289)

Code: Select all

noHC[188.231.80.1_36]: yes
change line 1291 from

Code: Select all

MaxBytes[188.231.80.1_36]: 12500
to

Code: Select all

MaxBytes[188.231.80.1_36]: 1250000
Save the file and delete this file to remove the old bandwidth data

Code: Select all

/var/lib/mrtg/188.231.80.1_36.rrd
Wait for 20 to 30 minutes for the system to gather the bandwidth data and check the graph to see if there is data,

Another thing I notice, if that there is very little traffic outbound on that interface so it may always show zero.

Re: Regarding Tunnel interface graph not polling

Posted: Tue Oct 08, 2019 11:36 am
by inshad
dear tgriep

kinldy check the inbox i had send the result of 188.231.80.1_37 which have the rdd and xml file of _37 . Please note _36 we are not using . kindly check and let me know if you require further details.