Page 1 of 1

Apply configuration is running endlessly

Posted: Tue Jul 14, 2020 2:35 am
by aceadm
Hello,

After adding 1 simple snmp service check, Nagios is endlessly trying to apply the configuration. When I tried to reconfigure from CLI, it worked immediately. Later I tried forcing a command run and that did not work either. I added some more services and and again, I cannot apply configuration from the UI. Nagios XI has been running smoothly for some weeks now, its not a fresh installation that went wrong. Also "tail -f /usr/local/nagiosxi/var/cmdsubsys.log" command brings nothing when I run the reconfiguration.
Also when I try to run the reconfiguration with the Nagios user from CLI, I get this:

[nagios@server scripts]$ ./reconfigure_nagios.sh
sudo: pam_open_session: System error
sudo: policy plugin failed session initialization

Resetting configuration permissions failed!

Any ideas?

Thanks

Re: Apply configuration is running endlessly

Posted: Tue Jul 14, 2020 3:04 am
by aceadm
aceadm wrote:Hello,

After adding 1 simple snmp service check, Nagios is endlessly trying to apply the configuration. When I tried to reconfigure from CLI, it worked immediately. Later I tried forcing a command run and that did not work either. I added some more services and and again, I cannot apply configuration from the UI. Nagios XI has been running smoothly for some weeks now, its not a fresh installation that went wrong. Also "tail -f /usr/local/nagiosxi/var/cmdsubsys.log" command brings nothing when I run the reconfiguration.
Also when I try to run the reconfiguration with the Nagios user from CLI, I get this:

[nagios@server scripts]$ ./reconfigure_nagios.sh
sudo: pam_open_session: System error
sudo: policy plugin failed session initialization

Resetting configuration permissions failed!

Any ideas?

Thanks

Looking into the last errors, it might be a password expiration issue for nagios account. I am waiting for our linux team to reset the password and I will update in case this was the error.


- So , this was the issue. Nagios user had expired password. Issue fixed after reseting the password.

Re: Apply configuration is running endlessly

Posted: Tue Jul 14, 2020 9:00 am
by scottwilkerson
aceadm wrote:
aceadm wrote:Hello,

After adding 1 simple snmp service check, Nagios is endlessly trying to apply the configuration. When I tried to reconfigure from CLI, it worked immediately. Later I tried forcing a command run and that did not work either. I added some more services and and again, I cannot apply configuration from the UI. Nagios XI has been running smoothly for some weeks now, its not a fresh installation that went wrong. Also "tail -f /usr/local/nagiosxi/var/cmdsubsys.log" command brings nothing when I run the reconfiguration.
Also when I try to run the reconfiguration with the Nagios user from CLI, I get this:

[nagios@server scripts]$ ./reconfigure_nagios.sh
sudo: pam_open_session: System error
sudo: policy plugin failed session initialization

Resetting configuration permissions failed!

Any ideas?

Thanks

Looking into the last errors, it might be a password expiration issue for nagios account. I am waiting for our linux team to reset the password and I will update in case this was the error.


- So , this was the issue. Nagios user had expired password. Issue fixed after reseting the password.
Glad to hear this was resolved

Locking thread