Page 2 of 4

Re: Your session has timed out.

Posted: Mon Sep 14, 2015 12:58 am
by ranjitw
Please find below requested outputs:

grep perfdata /usr/local/nagios/etc/pnp/process_perfdata.cfg# Config File for process_perfdata.pl
# $Id: process_perfdata.cfg-sample.in 520 2008-09-16 12:50:10Z pitchfork $
# process_perfdata.pl Timout
RRDPATH = /usr/local/nagios/share/perfdata
LOG_FILE = /usr/local/nagios/var/perfdata.log
You have new mail in /var/mail/root


ls -l /usr/local/nagios/var/total 3196
drwxrwxr-x 2 nagios nagios 4096 Sep 13 23:59 archives
-rw-r--r-- 1 nagios nagios 0 Sep 14 07:57 host-perfdata
-rw-r--r-- 1 nagios nagios 34 Sep 11 09:34 nagios.configtest
-rw-r--r-- 1 nagios nagios 6 Sep 11 09:34 nagios.lock
-rw-r--r-- 1 nagios nagios 449032 Sep 14 07:57 nagios.log
srwxr-xr-x 1 nagios nagios 0 Sep 8 16:35 ndo.sock
-rw-r--r-- 1 nagios nagios 5 Sep 8 16:35 ndo2db.lock
-rw-r--r-- 1 nagios nagios 0 Sep 11 09:34 ndomod.tmp
-rw-r--r-- 1 nagios nagios 2479384 Sep 11 08:00 npcd.log
-rw-r--r-- 1 nagios nagios 69378 Sep 11 09:34 objects.cache
-rw-r--r-- 1 nagios nagios 69378 Sep 11 09:34 objects.precache
-rw------- 1 nagios nagios 78600 Sep 14 07:34 retention.dat
drwxrwsr-x 2 nagios nagcmd 4096 Sep 11 09:34 rw
-rw-r--r-- 1 nagios nagios 1621 Sep 14 07:57 service-perfdata
drwxr-xr-x 5 nagios nagios 4096 Aug 4 12:04 spool
drwxr-xr-x 2 nagios nagios 4096 Sep 8 16:25 stats
-rw-rw-r-- 1 nagios nagios 78848 Sep 14 07:57 status.dat

Re: Your session has timed out.

Posted: Mon Sep 14, 2015 11:08 am
by tgriep
It could be that the log_level is set to silent so that is why the perfdata.log file is not in that folder.
If you want, you can check it by running the following.

Code: Select all

grep LOG_LEVEL /usr/local/nagios/etc/pnp/process_perfdata.cfg
Here are what the settings mean.

Code: Select all

Loglevel 0=silent 1=normal 2=debug
If it is set to slient, you can change that entry to 1 to enable normal logging.

Re: Your session has timed out.

Posted: Tue Sep 15, 2015 12:41 am
by ranjitw
Hi,

Currently the log_level is set to 0 I have now set the log_level to 1.

grep LOG_LEVEL /usr/local/nagios/etc/pnp/process_perfdata.cfg
LOG_LEVEL = 0

perfdata.log file is not yet created under below location. What kind of activity do I need to perform for getting it logged?

/usr/local/nagios/var/

Many thanks,
Regards,
Ranjit W

Re: Your session has timed out.

Posted: Tue Sep 15, 2015 1:37 am
by Box293
Try restarting npcd:

Code: Select all

service npcd restart
If that doesn't work you may have too many spooled performance data files to process, please run these commands on your Nagios XI host and send the output:

Code: Select all

ls -al /usr/local/nagios/var/spool/perfdata/ | wc -l

ls -al /usr/local/nagios/var/spool/xidpe/ | wc -l

Re: Your session has timed out.

Posted: Tue Sep 15, 2015 2:09 am
by ranjitw
Hi Box293 ,

I have restarted npcd service but still the perfdata.log file is not yet created under /usr/local/nagios/var/

Below is the output for commands:

ls -al /usr/local/nagios/var/spool/perfdata/ | wc -l
9248

ls -al /usr/local/nagios/var/spool/xidpe/ | wc -l
77111

Regards,
Ranjit W

Re: Your session has timed out.

Posted: Tue Sep 15, 2015 9:05 am
by tgriep
Can you run the following commands again and post the output so we can see if the number of files are different in those folders?
We want to check to see if they are decreasing as that will tell us that the performance data is getting processed.

Code: Select all

ls -al /usr/local/nagios/var/spool/perfdata/ | wc -l
ls -al /usr/local/nagios/var/spool/xidpe/ | wc -l
Can you run this command so we can see the npcd log entries?

Code: Select all

tail -50 /usr/local/nagios/var/npcd.log
The perfdata.log file is generated by the process_perfdata perl script that is run by the nagios process.
Can you post your nagios.cfg file so we can review it?

Re: Your session has timed out.

Posted: Tue Sep 15, 2015 11:34 pm
by ranjitw
Hi ,

I have run the below commands again and the output is as follows :

ls -al /usr/local/nagios/var/spool/perfdata/ | wc -l
9248

ls -al /usr/local/nagios/var/spool/xidpe/ | wc -l
87338

I am attaching the nagios.cfg file and tail -50 /usr/local/nagios/var/npcd.log outputs.

Regards,
Ranjit W

Re: Your session has timed out.

Posted: Wed Sep 16, 2015 1:22 am
by Box293
It looks like the spooled files are increasing. Let's delete the spooled files and see if that fixes the problem:

Code: Select all

cd /usr/local/nagios/var/spool/perfdata/
for f in *; do rm -f $f; done
Wait, this may take some time

Code: Select all

cd /usr/local/nagios/var/spool/xidpe/
for f in *; do rm -f $f; done
Wait, this may take some time

Re: Your session has timed out.

Posted: Mon Sep 21, 2015 12:40 am
by ranjitw
Hi Box293 ,

I have performed the activities mentioned below but still perfdata.log file is not yet created under /usr/local/nagios/var/

Regards,
Ranjit W

Re: Your session has timed out.

Posted: Mon Sep 21, 2015 11:46 am
by tgriep
Can you upload the following files? They are the config settings and the perl script that should create / log the performance entries to the log file.

Code: Select all

/usr/local/nagios/etc/pnp/process_perfdata.cfg
/usr/local/nagios/libexec/process_perfdata.pl