Page 1 of 1
perfdata directory size increases rapidly
Posted: Wed Aug 01, 2018 9:45 am
by sandeepatil
We are facing issue with perfdata directory. Directory size increases automatically and causes to disk full issue.
Please share solution for the same.
Re: perfdata directory size increases rapidly
Posted: Wed Aug 01, 2018 1:48 pm
by lmiltchev
Are you talking about the
/usr/local/nagios/share/perfdata/ or some other directory?
How large is your Nagios XI instance (number of hosts/services)?
How much room do you have on the hard drive?
Is this a physical server or a VM? If this is a VM, you could resize it, by following our official documentation on the topic:
https://assets.nagios.com/downloads/nag ... M-Disk.pdf
Re: perfdata directory size increases rapidly
Posted: Thu Aug 02, 2018 12:47 am
by sandeepatil
perfdata location is "/usr/local/nagios/var/spool/perfdata"
Number of hosts/services: 1000/68000
This is a VM server.
Observed this issue facing ones in a week, currently data deleting manually.
Re: perfdata directory size increases rapidly
Posted: Thu Aug 02, 2018 8:54 am
by lmiltchev
If there are way too many files in "/usr/local/nagios/var/spool/perfdata", this means that npcd is not running and not processing these files.
It is possible that the load on the server is too high - higher than the load_threshold value, specified in the /usr/local/nagios/etc/pnp/npcd.cfg file (10.0 by default). I would recommend that you first find out what is causing the high load (if this is the case) and fix the issue. You can also increase the load_threshold's value to a higher number and restart npcd:
Note: The value of 10.0 is meant for 1 core CPU. You could use 20.0 for dual core, 40.0 - for quad core, etc. Make sure you have enough resources before increasing the value.
If you don't have way too many perfdata files in the "/usr/local/nagios/var/spool/perfdata" directory, ncpd *may* be able to *catch up*, and process the files. If however, you have thousands of files in there, you will have to delete/recreate the directory.
Example:
Code: Select all
cd /usr/local/nagios/var/spool
rm -rf perfdata
mkdir perfdata
chown nagios.nagios perfdata
chmod 755 perfdata
Only the "old" perfdata (the files that are currently in the "/usr/local/nagios/var/spool/perfdata" directory) will be lost.
For more troubleshooting steps, please review our "Nagios XI - Performance Graph Problems" KB article here:
https://support.nagios.com/kb/article/n ... ems-9.html
Hope this helps.
Re: perfdata directory size increases rapidly
Posted: Thu Aug 02, 2018 10:45 am
by sandeepatil
Surely this details help us.
Please share how to stop perfdata generation.
Re: perfdata directory size increases rapidly
Posted: Thu Aug 02, 2018 4:20 pm
by scottwilkerson
If you don't want to use performance data simply do the following
edit /usr/local/nagios/etc/nagios.cfg
change
to
save
restart nagios
Re: perfdata directory size increases rapidly
Posted: Tue Aug 07, 2018 8:36 am
by sandeepatil
We done change as you suggested, till now Nagios XI working fine.
You can close the thread.
If same issue facing again, we will create new thread.
Re: perfdata directory size increases rapidly
Posted: Tue Aug 07, 2018 8:59 am
by scottwilkerson
sandeepatil wrote:We done change as you suggested, till now Nagios XI working fine.
You can close the thread.
If same issue facing again, we will create new thread.
Great! Locking