I am currently running a Nagios XI test box while we wait for our license to be purchased. The server locked up as the file system run out of inodes.
Upon investigation, I found that /usr/local/nagios/var/spool/xidpe/ had over 200,000 files.
I cleared out the directory to restore service, however, it looks like it is filling up again. Example of these files are below:
Code: Select all
-rw-rw-r-- 1 nagios nagios 245 Mar 9 13:25 1331270724.perfdata.host
-rw-rw-r-- 1 nagios nagios 0 Mar 9 13:25 1331270724.perfdata.service
-rw-rw-r-- 1 nagios nagios 0 Mar 9 13:25 1331270739.perfdata.host
-rw-rw-r-- 1 nagios nagios 0 Mar 9 13:25 1331270739.perfdata.service
-rw-rw-r-- 1 nagios nagios 241 Mar 9 13:25 1331270754.perfdata.host
-rw-rw-r-- 1 nagios nagios 0 Mar 9 13:25 1331270754.perfdata.service
After some digging around, I found the code that puts the files there.
Code: Select all
[root@nagiostest xidpe]# grep -rn xidpe /usr/local/nagios/
/usr/local/nagios/var/objects.cache:703: command_line /bin/mv /usr/local/nagios/var/host-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.host
/usr/local/nagios/var/objects.cache:718: command_line /bin/mv /usr/local/nagios/var/service-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.service
Many Thanks
Kyle