Nagios Output Not Graphing

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

Re: Nagios Output Not Graphing

Post by braindope »

No the debugging is not yet enable when i start my npcd
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios Output Not Graphing

Post by Box293 »

Can you please enable it, restart npcd and let us know the output.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

Re: Nagios Output Not Graphing

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios Output Not Graphing

Post by Box293 »

Is that all that is logged in /usr/local/pnp4nagios/var/npcd.log ?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

Re: Nagios Output Not Graphing

Post by braindope »

I don't have npcd.log :(

how can i invoke to create one?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios Output Not Graphing

Post 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/
Former Nagios Employee
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

Re: Nagios Output Not Graphing

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

Re: Nagios Output Not Graphing

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

Re: Nagios Output Not Graphing

Post by braindope »

Hi tgriep,

please see the attached file. Thank you
Attachments
npcd logs.txt
(5.78 KiB) Downloaded 141 times
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios Output Not Graphing

Post 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?
Former Nagios Employee
Locked