Applying Configuration not finishing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Applying Configuration not finishing

Post by JohnFLi »

This is rather odd.....
I did a change in my Nagios XI (Removed a user and contact) went to "Applying Configuration" and now its just sitting there.....

I have the spinning circle next to "Waiting for configuration verification..............................................................................................................................................................................................................................................................."

I closed my browser and tried again.....same thing

At the command line, I type

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
It returns

Code: Select all

[root@G1VPNAG03 i686]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Warning: Duplicate definition found for service 'CPU Usage' on host 'G1VTSSRS01' (config file '/usr/local/nagios/etc/services/G1VTSSRS01.cfg', starting on line 16)
   Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
        Checked 1692 services.
        Checked 274 hosts.
        Checked 17 host groups.
        Checked 2 service groups.
Warning: Contact 'hasfdond.adm' has no service notification time period defined!
Warning: Contact 'hasfgnd.adm' has no host notification time period defined!
Warning: Contact 'lsdgfj.adm' has no service notification time period defined!
Warning: Contact 'lsdfgj.adm' has no host notification time period defined!
        Checked 29 contacts.
        Checked 2 contact groups.
        Checked 138 commands.
        Checked 24 time periods.
        Checked 0 host escalations.
        Checked 223 service escalations.
Checking for circular paths...
        Checked 274 hosts
        Checked 0 service dependencies
        Checked 0 host dependencies
        Checked 24 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 4
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
[root@G1VPNAG03 i686]#




Any ideas?
Everybody is somebody else’s weirdo
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Applying Configuration not finishing

Post by tmcdonald »

What XI version is this?

Please run the following command as root from the Nagios server command line and post the results:

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh | tail -20
Former Nagios employee
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Applying Configuration not finishing

Post by JohnFLi »

Code: Select all

[root@G1VPNAG03 scripts]# ./reconfigure_nagios.sh | tail -20
PHP Warning:  PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
        Checked 24 time periods.
        Checked 0 host escalations.
        Checked 223 service escalations.
Checking for circular paths...
        Checked 274 hosts
        Checked 0 service dependencies
        Checked 0 host dependencies
        Checked 24 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 4
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
[root@G1VPNAG03 scripts]#
Everybody is somebody else’s weirdo
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Applying Configuration not finishing

Post by jolson »

What version of XI is this?

Try running the reconfigure script as the 'nagios' user:

Code: Select all

su - nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh | tail -20
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Applying Configuration not finishing

Post by JohnFLi »

Code: Select all

Latest Available Version:	2014R2.7
Installed Version:	2014R2.7
Last Update Check:	07/31/2015 12:57:15

Code: Select all

[nagios@G1VPNAG03 scripts]$ ./reconfigure_nagios.sh | tail -20
PHP Warning:  PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
        Checked 24 time periods.
        Checked 0 host escalations.
        Checked 223 service escalations.
Checking for circular paths...
        Checked 274 hosts
        Checked 0 service dependencies
        Checked 0 host dependencies
        Checked 24 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 4
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
[nagios@G1VPNAG03 scripts]$
Everybody is somebody else’s weirdo
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Applying Configuration not finishing

Post by JohnFLi »

Well, this just gets more fun.....
Thinking that if I finished the php upgrade that somebody else did..... somehow I managed to kill php all together.

Code: Select all

[root@G1VPNAG03 ~]# php -v
-bash: php: command not found
So I tried reinstalling php

Code: Select all

[root@G1VPNAG03 ~]# yum install php54w
Loaded plugins: fastestmirror, refresh-packagekit, replace
Existing lock /var/run/yum.pid: another copy is running as pid 15275.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 167 M RSS (891 MB VSZ)
    Started: Fri Jul 31 13:28:44 2015 - 00:04 ago
    State  : Sleeping, pid: 15275
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 167 M RSS (891 MB VSZ)
    Started: Fri Jul 31 13:28:44 2015 - 00:06 ago
    State  : Sleeping, pid: 15275
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: linux.cc.lehigh.edu
 * epel: mirror.steadfast.net
 * extras: linux.cc.lehigh.edu
 * remi-safe: fr2.rpmfind.net
 * rpmforge: fr2.rpmfind.net
 * updates: mirror.cs.uwp.edu
 * webtatic-el5: us-east.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php54w.x86_64 0:5.4.43-1.w5 will be installed
--> Processing Dependency: php54w-common = 5.4.43-1.w5 for package: php54w-5.4.43-1.w5.x86_64
--> Processing Dependency: php54w-cli = 5.4.43-1.w5 for package: php54w-5.4.43-1.w5.x86_64
--> Processing Dependency: libssl.so.6()(64bit) for package: php54w-5.4.43-1.w5.x86_64
--> Processing Dependency: libcrypto.so.6()(64bit) for package: php54w-5.4.43-1.w5.x86_64
--> Running transaction check
---> Package openssl098e.x86_64 0:0.9.8e-18.el6_5.2 will be installed
---> Package php54w-cli.x86_64 0:5.4.43-1.w5 will be installed
---> Package php54w-common.x86_64 0:5.4.43-1.w5 will be installed
--> Processing Dependency: libcurl.so.3()(64bit) for package: php54w-common-5.4.43-1.w5.x86_64
--> Finished Dependency Resolution
Error: Package: php54w-common-5.4.43-1.w5.x86_64 (webtatic-el5)
           Requires: libcurl.so.3()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Everybody is somebody else’s weirdo
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Applying Configuration not finishing

Post by JohnFLi »

Well......I cheated.

I did a restore from a couple of days ago and all is good now.

You can lock this item
Everybody is somebody else’s weirdo
Locked