No perfdata.log

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ss6396
Posts: 35
Joined: Wed Mar 19, 2014 11:26 am

No perfdata.log

Post by ss6396 »

We are having issues getting the performance graphs to populate so we set LOG_LEVEL = 1 in the process_perfdata.cfg, yet the perfdata.log is not being created/populated. This suggests to me there is something not running. Performance data is being received and the xml files are being populated but there are no corresponding rrd files in the perfdata directory. What do I need to look for? What causes the xml files to be processed into rrd files?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: No perfdata.log

Post by tgriep »

It look like the npcd daemon isn't running.
Run this to get the status

Code: Select all

service npcd status
If it says it is not running, start it by running

Code: Select all

service npcd start
One thin,g if it has been down for a long time, it will take a long time for the system to process the old data.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ss6396
Posts: 35
Joined: Wed Mar 19, 2014 11:26 am

Re: No perfdata.log

Post by ss6396 »

This is a new XI install so not many hosts or perfdata to process....but the npcd process is running and has been running since the install two days ago. Any other suggestions?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: No perfdata.log

Post by tgriep »

Can you run the following and post the output here?

Code: Select all

tail -100 /usr/local/nagios/var/perfdata.log
tail -100 /usr/local/nagios/var/npcd.log
Be sure to check out our Knowledgebase for helpful articles and solutions!
ss6396
Posts: 35
Joined: Wed Mar 19, 2014 11:26 am

Re: No perfdata.log

Post by ss6396 »

perfdata.log does not exist

npcd log is very sparse, here are the entire contents:
cat npcd.log
[06-17-2015 14:49:10] NPCD: npcd Daemon (0.4.14) started with PID=130153
[06-17-2015 14:49:10] NPCD: Please have a look at 'npcd -V' to get license information
[06-17-2015 14:49:10] NPCD: HINT: load_threshold is enabled - ('10.000000')

In other words, it looked like it started up when XI was installed but it's not doing anything...but again the npcd daemon is running:

ps -ef|grep npcd
ss6396 106906 105377 0 13:27 pts/0 00:00:00 grep npcd
nagios 130153 1 0 Jun17 ? 00:00:18 //opt/app/nagios/bin/npcd -f /
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: No perfdata.log

Post by lmiltchev »

perfdata.log does not exist
Open the "/usr/local/nagios/etc/pnp/process_perfdata.cfg" file in a text editor, set:

Code: Select all

LOG_LEVEL = 2
save, exit and restart npcd:

Code: Select all

service npcd restart
In a few minutes, check the perdata.log.

Also, I am not sure why npcd is in "/opt/app/nagios/bin/npcd"... It should be in "/usr/local/nagios/bin/npcd"...

Code: Select all

ps -ef|grep [n]pcd
nagios    1538     1  0 Jun15 ?        00:00:47 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
What have you changed on the system?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ss6396
Posts: 35
Joined: Wed Mar 19, 2014 11:26 am

Re: No perfdata.log

Post by ss6396 »

As to what has changed on the system, that is rather a long story and one of your colleagues has worked extensively with us to make the modifications to the install to work in our environment and install with our application installation tool. In our environment I do not have access to root and apparently one of the changes is the npcd was not configured as a service. I do have the rights to su to the nagios account, is it acceptable to simply kill the npcd daemon and restart it from the command line?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: No perfdata.log

Post by tgriep »

Let's see if the processing of Performance Data is enabled.
In the Nagios GUI, click Admin > Monitoring Engine Status
In the Monitoring Engine Process Dashlet, make sure Performance Data is enabled.
If not enable it and see if the performance data starts to process.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ss6396
Posts: 35
Joined: Wed Mar 19, 2014 11:26 am

Re: No perfdata.log

Post by ss6396 »

Monitoring engine is enabled. We were also able to stop and restart all nagios processes including the npcd deamon to get the LOG_LEVEL=1 setting enabled but nothing is getting logged. The entire contents of the npcd.log is:

[06-22-2015 10:35:45] NPCD: Caught Termination Signal - Hasta la vista... baby
[06-22-2015 10:37:26] NPCD: npcd Daemon (0.4.14) started with PID=117882
[06-22-2015 10:37:26] NPCD: Please have a look at 'npcd -V' to get license information
[06-22-2015 10:37:26] NPCD: HINT: load_threshold is enabled - ('10.000000')
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: No perfdata.log

Post by tgriep »

Could you post these files so we can review them?

Code: Select all

process_perfdata.cfg
nagios.cfg
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked