Apply config just spins and never seems to complete.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
GhostRider2110
Posts: 193
Joined: Thu Oct 30, 2014 8:04 am
Location: Indiana
Contact:

Apply config just spins and never seems to complete.

Post by GhostRider2110 »

Nagios XI 2024R1.2
RHEL 9
selinux off
fapolicyd on

Troubleshooting applying a config change. Just keeps going without stopping. Looked at some old threads and tried running the reconfigure_nagios.sh script as nagios user manually. Erred out with the following:

[nagios@iganagiosrh9A1 ~]$ /usr/local/nagiosxi/scripts/reconfigure_nagios.sh

--- reset_config_perms.sh ------------
> Setting script permissions
> Setting CCM script permissions
> Setting special script permissions
> Setting special component script permissions
> Setting migrate permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD permissions
> Setting libexec directory permissions
> Setting Nagios XI config permissions
> Setting NOM checkpoint user:group permissions
> + Setting Recurring Downtime file user:group permissions
> + Setting BPI configuration file user:group permissions
--------------------------------------
PHP Warning: require_once(/usr/local/nagiosxi/html/includes/components/laminasmail/vendor/autoload.php): Failed to open stream: Operation not permitted in /usr/local/nagiosxi/html/includes/utils-email.inc.php on line 4
PHP Fatal error: Uncaught Error: Failed opening required '/usr/local/nagiosxi/html/includes/components/laminasmail/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/utils-email.inc.php:4
Stack trace:
#0 /usr/local/nagiosxi/html/includes/utils.inc.php(23): require_once()
#1 /usr/local/nagiosxi/html/includes/dbauth.inc.php(0): require_once('...')
#2 /usr/local/nagiosxi/html/includes/dbauth.inc.php(2): sg_load()
#3 /usr/local/nagiosxi/html/includes/db.inc.php(11): require_once('...')
#4 /usr/local/nagiosxi/html/config.inc.php(228): require_once('...')
#5 /usr/local/nagiosxi/scripts/ccm_import.php(12): require_once('...')
#6 {main}
thrown in /usr/local/nagiosxi/html/includes/utils-email.inc.php on line 4

Importing into the CCM failed!
[nagios@iganagiosrh9A1 ~]$


Any help would be greatly appreciated.

Thanks
Mitch
Last edited by GhostRider2110 on Tue Aug 20, 2024 2:57 pm, edited 1 time in total.
GhostRider2110
Posts: 193
Joined: Thu Oct 30, 2014 8:04 am
Location: Indiana
Contact:

Re: Apply config just spins and never seems to complete.

Post by GhostRider2110 »

Sorry, found the issue. I thought fapolicyd was off, but no. I added in rules to allow the nagios user access to files being denied. Working now.

Thanks, again sorry...
Mitch
User avatar
jmichaelson
Posts: 383
Joined: Wed Aug 23, 2023 1:02 pm

Re: Apply config just spins and never seems to complete.

Post by jmichaelson »

Glad to see you got the problem resolved. Did you figure out how the permission problem happened to begin with so I can try and determine whether its a Nagios issue or something else?
Please let us know if you have any other questions or concerns.

-Jason
GhostRider2110
Posts: 193
Joined: Thu Oct 30, 2014 8:04 am
Location: Indiana
Contact:

Re: Apply config just spins and never seems to complete.

Post by GhostRider2110 »

It was my mistake. I had started troubleshooting what rules I would need to allow nagios to run with fapolicyd, so I had shut it off and was manually running fapolicyd --debug-deny --permissive
Got pulled off on another "emergency" (LOL) issue and when I came back, forgot where I was and rebooted the server to apply OS updates, that restarted fapolicyd. :lol:

Thanks
Mitch
Post Reply