Page 2 of 5
Re: Regarding Tunnel interface graph not polling
Posted: Thu Sep 26, 2019 10:38 am
by inshad
dear Team
i have deleted the said file and waited almost 20 min but still no value showing in performance data
Re: Regarding Tunnel interface graph not polling
Posted: Thu Sep 26, 2019 11:58 am
by inshad
Appreciate your update on this regards
Re: Regarding Tunnel interface graph not polling
Posted: Thu Sep 26, 2019 12:16 pm
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).
Re: Regarding Tunnel interface graph not polling
Posted: Thu Sep 26, 2019 12:51 pm
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
Re: Regarding Tunnel interface graph not polling
Posted: Thu Sep 26, 2019 4:01 pm
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
Re: Regarding Tunnel interface graph not polling
Posted: Thu Sep 26, 2019 4:25 pm
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
Re: Regarding Tunnel interface graph not polling
Posted: Fri Sep 27, 2019 8:58 am
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
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
to
Code: Select all
MaxBytes[188.231.0.199_36]: 125000000
Comment out this line
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.
Re: Regarding Tunnel interface graph not polling
Posted: Fri Sep 27, 2019 12:07 pm
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
Re: Regarding Tunnel interface graph not polling
Posted: Fri Sep 27, 2019 12:29 pm
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
Re: Regarding Tunnel interface graph not polling
Posted: Sat Sep 28, 2019 4:29 am
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