Nagios hangs while performing applying configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
disrael
Posts: 116
Joined: Tue Jun 19, 2012 3:16 pm

Nagios hangs while performing applying configuration

Post by disrael »

One of my coworkers is trying to get his forum account access to the customer section. Instead of doing a double post with the issue all over again, could we continue the issue here as this seems to be more of the offical way for customers to contact you?

Nagios hangs while performing applying configuration:
http://support.nagios.com/forum/viewtop ... f=6&t=7516

Kind Regards,

Doron
disrael
Posts: 116
Joined: Tue Jun 19, 2012 3:16 pm

Re: Nagios hangs while performing applying configuration

Post by disrael »

I recall someone telling me that ndoutils comes packaged with Nagios XI, is this accurate?

Also is it okay to run 1.4b9 instead of 1.5.x w/ nagios XI. We had issues getting 1.5.x to work in nagios 3.0, but we got 1.4b9 working with it. I heard in order to get 1.5.x to work in Nagios we might have to modify kernel paramaters. Modifying the kernel is something we are unable to do, due to corporate policies.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios hangs while performing applying configuration

Post by mguthrie »

Our installation scripts actually update the kernel parameters to meet the needs of most installations, so unless the installation is quite large you shouldn't need to make any additional modifications to the kernel parameters. We don't recommend downgrading ndoutils.
disrael
Posts: 116
Joined: Tue Jun 19, 2012 3:16 pm

Re: Nagios hangs while performing applying configuration

Post by disrael »

So does ndoutils not come standard w/ Nagios XI? I am a bit confused since I see the ndoutils binary and the init.d script.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios hangs while performing applying configuration

Post by mguthrie »

Lets try and keep all questions on this issue on this thread here. There's a duplicate in the general forum here:
http://support.nagios.com/forum/viewtop ... f=6&t=7516
as well as our ticketing system. Lets keep this issue here in the customer forum going forward, it should keep things less confusing for everyone.

Quoted from other thread:
Ok, lets back up a little bit and clarify a few things. Nagios XI ships with ndoutils, and does all of the setup for you. You should not have to make any modifications to that aspect at all in order for it to work.

Is this a freshly installed system?

Did you install this on a clean system? (Fresh install of CentOS or RHEL, no other previous uses for this machine?)
disrael
Posts: 116
Joined: Tue Jun 19, 2012 3:16 pm

Re: Nagios hangs while performing applying configuration

Post by disrael »

No problem, I understand, we posted here as this appears to have quicker resposne than the other one.

To answer your question, this is a fresh install of RHEL that we installed Nagios XI on. The install didn't go as smoothly (proxy settings) as I hoped, though this seems to be the only issue we faced.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios hangs while performing applying configuration

Post by mguthrie »

Can you post a directory listing of the following two directories?

Code: Select all

ls -l /usr/local/nagios/var

ls -l /usr/local/nagios/etc
If things don't look quite right I may have you reinstall the ndoutils subcomponent.
disrael
Posts: 116
Joined: Tue Jun 19, 2012 3:16 pm

Re: Nagios hangs while performing applying configuration

Post by disrael »

Code: Select all

tmproot@usa0300lv725>ls -l /usr/local/nagios/var
total 36476
drwxrwxr-x 2 nagios nagios     4096 Sep 28 00:00 archives
-rw-rw-r-- 1 nagios users    389884 Sep 28 17:20 host-perfdata
-rw-r--r-- 1 nagios nagios        6 Sep 28 15:22 nagios.lock
-rw-r--r-- 1 nagios nagios 35913134 Sep 28 17:21 nagios.log
-rw-r--r-- 1 nagios nagios        5 Sep 28 16:47 ndo2db.lock
-rw-rw-r-- 1 nagios nagios        0 Aug  8 22:57 ndomod.tmp
-rw-r--r-- 1 nagios nagios     2252 Sep 15 05:42 npcd.log
-rw-r--r-- 1 nagios nagios   304655 Sep 28 15:22 objects.cache
-rw-rw-rw- 1 nagios nagios     2086 Jul 27 00:14 perfdata.log
-rw------- 1 nagios nagios   317051 Sep 28 16:22 retention.dat
drwxrwsr-x 2 nagios nagcmd     4096 Sep 28 15:22 rw
-rw-rw-r-- 1 nagios nagios        0 Sep 28 17:21 service-perfdata
drwxrwxr-x 5 nagios nagios     4096 Jul 25 20:06 spool
drwxr-xr-x 2 nagios nagios     4096 Aug  8 22:57 stats
-rw-rw-r-- 1 nagios nagios   324492 Sep 28 17:21 status.dat
tmproot@usa0300lv725>ls -l /usr/local/nagios/var
total 36476
drwxrwxr-x 2 nagios nagios     4096 Sep 28 00:00 archives
-rw-rw-r-- 1 nagios users    389884 Sep 28 17:20 host-perfdata
-rw-r--r-- 1 nagios nagios        6 Sep 28 15:22 nagios.lock
-rw-r--r-- 1 nagios nagios 35913134 Sep 28 17:21 nagios.log
-rw-r--r-- 1 nagios nagios        5 Sep 28 16:47 ndo2db.lock
-rw-rw-r-- 1 nagios nagios        0 Aug  8 22:57 ndomod.tmp
-rw-r--r-- 1 nagios nagios     2252 Sep 15 05:42 npcd.log
-rw-r--r-- 1 nagios nagios   304655 Sep 28 15:22 objects.cache
-rw-rw-rw- 1 nagios nagios     2086 Jul 27 00:14 perfdata.log
-rw------- 1 nagios nagios   317051 Sep 28 16:22 retention.dat
drwxrwsr-x 2 nagios nagcmd     4096 Sep 28 15:22 rw
-rw-rw-r-- 1 nagios nagios        0 Sep 28 17:21 service-perfdata
drwxrwxr-x 5 nagios nagios     4096 Jul 25 20:06 spool
drwxr-xr-x 2 nagios nagios     4096 Aug  8 22:57 stats
-rw-rw-r-- 1 nagios nagios   324492 Sep 28 17:21 status.dat
disrael
Posts: 116
Joined: Tue Jun 19, 2012 3:16 pm

Re: Nagios hangs while performing applying configuration

Post by disrael »

Okay, I think I see what happen, though I don't know this will completely fix our problem. It looks like the two files: ndomod.cfg & ndo2db.cfg were never copied properly (they didn't exist in the server except in the /tmp install location). I copied them over and ndo2db is starting, at least that is what it says in the console and in the GUI. We will try to apply the configuration to see if all goes well.
disrael
Posts: 116
Joined: Tue Jun 19, 2012 3:16 pm

Re: Nagios hangs while performing applying configuration

Post by disrael »

How long should Applying Configuration take?

Code: Select all

Command submitted for processing...
Waiting for configuration verification...........................n
They waited a couple hours the other day and then quit, it has been running for about 10-15mins so far.

-Doron
Locked