Page 4 of 5

Re: Regarding Tunnel interface graph not polling

Posted: Tue Oct 08, 2019 12:08 pm
by mejokj
Hi,

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?

--> Yes the tunnel went to down state when I running the command.

Is the tunnel always up and never goes down?

---> It is down now.

Note: Please consider the 188.231.80.1_37, Tunnel1924448 as the other tunnel is down

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

--> This option is not there for 188.231.80.1_37

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

---> Current Configuration existing

Target[188.231.80.1_37]: 37:[email protected]:161::::2
SetEnv[188.231.80.1_37]: MRTG_INT_IP="192.168.44.50" MRTG_INT_DESCR="Tunnel1924448"
MaxBytes[188.231.80.1_37]: 628000000

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


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

---> rrd file has been deleted for 188.231.80.1_37.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.

--> Still it is showing as zero only

Re: Regarding Tunnel interface graph not polling

Posted: Tue Oct 08, 2019 1:15 pm
by tgriep
If the tunnels are down and are down for a period of time, then there is no way to gather bandwidth data so XI showing zero is correct.

Re: Regarding Tunnel interface graph not polling

Posted: Wed Oct 09, 2019 9:18 am
by inshad
its not single tunnel interface issues as many of our devices tunnel graph are not polling by nagios, i can provide the another tunnel interface which is not showing performance graph in nagios. Please note its not issue with interface go up or down

Re: Regarding Tunnel interface graph not polling

Posted: Wed Oct 09, 2019 10:10 am
by tgriep
Can you post the IP addresses of the devices, the names of the services so I can look at the configuration files?

One question, if the Tunnel goes down and comes back up, does it get the same interface index as before or does it get a new one?

Re: Regarding Tunnel interface graph not polling

Posted: Wed Oct 09, 2019 10:14 am
by inshad
the previous tunnel which is goes down which is not in use that why it shut down. i have other devices and active unnel sevices which doesnt show any performance graph data in nagios

host ip address 188.231.3.149 and service name Tunnel19244056 & rdd file name 188.231.3.149_40

Re: Regarding Tunnel interface graph not polling

Posted: Wed Oct 09, 2019 2:52 pm
by tgriep
Can you run the following command on the Nagios server and post the /tmp/walk.txt file to I can see the currently active interfaces on the device.

Code: Select all

snmpwalk 188.231.3.149 -v 2c -c gSrou1er -m ALL
Thanks

Re: Regarding Tunnel interface graph not polling

Posted: Wed Oct 09, 2019 3:08 pm
by inshad
i have send to the mentioned file to your inbox, kindly let me know if you can able to check it

Re: Regarding Tunnel interface graph not polling

Posted: Wed Oct 09, 2019 3:35 pm
by tgriep
I did receive the walk file and what I see it that the device is reporting the speed as 100 Meg so edit the /etc/mrtg/conf.d/188.231.3.149.cfg file and change this from

Code: Select all

MaxBytes[188.231.3.149_40]: 12500
to

Code: Select all

MaxBytes[188.231.3.149_40]: 125000000
Delete the

Code: Select all

/var/lib/mrtg/188.231.3.149_40.rrd
file from the server.

Go to the following folder and delete the rrd and the xml file for the Tunnel service

Code: Select all

/usr/local/nagios/share/perfdata/uhn-pe-2
Wait for at least 30 minutes and check the graph.

One more thing to try, the settings in the MRTG config file are set to use the low speed counters and it they are not updating correctly, that would produce false data.

If the above fails, do this edit the /etc/mrtg/conf.d/188.231.3.149.cfg file and delete the following line

Code: Select all

noHC[188.231.3.149_40]: yes
Go and remove the rrd files and the xml files and wait for another 30 minutes to see if the data is correct.

Re: Regarding Tunnel interface graph not polling

Posted: Wed Oct 09, 2019 4:53 pm
by inshad
Dears

Please be informed that its working now after the mentioned changes, I will try other hosts & will update back

Re: Regarding Tunnel interface graph not polling

Posted: Thu Oct 10, 2019 10:15 am
by benjaminsmith
Please be informed that its working now after the mentioned changes, I will try other hosts & will update back
Sounds good. We keep this open.