Page 1 of 1

No new perfdata in graphs

Posted: Mon Jul 17, 2017 2:48 pm
by jvestrum
Our /var/nagiosramdisk filled up a couple weeks ago. I recreated the ramdisk this morning with more space and migrated the contents over, however none of our host/service graphs are getting updated. They still have the old data if I set the span to 30 days but nothing from today. Npcd is running as is the /usr/local/nagiosxi/cron/perfdataproc.php cron job. The perfdataproc.log is filled with lines like these:

Code: Select all

DONE. Processed 0 files.
Outbound data DISABLED Mon, 17 Jul 2017 14:35:05 -0500
Outbound data DISABLED Mon, 17 Jul 2017 14:36:05 -0500

DONE. Processed 0 files.
Outbound data DISABLED Mon, 17 Jul 2017 14:37:03 -0500

DONE. Processed 0 files.

DONE. Processed 0 files.
Outbound data DISABLED Mon, 17 Jul 2017 14:38:04 -0500
Outbound data DISABLED Mon, 17 Jul 2017 14:39:04 -0500

DONE. Processed 0 files.
It's always "Processed 0 files". /var/nagiosramdisk/host-perfdata and service-perfdata slowly grow, then go back down to zero every minute, so it seems the data is being processed, but the graphs do not update.

Running the latest XI 5.4.7 and have restarted all the services. Let me know what else would help troubleshoot this.

Re: No new perfdata in graphs

Posted: Mon Jul 17, 2017 4:12 pm
by jvestrum
I think the problem is in /usr/local/nagiosxi/html/config.inc.php and /usr/local/nagiosxi/var/xi-sys.cfg. Both of these had the location of xidpe_dir and perfdata set to the default /usr/local/nagios/var/spool. I changed them to point to /var/nagiosramdisk/spool and perfdataproc.php is chewing on the data right now. This will take a while, once it's done I'll see if the graphs are fixed.

Re: No new perfdata in graphs

Posted: Mon Jul 17, 2017 4:22 pm
by ssax
Please run through this KB article and see if you can identify the problem:

https://support.nagios.com/kb/article/n ... blems.html

Here is the architecture overview so that you can familiarize yourself with it:

https://support.nagios.com/kb/article/n ... cture.html


Please attach these files so that we can review them for any mistakes:

Code: Select all

/etc/init.d/nagios
/etc/sysconfig/nagios
/usr/local/nagios/etc/nagios.cfg
/usr/local/nrdp/server/config.inc.php
/usr/local/nagiosxi/html/config.inc.php
/usr/local/nagios/etc/pnp/npcd.cfg
/usr/local/nagiosmobile/include.inc.php
/usr/local/nagios/etc/commands.cfg
Then send the output of these commands:

Code: Select all

chage -l nagios
service npcd status
top -n3
cat /etc/sudoers
tail /usr/local/nagios/var/npcd.log /usr/local/nagios/var/perfdata.log /usr/local/nagiosxi/var/process_perfdata.pl

Re: No new perfdata in graphs

Posted: Mon Jul 17, 2017 4:48 pm
by jvestrum
Thanks for the pointers! After fixing the paths in those config files the graphs are working again.

Re: No new perfdata in graphs

Posted: Tue Jul 18, 2017 10:54 am
by bolson
May we go ahead and close this thread?

Re: No new perfdata in graphs

Posted: Tue Jul 18, 2017 11:04 am
by jvestrum
Yes, go ahead and close it. Thanks.

Re: No new perfdata in graphs

Posted: Tue Jul 18, 2017 11:49 am
by bolson
Closing this topic as resolved. Thank you!