Perfdata folder filling, yet is processing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Perfdata folder filling, yet is processing

Post by BanditBBS »

Box293 wrote:I've run out of ideas.
LOL, me too, that's why I posted in the first place! Its just very weird since some files are being removed but all perfdata seems to be getting processed.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Perfdata folder filling, yet is processing

Post by Box293 »

PM the log files and I'll have a look at them.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Perfdata folder filling, yet is processing

Post by BanditBBS »

Box293 wrote:PM the log files and I'll have a look at them.
I'll do that in a bit. The permissions on npcd.log weren't right and it wasn't being updated. I am going to remove all these old perf data files so we can say "from this time on"
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Perfdata folder filling, yet is processing

Post by lmiltchev »

Did you PM Troy the log files? Are you still having an issue with perfdata folder filling up?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Perfdata folder filling, yet is processing

Post by BanditBBS »

lmiltchev wrote:Did you PM Troy the log files? Are you still having an issue with perfdata folder filling up?
I'm about to PM them now. Yes I am still having the issue andseeing this in the log over and over:

Code: Select all

[09-03-2014 10:40:40] NPCD: File '1409694688.perfdata.service-PID-2783' is an already in process PNP file. Leaving it untouched.
Looks like the process is grabbing and processing all the files but for some reason the process is not finishing on most of the files and therefore not deleting them.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Perfdata folder filling, yet is processing

Post by slansing »

Hmm, you may want to bump out your timeout value in:

Code: Select all

/usr/local/nagios/etc/pnp/process_perfdata.cfg
If it is the default, I'd move it up to 30 seconds. In the past, I know a user had removed his RRD files and let them regenerate to fix the issue, I don't think it has any negative impact in most cases, but you may be missing some data points thus making your averages display at a lower resolution via the graphs. Of course, removing the RRD files is a bit rough, especially with a lot of valuable historical perf data.

EDIT: Whoa, didn't know it was at 120 already.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Perfdata folder filling, yet is processing

Post by BanditBBS »

Timeout is already 120 :o
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Perfdata folder filling, yet is processing

Post by Box293 »

I noticed the following warning in perfdata.log:

Code: Select all

RRDs Perl Modules are not installed. Falling back to rrdtool system call.
Try installing the module to see if it helps:

Code: Select all

yum install rrdtool-perl
Timeout was my other suggestion however it appears that has been covered.

In nagios.cfg, what are the settings for:

Code: Select all

service_perfdata_file_mode
service_perfdata_file_processing_command
host_perfdata_file_mode
host_perfdata_file_processing_command
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Perfdata folder filling, yet is processing

Post by BanditBBS »

OMG - This day has just sucked!

Anyway, I can't get yum to function on this server, it gets to "Updating Red Hat repositories" and just freezes there for ever....bah

As for the other question:

Code: Select all

service_perfdata_file_mode=a
service_perfdata_file_processing_command=process-service-perfdata-file-bulk
host_perfdata_file_mode=a
host_perfdata_file_processing_command=process-host-perfdata-file-bulk
Those commands are here:

Code: Select all

define command {
       command_name                             process-host-perfdata-file-bulk
       command_line                             /bin/mv /var/nagiosramdisk/host-perfdata /var/nagiosramdisk/spool/xidpe/$TIMET$.perfdata.host
}
define command {
       command_name                             process-service-perfdata-file-bulk
       command_line                             /bin/mv /var/nagiosramdisk/service-perfdata /var/nagiosramdisk/spool/xidpe/$TIMET$.perfdata.service
}
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Perfdata folder filling, yet is processing

Post by lmiltchev »

These commands look fine. Can you run the following commands and show us the output?

Code: Select all

ls /var/nagiosramdisk/spool/xidpe | wc -l
ls /var/nagiosramdisk/spool/perfdata/ | wc -l
ls /var/nagiosramdisk/spool/checkresults/ | wc -l
which rrdtool
rrdtool --version
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked