perfdata directory size increases rapidly

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

perfdata directory size increases rapidly

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: perfdata directory size increases rapidly

Post 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?

Code: Select all

df -h
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
Be sure to check out our Knowledgebase for helpful articles and solutions!
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: perfdata directory size increases rapidly

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: perfdata directory size increases rapidly

Post 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:

Code: Select all

service npcd restart
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: perfdata directory size increases rapidly

Post by sandeepatil »

Surely this details help us.

Please share how to stop perfdata generation.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: perfdata directory size increases rapidly

Post by scottwilkerson »

If you don't want to use performance data simply do the following
edit /usr/local/nagios/etc/nagios.cfg
change

Code: Select all

process_performance_data=1
to

Code: Select all

process_performance_data=0
save
restart nagios

Code: Select all

service nagios restart
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: perfdata directory size increases rapidly

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: perfdata directory size increases rapidly

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked