Another reconfigure process is still running, sleeping...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
stefanmadsen
Posts: 42
Joined: Mon Dec 28, 2015 7:48 am

Another reconfigure process is still running, sleeping...

Post by stefanmadsen »

Hi,

One of our nagiosxi test servers have for whatever reason stopped accepting configuration changes.

we are unable to apply configurations, it simply just hangs.

Code: Select all

[root@pfantnag01 tmp]# /usr/local/nagiosxi/scripts/reconfigure_nagios.sh
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=2nfi2u' -O nagiosql.login--2018-02-20 10:09:20--  http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.login”

    [ <=>                                                                                                                        ] 38,614      --.-K/s   in 0.01s

2018-02-20 10:09:20 (2.94 MB/s) - “nagiosql.login” saved [38614]

LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
)
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
^C
Ive tried:
running reset config perms
rebooting server
upgrading to 5.4.12
deleting Lock files
writing config files, manually inspecting them.

at this time were Down to a bare standard configuration.
yet it still wont apply the configuration.

to be preemptive i tried getting the system profile:

Code: Select all

PROFILE BUILD FAILED
Array
(
)

CODE: 1
so yeah, i guess this installation is pretty fubar?
please assist
kyang

Re: Another reconfigure process is still running, sleeping..

Post by kyang »

Can you run this command and post or PM the file for me located in /tmp?

Code: Select all

ps -aef > /tmp/psaef.txt
PROFILE BUILD FAILED
Array
(
)

CODE: 1
It looks like the sudoers file is missing entries. Please follow this kb article to resolve that issue.

https://support.nagios.com/kb/article.p ... ategory=44

After you PM the profile please update this thread, unless you post the profile on here. Thanks
stefanmadsen
Posts: 42
Joined: Mon Dec 28, 2015 7:48 am

Re: Another reconfigure process is still running, sleeping..

Post by stefanmadsen »

that worked, at least i can get the system profile:
profile.zip
and the psaef:
psaef.txt
You do not have the required permissions to view the files attached to this post.
kyang

Re: Another reconfigure process is still running, sleeping..

Post by kyang »

Thanks!

Are you using SSL with this test server? I noticed it's pretty much a clean XI since you only have localhost.

Since you did the fix for the sudoers file, can you run this command?

Code: Select all

ll /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
If it returns no such file or directory then that is good and you can continue to try and apply configurations again and let me know the result.

If it does return something, please remove the lock file.

Code: Select all

rm -f /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
Now try to apply configurations and let me know the result.
stefanmadsen
Posts: 42
Joined: Mon Dec 28, 2015 7:48 am

Re: Another reconfigure process is still running, sleeping..

Post by stefanmadsen »

Yes we're Down to a bare minimum configuration, because i wanted to exclude any configurationwise issues.

Code: Select all

[root@pfantnag01 ~]# ll /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
ls: cannot access /usr/local/nagiosxi/scripts/reconfigure_nagios.lock: No such file or directory
so thats a no-go

and just for good measure, i tried the reconfigure call Again:

Code: Select all

[root@pfantnag01 ~]# su nagios
[nagios@pfantnag01 root]$ /usr/local/nagiosxi/scripts/reconfigure_nagios.sh
.
.
<spam...>
.
.
PHP Warning:  feof() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 49
PHP Warning:  fgets() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 51^C
[nagios@pfantnag01 root]$
so something definetly happened after fiddling with the sudoers file.

However!!! - we can apply configuration from the GUI now
kyang

Re: Another reconfigure process is still running, sleeping..

Post by kyang »

Thanks for the info.

Since apply configuration works in GUI, let's see why it isn't working when using reconfigure_nagios.sh

Also, try to run an Apply Configuration while running a tail on this file.
Note: Please run the tail -f /usr/local/nagiosxi/var/cmdsubsys.log first before applying the configuration.

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log

Also the output of these commands.

Code: Select all

ls -al /usr/local/nagiosxi/scripts/
chage -l nagios
chage -l apache
cat /etc/passwd | grep apache
cat /etc/passwd | grep nagios
Then you can post that information here or PM them to me.
Locked