Page 1 of 2
.rrd does not exist
Posted: Sun Jan 10, 2021 9:47 am
by kalyanpabolu
Hello Team,
We have recently added few routers in Nagios XI. When trying to monitor the bandwidth for a particular interface, we are getting below error:
/var/lib/mrtg/10.18.180.1_1.rrd does not exist.
The port is actually UP and its status is GREEN in Nagios XI. But for bandwidth we are getting the error. Could you please help us on this?
[root@vmaz-nagiosxi libexec]# ./check_ifoperstatus -H 10.18.180.1 -C **************** -k 1 -v 2 -p 161
OK: Interface GigabitEthernet0/0/0 (index 1) is up.
[root@vmaz-nagiosxi libexec]#
[root@vmaz-nagiosxi libexec]#
[root@vmaz-nagiosxi libexec]# ./check_rrdtraf -f /var/lib/mrtg/10.18.180.1_1.rrd -w 1.60,1.60 -c 1.90,1.90 -l M
/var/lib/mrtg/10.18.180.1_1.rrd does not exist.
[root@vmaz-nagiosxi libexec]#
We also tried removing the service and reconfiguring it, still no luck.
Please suggest!!
Thanks in advance!!
Re: .rrd does not exist
Posted: Mon Jan 11, 2021 4:48 pm
by benjaminsmith
Hi
@kalyanpabolu,
It can take a few minutes to generate the graphs. If the issue persists, please post the output to the following commands to the thread.
Code: Select all
ls -l /var/lib/mrtg
ls -l /var/lib/mrtg/10.18.180.1_1.rrd
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
If you have 1000+ cfg files, you may need to increase the open file limits.
Nagios XI - ERROR: unable to open include file: /etc/mrtg/conf.d/xxxxxxx.cfg
Benjamin
Re: .rrd does not exist
Posted: Tue Jan 12, 2021 12:22 am
by kalyanpabolu
Hello,
Thanks for your reply!!
The service is still giving the same error. Its more than a day now.
The open file limit is already set to a higher value.
# End of file
* hard nofile 10000
* soft nofile 10000
root hard nofile 10000
root soft nofile 10000
PFA the output of the commands given by you.
Re: .rrd does not exist
Posted: Tue Jan 12, 2021 4:37 pm
by benjaminsmith
Hi,
Thank you for the log files. Some of the rrd files in that output do not have the correct permissions settings. Please run through the following commands to correct the permission settings.
Code: Select all
chown apache:nagios /etc/mrtg -R
chmod 775 /etc/mrtg -R
chown apache:nagios /var/lib/mrtg -R
chmod 775 /var/lib/mrtg -R
Then follow the steps in the article below to increase the timeout and load_threshold on the server, and let me know if the problem is resolved. If not, please send me the system profile.
Nagios XI - Performance Graph Problems
Best Regards,
Benjamin
To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Re: .rrd does not exist
Posted: Thu Jan 14, 2021 4:24 am
by kalyanpabolu
Hello,
The issue is still not resolved. PFA the profile file for your reference.
Moderator's Note: The profile has been shared with the support team but has been removed from the public forum.
Re: .rrd does not exist
Posted: Thu Jan 14, 2021 6:22 pm
by ssax
Please edit this file:
Code: Select all
/usr/local/nagiosxi/html/config.inc.php
Change this:
To this:
I'm also seeing this:
Code: Select all
[Mon Jan 04 07:10:32.132544 2021] [proxy_fcgi:error] [pid 1821107:tid 140449272534784] (70007)The timeout specified has expired: [client 10.1.X.X:60556] AH01075: Error dispatching request to : (polling), referer: http://10.44.X.X/nagiosxi/includes/components/xicore/
Edit this file:
Change this code:
Code: Select all
#
# Redirect to local php-fpm (no mod_php in default configuration)
#
<IfModule !mod_php5.c>
<IfModule !mod_php7.c>
# Enable http authorization headers
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
<FilesMatch \.(php|phar)$>
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
</FilesMatch>
</IfModule>
</IfModule>
To this:
Code: Select all
#
# Redirect to local php-fpm (no mod_php in default configuration)
#
<IfModule !mod_php5.c>
<IfModule !mod_php7.c>
# Enable http authorization headers
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
Timeout 600
RequestReadTimeout header=600,minrate=50
RequestReadTimeout body=600,minrate=50
<Proxy "unix:/run/php-fpm/www.sock|fcgi://localhost">
ProxySet timeout=600
</Proxy>
<FilesMatch \.(php|phar)$>
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
</FilesMatch>
</IfModule>
</IfModule>
Then restart the services:
Code: Select all
systemctl restart httpd
systemctl restart php-fpm
Then validate. If it fails again attach a FRESH copy of you profile.
Re: .rrd does not exist
Posted: Tue Jan 19, 2021 4:10 am
by kalyanpabolu
Hello,
Issue is still not resolved. PFA the profile file.
Moderator's Note: The profile has been shared with the support team but has been removed from the public forum.
Re: .rrd does not exist
Posted: Tue Jan 19, 2021 6:31 pm
by ssax
You can try reverting that change (see the previous post for the original), make sure to restart apache after:
There are some bugs in the version of NDO3 you are running, please copy the attached ndo-master.zip file to the XI server and run the following as root against the zip file:
Code: Select all
unzip ndo-master.zip
cd ndo-master
./configure
make all
make install
systemctl restart nagios
[/s]
Then edit this file:
Code: Select all
/usr/local/nagios/etc/pnp/npcd.cfg
Change this:
To this:
Then edit this file:
Code: Select all
/usr/local/nagios/etc/pnp/process_perfdata.cfg
Change this:
To this:
Then restart npcd:
Then apply configuration, wait 15 minutes, and check if the graphs are being created.
If they are still not being created, please create a ticket for this and include a link back to this forum thread so we can get a remote session setup:
https://support.nagios.com/tickets/
Thank you!
Re: .rrd does not exist
Posted: Wed Jan 20, 2021 1:25 am
by kalyanpabolu
Hello,
Just to update you here.
We have recently upgraded Nagios XI to 5.7.5. There is one ticket we had raised for the Nagios XI slowness issue. Tom GRIEP is working on it. He already gave the ndo_master file there and we have performed the required steps. Below is the ticket number for your reference:
Monitoring Engine Event Queue not updating #568454
Could you please confirm with him once?
If still required to make the changes, we will do.
Thanks for you support!!
Re: .rrd does not exist
Posted: Wed Jan 20, 2021 5:13 pm
by ssax
I checked the ticket, ignore the ndo-master.zip change as you already did that from the ticket (I crossed them out in the previous post) but still follow the other steps in the last message.