graphing has stopped

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dxf1
Posts: 57
Joined: Mon Dec 07, 2009 5:16 am

Re: graphing has stopped

Post by dxf1 »

Hi the pnp service does not exist but the process was running, I have enabled the log and onrestarting the process I found that the pid file was owned by root ??, Chowned to nagios and restarted the process
nagios 7964 1 0 13:50 ? 00:00:00 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg

The data file now seems to be processed

[03-19-2010 14:03:38] NPCD: No more files to process... waiting for 15 seconds
[03-19-2010 14:03:53] NPCD: Found 4 files in /usr/local/nagios/var/spool/perfdata/
[03-19-2010 14:03:53] NPCD: ThreadCounter 0/5 File is .
[03-19-2010 14:03:53] NPCD: ThreadCounter 0/5 File is ..
[03-19-2010 14:03:53] NPCD: ThreadCounter 0/5 File is host-perfdata.1269007425
[03-19-2010 14:03:53] NPCD: Regular File: host-perfdata.1269007425
[03-19-2010 14:03:53] NPCD: A thread was startet on thread_counter = 0
[03-19-2010 14:03:53] NPCD: ThreadCounter 1/5 File is service-perfdata.1269007425
[03-19-2010 14:03:53] NPCD: Regular File: service-perfdata.1269007425
[03-19-2010 14:03:53] NPCD: A thread was startet on thread_counter = 1
[03-19-2010 14:03:53] NPCD: Have to wait: Filecounter = 2 - thread_counter = 2
[03-19-2010 14:03:53] NPCD: Processing file host-perfdata.1269007425 with ID -1208136816 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -b /usr/local/nagios/var/spool/perfdata//host-perfdata.1269007425
[03-19-2010 14:03:53] NPCD: Processing file 'host-perfdata.1269007425'
[03-19-2010 14:03:53] NPCD: Processing file service-perfdata.1269007425 with ID -1218626672 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -b /usr/local/nagios/var/spool/perfdata//service-perfdata.1269007425
[03-19-2010 14:03:53] NPCD: Processing file 'service-perfdata.1269007425'
[03-19-2010 14:03:55] NPCD: No more files to process... waiting for 15 seconds
[03-19-2010 14:04:10] NPCD: Found 4 files in /usr/local/nagios/var/spool/perfdata/
[03-19-2010 14:04:10] NPCD: ThreadCounter 0/5 File is .
[03-19-2010 14:04:10] NPCD: ThreadCounter 0/5 File is ..
[03-19-2010 14:04:10] NPCD: ThreadCounter 0/5 File is host-perfdata.1269007440
[03-19-2010 14:04:10] NPCD: Regular File: host-perfdata.1269007440
[03-19-2010 14:04:10] NPCD: A thread was startet on thread_counter = 0
[03-19-2010 14:04:10] NPCD: ThreadCounter 1/5 File is service-perfdata.1269007440
[03-19-2010 14:04:10] NPCD: Regular File: service-perfdata.1269007440
[03-19-2010 14:04:10] NPCD: A thread was startet on thread_counter = 1
[03-19-2010 14:04:10] NPCD: Have to wait: Filecounter = 2 - thread_counter = 2
[03-19-2010 14:04:10] NPCD: Processing file host-perfdata.1269007440 with ID -1208136816 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -b /usr/local/nagios/var/spool/perfdata//host-perfdata.1269007440
[03-19-2010 14:04:10] NPCD: Processing file 'host-perfdata.1269007440'
[03-19-2010 14:04:10] NPCD: Processing file service-perfdata.1269007440 with ID -1218626672 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -b /usr/local/nagios/var/spool/perfdata//service-perfdata.1269007440
[03-19-2010 14:04:10] NPCD: Processing file 'service-perfdata.1269007440'
[03-19-2010 14:04:14] NPCD: No more files to process... waiting for 15 seconds
[03-19-2010 14:04:29] NPCD: Found 4 files in /usr/local/nagios/var/spool/perfdata/
[03-19-2010 14:04:29] NPCD: ThreadCounter 0/5 File is .
[03-19-2010 14:04:29] NPCD: ThreadCounter 0/5 File is ..
[03-19-2010 14:04:29] NPCD: ThreadCounter 0/5 File is host-perfdata.1269007455
[03-19-2010 14:04:29] NPCD: Regular File: host-perfdata.1269007455
[03-19-2010 14:04:29] NPCD: A thread was startet on thread_counter = 0
[03-19-2010 14:04:29] NPCD: ThreadCounter 1/5 File is service-perfdata.1269007455
[03-19-2010 14:04:29] NPCD: Regular File: service-perfdata.1269007455
[03-19-2010 14:04:29] NPCD: A thread was startet on thread_counter = 1
[03-19-2010 14:04:29] NPCD: Have to wait: Filecounter = 2 - thread_counter = 2
[03-19-2010 14:04:29] NPCD: Processing file host-perfdata.1269007455 with ID -1208136816 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -b /usr/local/nagios/var/spool/perfdata//host-perfdata.1269007455
[03-19-2010 14:04:29] NPCD: Processing file 'host-perfdata.1269007455'
[03-19-2010 14:04:29] NPCD: Processing file service-perfdata.1269007455 with ID -1218626672 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -b /usr/local/nagios/var/spool/perfdata//service-perfdata.1269007455
[03-19-2010 14:04:29] NPCD: Processing file 'service-perfdata.1269007455'
[03-19-2010 14:04:31] NPCD: No more files to process... waiting for 15 seconds
[03-19-2010 14:04:46] NPCD: Found 6 files in /usr/local/nagios/var/spool/perfdata/
[03-19-2010 14:04:46] NPCD: ThreadCounter 0/5 File is .
[03-19-2010 14:04:46] NPCD: ThreadCounter 0/5 File is ..
[03-19-2010 14:04:46] NPCD: ThreadCounter 0/5 File is host-perfdata.1269007470
[03-19-2010 14:04:46] NPCD: Regular File: host-perfdata.1269007470
[03-19-2010 14:04:46] NPCD: A thread was startet on thread_counter = 0
[03-19-2010 14:04:46] NPCD: ThreadCounter 1/5 File is host-perfdata.1269007485
[03-19-2010 14:04:46] NPCD: Regular File: host-perfdata.1269007485
[03-19-2010 14:04:46] NPCD: A thread was startet on thread_counter = 1
[03-19-2010 14:04:46] NPCD: ThreadCounter 2/5 File is service-perfdata.1269007470
[03-19-2010 14:04:46] NPCD: Regular File: service-perfdata.1269007470
[03-19-2010 14:04:46] NPCD: A thread was startet on thread_counter = 2
[03-19-2010 14:04:46] NPCD: ThreadCounter 3/5 File is service-perfdata.1269007485
[03-19-2010 14:04:46] NPCD: Regular File: service-perfdata.1269007485
[03-19-2010 14:04:46] NPCD: A thread was startet on thread_counter = 3
[03-19-2010 14:04:46] NPCD: Have to wait: Filecounter = 4 - thread_counter = 4
[03-19-2010 14:04:46] NPCD: Processing file host-perfdata.1269007470 with ID -1208136816 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -b /usr/local/nagios/var/spool/perfdata//host-perfdata.1269007470
[03-19-2010 14:04:46] NPCD: Processing file 'host-perfdata.1269007470'
[03-19-2010 14:04:46] NPCD: Processing file host-perfdata.1269007485 with ID -1218626672 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -b /usr/local/nagios/var/spool/perfdata//host-perfdata.1269007485
[03-19-2010 14:04:46] NPCD: Processing file 'host-perfdata.1269007485'
[03-19-2010 14:04:47] NPCD: Processing file service-perfdata.1269007470 with ID -1229116528 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -b /usr/local/nagios/var/spool/perfdata//service-perfdata.1269007470
[03-19-2010 14:04:47] NPCD: Processing file 'service-perfdata.1269007470'
[03-19-2010 14:04:47] NPCD: Processing file service-perfdata.1269007485 with ID -1239606384 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -b /usr/local/nagios/var/spool/perfdata//service-perfdata.1269007485
[03-19-2010 14:04:47] NPCD: Processing file 'service-perfdata.1269007485'
[03-19-2010 14:04:49] NPCD: No more files to process... waiting for 15 seconds
[03-19-2010 14:05:04] NPCD: Found 4 files in /usr/local/nagios/var/spool/perfdata/
[03-19-2010 14:05:04] NPCD: ThreadCounter 0/5 File is .
[03-19-2010 14:05:04] NPCD: ThreadCounter 0/5 File is ..
[03-19-2010 14:05:04] NPCD: ThreadCounter 0/5 File is host-perfdata.1269007500
[03-19-2010 14:05:04] NPCD: Regular File: host-perfdata.1269007500
[03-19-2010 14:05:04] NPCD: A thread was startet on thread_counter = 0
[03-19-2010 14:05:04] NPCD: ThreadCounter 1/5 File is service-perfdata.1269007500
[03-19-2010 14:05:04] NPCD: Regular File: service-perfdata.1269007500
[03-19-2010 14:05:04] NPCD: A thread was startet on thread_counter = 1
[03-19-2010 14:05:04] NPCD: Have to wait: Filecounter = 2 - thread_counter = 2
[03-19-2010 14:05:04] NPCD: Processing file host-perfdata.1269007500 with ID -1208136816 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -b /usr/local/nagios/var/spool/perfdata//host-perfdata.1269007500
[03-19-2010 14:05:04] NPCD: Processing file 'host-perfdata.1269007500'
[03-19-2010 14:05:04] NPCD: Processing file service-perfdata.1269007500 with ID -1218626672 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -b /usr/local/nagios/var/spool/perfdata//service-perfdata.1269007500
[03-19-2010 14:05:04] NPCD: Processing file 'service-perfdata.1269007500'
[03-19-2010 14:05:06] NPCD: No more files to process... waiting for 15 seconds

The graphs are still not appearing just the title i.e., Datasource: user

Regards, Dave
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: graphing has stopped

Post by mmestnik »

Dave, thank you for the report. I've made a bug report to track this: http://tracker.nagios.com/view.php?id=18
dxf1
Posts: 57
Joined: Mon Dec 07, 2009 5:16 am

Re: graphing has stopped

Post by dxf1 »

Hi the pnp does not have a service associated with it.

The pnp log shows the data being processed but graphs are still not being displayed

Regards, Dave
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: graphing has stopped

Post by mmestnik »

See Admin's post, http://support.nagios.com/forum/viewtop ... t=169#p683

There sure is a PNP service, what does "chkconfig --list pnp" show?

Now that the service is running for you, try resetting your credentials again.
dxf1
Posts: 57
Joined: Mon Dec 07, 2009 5:16 am

Re: graphing has stopped

Post by dxf1 »

Hi The services are as follows,

ntpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
oddjobd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
pcscd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
portmap 0:off 1:off 2:off 3:on 4:on 5:on 6:off
postgresql 0:off 1:off 2:off 3:off 4:off 5:off 6:off
psacct 0:off 1:off 2:off 3:off 4:off 5:off 6:off
rawdevices 0:off 1:off 2:off 3:on 4:on 5:on 6:off
rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off

As you can see there is no pnp service, how do I recreate the service please.

I have reset the nagiosadmin credentials, this does no appear to have had any effect, still no graphs

Cheers, Dave
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: graphing has stopped

Post by mmestnik »

Using the chkconfig command.

Code: Select all

chkconfig --add npcd
dxf1
Posts: 57
Joined: Mon Dec 07, 2009 5:16 am

Re: graphing has stopped

Post by dxf1 »

Hi,

Ran chkconfig --add npcd
got the following error
service npcd does not support chkconfig

Even with pnp running as follows /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
The graphs are not produced

The perf files are arriving as below
/usr/local/nagios/var/spool/checkresults
You have new mail in /var/spool/mail/nagios
-bash-3.2$ ls -l
total 36
-rw------- 1 nagios nagios 398 Mar 23 08:44 cbM9QrU
-rw------- 1 nagios nagios 0 Mar 23 08:44 cbM9QrU.ok
-rw------- 1 nagios nagios 406 Mar 23 08:44 cCfVHOM
-rw------- 1 nagios nagios 0 Mar 23 08:44 cCfVHOM.ok
-rw------- 1 nagios nagios 398 Mar 23 08:44 chWdZ0s
-rw------- 1 nagios nagios 0 Mar 23 08:44 chWdZ0s.ok
-rw------- 1 nagios nagios 485 Mar 23 08:44 cK5rsQk
-rw------- 1 nagios nagios 0 Mar 23 08:44 cK5rsQk.ok
-rw------- 1 nagios nagios 469 Mar 23 08:44 ckRWPTa
-rw------- 1 nagios nagios 0 Mar 23 08:44 ckRWPTa.ok
-rw------- 1 nagios nagios 485 Mar 23 08:44 ckVpOXD
-rw------- 1 nagios nagios 0 Mar 23 08:44 ckVpOXD.ok
-rw------- 1 nagios nagios 364 Mar 23 08:44 cnbOqXJ
-rw------- 1 nagios nagios 0 Mar 23 08:44 cnbOqXJ.ok
-rw------- 1 nagios nagios 388 Mar 23 08:44 cWtChy2
-rw------- 1 nagios nagios 0 Mar 23 08:44 cWtChy2.ok
-rw------- 1 nagios nagios 380 Mar 23 08:44 cyVPtSD
-rw------- 1 nagios nagios 0 Mar 23 08:44 cyVPtSD.ok

after a few seconds the data is cleared/ processed how can I follow the path of the data processing to produce the RRD and the graphs
Thanks Dave
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: graphing has stopped

Post by mmestnik »

Well at least it didn't say "I can't find this service."
Run:

Code: Select all

/etc/init.d/npcd stop
/etc/init.d/npcd stop
/etc/init.d/npcd stop
/etc/init.d/npcd start
No point in being lazy about making sure it's stopped, you can optionally double check with any Unix foo you may posses.

Then add the System V(5) symbolic links for this service. There is no documentation as this is almost never done any more by hand at least. Basically you:

Code: Select all

ln -s /etc/init.d/npcd /etc/rc2.d/S99npcd
ln -s /etc/init.d/npcd /etc/rc3.d/S99npcd
ln -s /etc/init.d/npcd /etc/rc4.d/S99npcd
ln -s /etc/init.d/npcd /etc/rc5.d/S99npcd
ln -s /etc/init.d/npcd /etc/rc0.d/K00npcd
ln -s /etc/init.d/npcd /etc/rc1.d/K00npcd
ln -s /etc/init.d/npcd /etc/rc6.d/K00npcd
This ensures the daemon is started almost last and stopped almost first. 2, 3, 4, 5 are mapped to run levels when the system is up and 0, 1, 6 are for when this daemon should be stopped.
0 halts the box
6 reboots
1 is special maintenance mode where you can reformat file systems and do other software level tasks you can't do after a halt.

The others are subject to the users wish, 2 is usually non graphical terminal access only 3 might be the default and is graphical. The others are for you to use as you see fit.
dxf1
Posts: 57
Joined: Mon Dec 07, 2009 5:16 am

Re: graphing has stopped

Post by dxf1 »

Hi The service is now created but the graphiing still is not being produced, when you click on graphs you just get the titles for the graphs but no atcual content, please give some incite into the process that creates the rrd files and the graphs so that I can work through it.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: graphing has stopped

Post by mmestnik »

dxf1,
Now that we got the service working and this is growing to 3 pages long, perhaps it's time for a new topic about the "next" problem you faced. However it occurs to me that something went wrong during the installation of NagiosXI, perhaps correcting that problem and then re-installing XI would be more fruitful then attempting to compensate for this past failure.

All I can say about the graphing is that we are using PNP http://docs.pnp4nagios.org/pnp-0.6/start