Page 1 of 1

NagiosXI 5.5.3 don't save changes (timeout)

Posted: Thu Oct 04, 2018 3:53 am
by morabanc
Hi guys,

I'm installing nagios xi in a new centos machine.

After all goes fine, i create a host and a service and when i try "apply configuration" and a loop become and never finish

Code: Select all

Waiting for configuration verification.......................................................................[..]
Trying to check config manually:

#/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Code: Select all

Nagios Core 4.4.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2018-08-16
License: GPL

Website: https://www.nagios.org
Reading configuration data...
   Read main config file okay...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Error: There are no services defined!
        Checked 0 services.
        Checked 1 hosts.
        Checked 1 host groups.
        Checked 0 service groups.
        Checked 2 contacts.
        Checked 2 contact groups.
        Checked 127 commands.
        Checked 8 time periods.
        Checked 0 host escalations.
        Checked 0 service escalations.
Checking for circular paths...
        Checked 1 hosts
        Checked 0 service dependencies
        Checked 0 host dependencies
        Checked 8 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   1

***> One or more problems was encountered while running the pre-flight check...

     Check your configuration file(s) to ensure that they contain valid
     directives and data definitions.  If you are upgrading from a previous
     version of Nagios, you should be aware that some variables/definitions
     may have been removed or modified in this version.  Make sure to read
     the HTML documentation regarding the config files, as well as the
     'Whats New' section to find out what has changed.
I think that there are something with permision file or mariaDB db because i also get this kind of error when i try to save a mediawiki file.

Doing other checks i found on internet:

# tail /usr/local/nagiosxi/var/cmdsubsys.log

Code: Select all

............................................................
PROCESSED 0 COMMANDS
.............................................................
PROCESSED 0 COMMANDS
...........................................................
PROCESSED 0 COMMANDS
............................................................
PROCESSED 0 COMMANDS
............................................................
I tried to modify sudoers file, php.ini ... but i leaved it as i get before.

Can you help me please.


Thanks

Re: NagiosXI 5.5.3 don't save changes (timeout)

Posted: Thu Oct 04, 2018 1:29 pm
by benjaminsmith
Hi,


Let's trying running the reconfiguration script.

Please run the following command as root:

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
To reset the permissions, run from the scripts folder:

Code: Select all

./reset_config_perms.sh
Let us know if this is resolves the issue.

Knowledgebase articles for troublehsooting configuration issues:
https://support.nagios.com/kb/article.php?id=34
https://support.nagios.com/kb/article.php?id=144

Re: NagiosXI 5.5.3 don't save changes (timeout)

Posted: Fri Oct 05, 2018 1:54 am
by morabanc
Hi benjaminsmith,

I execute both scripts and my changes (new host and new service) was applied, but when i try to configure a new one and click "apply configuration" i get the same error, a loop ...

Results are:

reconfigure_nagios.sh

Code: Select all

--- reset_config_perms.sh ------------
> Setting CCM script permissions
> Setting script permissions
> Setting special component script permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD permissions
> Setting NOM checkpoint user:group permissions
> + Setting CCM configuration file user:group permissions
> + Setting Recurring Downtime file user:group permissions
> + Setting BPI configuration file user:group permissions
--------------------------------------

--- ccm_import.php -------------------
> Setting import directory: /usr/local/nagios/etc/import/
> Importing config files into the CCM
  No files to import
--------------------------------------

--- ccm_export.php -------------------
> Writing CCM configuration to Nagios files
  Finished writing out configuraton
--------------------------------------

--------------------------------------
> Verifying configuration with Nagios Core
> Output:
Nagios Core 4.4.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2018-08-16
License: GPL

Website: https://www.nagios.org
Reading configuration data...
   Read main config file okay...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
        Checked 13 services.
        Checked 2 hosts.
        Checked 1 host groups.
        Checked 0 service groups.
        Checked 2 contacts.
        Checked 2 contact groups.
        Checked 127 commands.
        Checked 8 time periods.
        Checked 0 host escalations.
        Checked 0 service escalations.
Checking for circular paths...
        Checked 2 hosts
        Checked 0 service dependencies
        Checked 0 host dependencies
        Checked 8 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
> Return Code: 0
--------------------------------------
reset_config_perms.sh

Code: Select all

--- reset_config_perms.sh ------------
> Setting CCM script permissions
> Setting script permissions
> Setting special component script permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD permissions
> Setting NOM checkpoint user:group permissions
> + Setting CCM configuration file user:group permissions
> + Setting Recurring Downtime file user:group permissions
> + Setting BPI configuration file user:group permissions
--------------------------------------
Actually the only way to apply changes is:
1- Create a new host/service
2- Execute (reconfigure_nagios.sh)

But after this when i try to force an immediate check i can't (your request was not processed in a timely manner. it may still execute, as the server may be temporarily busy).

Another thing i checked is that when i "re-schedule" through nagios core works fine but in nagiosxi not.


Thanks a lot

Re: NagiosXI 5.5.3 don't save changes (timeout)

Posted: Fri Oct 05, 2018 9:28 am
by morabanc
Hi,

After reboot it seems to be ok now, but Mediawiki still without working.

Any idea ?


Many thanks

Re: NagiosXI 5.5.3 don't save changes (timeout)

Posted: Fri Oct 05, 2018 10:13 am
by scottwilkerson
morabanc wrote:Hi,

After reboot it seems to be ok now, but Mediawiki still without working.

Any idea ?


Many thanks
Unfortunately we cannot assist with Mediawiki, I would suggest contacting their support.

Re: NagiosXI 5.5.3 don't save changes (timeout)

Posted: Mon Oct 08, 2018 4:58 am
by morabanc
Ok thanks for all guys !

Re: NagiosXI 5.5.3 don't save changes (timeout)

Posted: Mon Oct 08, 2018 2:21 pm
by benjaminsmith
Sounds good. I will go ahead and lock this thread.

Thanks for the update.