Regarding Tunnel interface graph not polling

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
inshad
Posts: 30
Joined: Mon May 20, 2019 3:03 pm

Re: Regarding Tunnel interface graph not polling

Post by inshad »

dear Team

i have deleted the said file and waited almost 20 min but still no value showing in performance data
You do not have the required permissions to view the files attached to this post.
inshad
Posts: 30
Joined: Mon May 20, 2019 3:03 pm

Re: Regarding Tunnel interface graph not polling

Post by inshad »

Appreciate your update on this regards
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Regarding Tunnel interface graph not polling

Post by cdienger »

Try running the following on the command line:

Code: Select all

su - nagios
/usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/188.231.0.199_1.rrd -w 5.00,5.00 -c 8.00,8.00 -l B
(make sure to replace the rrd file name with the name of the file name for the interface you're trying to monitor).
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
inshad
Posts: 30
Joined: Mon May 20, 2019 3:03 pm

Re: Regarding Tunnel interface graph not polling

Post by inshad »

Dear Team

kindly find the output as below

Code: Select all

[nagios@nagios ~]$ /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/188.231.0.199_36.rrd -w 5.00,5.00 -c 8.00,8.00 -l B
OK - Current BW in: 0Bbps Out: 0Bbps|in=0Bb/s;5.00;8.00 out=0Bb/s;5.00;8.00
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Regarding Tunnel interface graph not polling

Post by cdienger »

Can you send me a copy of /var/lib/mrtg/188.231.0.199_36.rrd ?

The cron job may not be running - is there anything in /var/log/cron? /etc/cron.d/mrtg should contain:

Code: Select all

*/5 * * * * root 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
inshad
Posts: 30
Joined: Mon May 20, 2019 3:03 pm

Re: Regarding Tunnel interface graph not polling

Post by inshad »

Dear Team

below output can see in /etc/cron.d/mrtg file and also find the attached of rdd and mrtg file.

*/5 * * * * root 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 --user=nagios --group=nagios
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Regarding Tunnel interface graph not polling

Post by tgriep »

There is a duplication in the mrtg cron file so edit the /etc/cron.d/mrtg file and change this from

Code: Select all

*/5 * * * * root 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 --user=nagios --group=nagios
to

Code: Select all

*/5 * * * * root 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
Save the change and restart cron by running

Code: Select all

service crond restart
I have question, what is the Speed settings for the tunnel interface?

If the speed is set to Gigabytes, then edit this file

Code: Select all

/etc/mrtg/conf.d/188.231.0.199.cfg
Change this line from

Code: Select all

MaxBytes[188.231.0.199_36]: 12500
to

Code: Select all

MaxBytes[188.231.0.199_36]: 125000000
Comment out this line

Code: Select all

noHC[188.231.0.199_36]: yes
Save it out and let the system gather data for 20 to 30 minutes and see if the graphs start to populate for that interface.
Be sure to check out our Knowledgebase for helpful articles and solutions!
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 done the changes as requested, but the result is same. The graph is not polling properly.

cat /etc/cron.d/mrtg
*/5 * * * * root 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

Thanks
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Regarding Tunnel interface graph not polling

Post by tgriep »

Is the graph you posted using the 188.231.0.199_36.rrd file for the check?

What is the speed setting for the Tunnel interface? Is it set to Kilo, Mega, Giga bits?

Can you run the following command and post the /tmp/mrtg.tgz file so we can check the MRTG configuration files?

Code: Select all

tar cvfz /tmp/mrtg.tgz /etc/mrtg/*
Get the following file as well so we can view the service configurations and verify that the files and settings we are changing are the correct ones.

Code: Select all

/usr/local/nagios/var/objects.cache
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 team

kindly find the attached file and query answer as follows

Is the graph you posted using the 188.231.0.199_36.rrd file for the check?

>>>Yes

What is the speed setting for the Tunnel interface? Is it set to Kilo, Mega, Giga bits?

>> By default its 1024 kbps
You do not have the required permissions to view the files attached to this post.
Locked