Page 1 of 1

nagiosramdisk filling up

Posted: Wed Dec 03, 2025 12:01 pm
by wneville
Hello,

Seemingly out of the blue, perfdata files stopped being removed from the nagiosramdisk after being processed, which leads to the ramdisk filling up and no new perfdata being graphed. I can clear the ramdisk by restarting the service, and am doing that via cron every 6 hours. I have checked permissions and they are identical to another server where perfdata is being properly spooled/removed. Anyone else run into a full ramdisk?

While perfdata files are not being removed, the perfdata graphs in XI continue to be updated while the ramdisk is not full. So files are being processed, just not removed (reaped?). How can I confirm the reaper is doing its job?

Re: nagiosramdisk filling up

Posted: Wed Dec 03, 2025 2:20 pm
by kfanselow
Hi wneville,

Well there are a couple of things that could be happening. Probably the best starting point would be to confirm that npcd is running:

Code: Select all

systemctl status npcd
Next make sure the nagios user account and passwd are not expired at the OS level. The password can be locked for the nagios user but the password and account cannot be allowed to expired (causes problems with cron):

Code: Select all

# chage  -l nagios 
Last password change                                    : Jun 23, 2025
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7

Then it's often good to run a database repair just to make sure there isn't corrupted data contributing to this and/or other problems:

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh  
You can also take a look at the npcd.log and perfdata.log files in /usr/local/nagios/var to see if there is anything that might help to isolate the issue.

Beyond that if you're not able to resolve the issue the best course of action might be to open a support case. With a support case the support team cat get the details of your specific system and configuration which might be useful to help you solve the problem.

Thanks and Good Luck !!

Re: nagiosramdisk filling up

Posted: Mon Dec 15, 2025 12:32 pm
by wneville
npcd is running and nagios user is not expired - i currently have a support case open but haven't had much luck identifying the issue so thought I would post here to see if anyone had resolved a similar issue.

seems like the issue is that files are not being removed, so the system must still think they are in use. trying to figure out why that is the case. However, lsof doesn't seem to list a huge heap of files