We are facing issue with perfdata directory. Directory size increases automatically and causes to disk full issue.
Please share solution for the same.
perfdata directory size increases rapidly
-
sandeepatil
- Posts: 211
- Joined: Tue Dec 27, 2016 3:12 am
Re: perfdata directory size increases rapidly
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
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 -hhttps://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
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.
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
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:
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.
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 restartIf 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 perfdataFor 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
Surely this details help us.
Please share how to stop perfdata generation.
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
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
edit /usr/local/nagios/etc/nagios.cfg
change
Code: Select all
process_performance_data=1Code: Select all
process_performance_data=0restart nagios
Code: Select all
service nagios restart-
sandeepatil
- Posts: 211
- Joined: Tue Dec 27, 2016 3:12 am
Re: perfdata directory size increases rapidly
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.
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
Great! Lockingsandeepatil 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.