Regarding Tunnel interface graph not polling

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: Regarding Tunnel interface graph not polling

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Regarding Tunnel interface graph not polling

Post 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?
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: Regarding Tunnel interface graph not polling

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Regarding Tunnel interface graph not polling

Post 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!
inshad
Posts: 30
Joined: Mon May 20, 2019 3:03 pm

Re: Regarding Tunnel interface graph not polling

Post by inshad »

dear ssax

i have send the requested detail to your inbox
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Regarding Tunnel interface graph not polling

Post 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
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: Regarding Tunnel interface graph not polling

Post by mejokj »

Hi Team,

Can we have any update on this?

Thanks
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Regarding Tunnel interface graph not polling

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Regarding Tunnel interface graph not polling

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
inshad
Posts: 30
Joined: Mon May 20, 2019 3:03 pm

Re: Regarding Tunnel interface graph not polling

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