.rrd does not exist

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
kalyanpabolu
Posts: 246
Joined: Fri Jul 03, 2020 4:18 am

.rrd does not exist

Post 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!!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: .rrd does not exist

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
kalyanpabolu
Posts: 246
Joined: Fri Jul 03, 2020 4:18 am

Re: .rrd does not exist

Post 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.
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: .rrd does not exist

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
kalyanpabolu
Posts: 246
Joined: Fri Jul 03, 2020 4:18 am

Re: .rrd does not exist

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

Re: .rrd does not exist

Post by ssax »

Please edit this file:

Code: Select all

/usr/local/nagiosxi/html/config.inc.php
Change this:

Code: Select all

$cfg['use_https'] = true;
To this:

Code: Select all

$cfg['use_https'] = false;

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:

Code: Select all

/etc/httpd/conf.d/php.conf
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.
kalyanpabolu
Posts: 246
Joined: Fri Jul 03, 2020 4:18 am

Re: .rrd does not exist

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

Re: .rrd does not exist

Post by ssax »

You can try reverting that change (see the previous post for the original), make sure to restart apache after:

Code: Select all

systemctl restart httpd
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:

Code: Select all

#use_load_threshold = 0
To this:

Code: Select all

use_load_threshold = 0
Then edit this file:

Code: Select all

/usr/local/nagios/etc/pnp/process_perfdata.cfg
Change this:

Code: Select all

TIMEOUT = 30
To this:

Code: Select all

TIMEOUT = 40
Then restart npcd:

Code: Select all

systemctl 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!
You do not have the required permissions to view the files attached to this post.
kalyanpabolu
Posts: 246
Joined: Fri Jul 03, 2020 4:18 am

Re: .rrd does not exist

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

Re: .rrd does not exist

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