NagiosXI 5.5.3 don't save changes (timeout)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

NagiosXI 5.5.3 don't save changes (timeout)

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

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

Post 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
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

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

Post by morabanc »

Hi,

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

Any idea ?


Many thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

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

Post by morabanc »

Ok thanks for all guys !
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post by benjaminsmith »

Sounds good. I will go ahead and lock this thread.

Thanks for the update.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked