High CPU/Load on npcd

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: High CPU/Load on npcd

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
cambevis
Posts: 25
Joined: Wed Nov 06, 2013 10:21 am

Re: High CPU/Load on npcd

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: High CPU/Load on npcd

Post by tgriep »

I didn't receive your system profile in your PM. Can you send it again or post the files here?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: High CPU/Load on npcd

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
cambevis
Posts: 25
Joined: Wed Nov 06, 2013 10:21 am

Re: High CPU/Load on npcd

Post 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
cambevis
Posts: 25
Joined: Wed Nov 06, 2013 10:21 am

Re: High CPU/Load on npcd

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: High CPU/Load on npcd

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked