Page 4 of 4

Re: High CPU/Load on npcd

Posted: Fri Jun 19, 2015 12:58 pm
by tgriep
Could you run the following and post back the results?

Code: Select all

ps -ef | grep [p]erfdataproc
ll /usr/local/nagios/var/spool/
Can you upload these files here so we can review then?

Code: Select all

/usr/local/nagios/etc/pnp/npcd.cfg
/usr/local/nagios/etc/pnp/process_perfdata.cfg
/usr/local/nagios/etc/nagios.cfg
Or can you PM me your System Profile?
To send us your system profile
Click "Admin"
Under "System Config", click "System Profile"
Click the "Download Profile" button
Save the file and PM it back to me.

Re: High CPU/Load on npcd

Posted: Fri Jun 19, 2015 2:31 pm
by cambevis
I really feel like there's something wrong with maybe a newly yum'ed Perl library or Perl package that has caused npcd to halt while processing the files, hence the build up of spool files.

Re: High CPU/Load on npcd

Posted: Mon Jun 22, 2015 8:26 am
by tgriep
I didn't receive your system profile in your PM. Can you send it again or post the files here?

Re: High CPU/Load on npcd

Posted: Tue Jun 23, 2015 9:07 am
by tgriep
I received your PM.
Can you run the following and post the output here?

Code: Select all

ll /usr/local/nagios/share/perfdata
ls -al /usr/local/nagios/libexec/process_perfdata.pl
cat /etc/hosts
nslookup nagiosxi.nobrainer2.com

Re: High CPU/Load on npcd

Posted: Tue Jun 23, 2015 10:19 am
by cambevis
[root@nagiosxi ~]# ls -al /usr/local/nagios/libexec/process_perfdata.pl
-rwsr-xr-x 1 root nagios 32666 May 8 00:02 /usr/local/nagios/libexec/process_pe rfdata.pl
[root@nagiosxi ~]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost.localdomain localhost4 l ocalhost4.localdomain4 localhost nagiosxi
::1 localhost.localdomain localhost.localdomain localhost6 localhos t6.localdomain6 localhost nagiosxi
[root@nagiosxi ~]# nslookup nagiosxi.nobrainer2.com
Server: 192.168.1.206
Address: 192.168.1.206#53

** server can't find nagiosxi.nobrainer2.com: NXDOMAIN

Re: High CPU/Load on npcd

Posted: Tue Jun 23, 2015 10:25 am
by cambevis
[root@nagiosxi ~]# ls -al /usr/local/nagios/libexec/process_perfdata.pl
-rwsr-xr-x 1 root nagios 32666 May 8 00:02 /usr/local/nagios/libexec/process_pe rfdata.pl
[root@nagiosxi ~]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost.localdomain localhost4 l ocalhost4.localdomain4 localhost nagiosxi
::1 localhost.localdomain localhost.localdomain localhost6 localhos t6.localdomain6 localhost nagiosxi
[root@nagiosxi ~]# nslookup nagiosxi.nobrainer2.com
Server: 192.168.1.206
Address: 192.168.1.206#53

** server can't find nagiosxi.nobrainer2.com: NXDOMAIN

Re: High CPU/Load on npcd

Posted: Tue Jun 23, 2015 12:30 pm
by tgriep
Lets fix the permissions on this file by running the following.

Code: Select all

chown nagios.nagios /usr/local/nagios/libexec/process_perfdata.pl
Edit your /etc/hosts file and change it to the following. Replace XXX.XXX.XXX.XXX with your systems IP address.

Code: Select all

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
XXX.XXX.XXX.XXX nagiosxi
Delete all of the unprocessed performance data files by running the following.

Code: Select all

rm -fr /usr/local/nagios/var/spool/perfdata/*
Lets increase the npcd log level. Edit the npcd.cfg file and change the following line.
log_level = 0
to
log_level = -1
start the npcd process and let it run for a while and email in the npcd.log file. It will be quite large and you may need to zip it.

Keep an eye on this folder to see if the performance data files are getting processed.
/usr/local/nagios/var/spool/perfdata