Page 2 of 4

Re: Nagios Output Not Graphing

Posted: Sun Nov 22, 2015 9:55 pm
by braindope
No the debugging is not yet enable when i start my npcd

Re: Nagios Output Not Graphing

Posted: Sun Nov 22, 2015 10:07 pm
by Box293
Can you please enable it, restart npcd and let us know the output.

Re: Nagios Output Not Graphing

Posted: Mon Nov 23, 2015 12:21 am
by braindope
Hi Box,

Is this your requested output?
Starting npcd:DEBUG: Config File = /usr/local/pnp4nagios/etc/npcd.cfg
CONFIG_OPT_LOGTYPE = syslog
CONFIG_OPT_LOGFILE = /usr/local/pnp4nagios/var/npcd.log
CONFIG_OPT_LOGFILESIZE = 10485760
CONFIG_OPT_LOGLEVEL = -1
CONFIG_OPT_SCANDIR = /usr/local/pnp4nagios/var/spool
CONFIG_OPT_RUNCMD = /usr/local/pnp4nagios/libexec/process_perfdata.pl
CONFIG_OPT_RUNCMD_ARG = --bulk
CONFIG_OPT_MAXTHREADS = 5
CONFIG_OPT_LOAD = 0.0
CONFIG_OPT_USER = nagios
CONFIG_OPT_GROUP = nagios
CONFIG_OPT_PIDFILE = /var/run/npcd.pid
CONFIG_OPT_SLEEPTIME = 15
CONFIG_OPT_IDENTMYSELF = 1
---------------------------
DEBUG: load_threshold is disabled - ('0.000000')
done.

Re: Nagios Output Not Graphing

Posted: Mon Nov 23, 2015 12:49 am
by Box293
Is that all that is logged in /usr/local/pnp4nagios/var/npcd.log ?

Re: Nagios Output Not Graphing

Posted: Mon Nov 23, 2015 12:58 am
by braindope
I don't have npcd.log :(

how can i invoke to create one?

Re: Nagios Output Not Graphing

Posted: Mon Nov 23, 2015 12:48 pm
by rkennedy
Can you please post the output of the following commands -

Code: Select all

service npcd status
service crond status
ls -l /usr/local/pnp4nagios/var/

Re: Nagios Output Not Graphing

Posted: Mon Nov 23, 2015 7:52 pm
by braindope
Hi rkennedy,

# service npcd status
npcd (pid 21043) is running...
# ls -l /usr/local/pnp4nagios/var/
total 6094880
-rw-rw-r-- 1 nagios nagios 887510826 Nov 24 08:47 host-perfdata
drwxrwxrwx 2 nagios nagios 4096 Jul 8 2014 kohana
drwxr-xr-x 124 nagios nagios 4096 Oct 5 15:33 perfdata
-rw-rw-r-- 1 nagios nagios 5149597 Oct 22 13:40 perfdata.log
-rw-rw-r-- 1 nagios nagios 5342356654 Nov 24 08:48 service-perfdata
drwxrwxr-x 2 nagios nagios 4096 Jul 8 2014 spool
drwxr-xr-x 2 nagios nagios 4096 Oct 22 13:41 stats

Re: Nagios Output Not Graphing

Posted: Tue Nov 24, 2015 11:47 am
by tgriep
Lets change the npcd.cfg file and enable logging so we can see what is going on.
Can you edit the npcd.cfg file
Comment out this line

Code: Select all

log_type = syslog
un-comment this line

Code: Select all

#log_type = file
Then change this line from

Code: Select all

log_level = 0
to

Code: Select all

log_level = 1
Save the file and restart npcd by running

Code: Select all

service npcd restart
Let the system run for 10 minutes and then run this tail command on the npcd.log file and post the output here.

Code: Select all

tail -200 /usr/local/pnp4nagios/var/npcd.log

Re: Nagios Output Not Graphing

Posted: Thu Nov 26, 2015 12:10 am
by braindope
Hi tgriep,

please see the attached file. Thank you

Re: Nagios Output Not Graphing

Posted: Mon Nov 30, 2015 2:45 pm
by rkennedy
The logs don't lead to much except -

Code: Select all

NPCD: No more files to process... waiting for 15 seconds
Are your graphs working for other services or is it only this one in question?