Page 2 of 5

Re: Waiting for configuration verification never ends.

Posted: Tue Nov 06, 2018 3:44 pm
by suryakiran
No i am running it under root.

Re: Waiting for configuration verification never ends.

Posted: Tue Nov 06, 2018 3:47 pm
by suryakiran
Its showing me the below.

tail -f /usr/local/nagiosxi/var/cmdsubsys.log
tail: cannot open ‘/usr/local/nagiosxi/var/cmdsubsys.log’ for reading: No such file or directory
tail: no files remaining

Ionly have these files.

drwsrwsr-x 2 apache nagios 4096 Nov 5 12:09 components
drwxr-xr-x 2 nagios nagios 4096 Nov 6 15:45 subsys
drwxr-xr-x 2 nagios nagios 4096 Nov 5 12:09 upgrades
-rw-r--r-- 1 nagios nagios 7 Nov 5 12:29 xi-itype
-rw-r--r-- 1 nagios nagios 953 Nov 5 12:09 xi-sys.cfg
-rw-r--r-- 1 nagios nagios 37 Nov 5 12:29 xi-uuid
-rw-r--r-- 1 nagios nagios 198 Nov 5 12:09 xiversion

Re: Waiting for configuration verification never ends.

Posted: Tue Nov 06, 2018 3:48 pm
by npolovenko
@suryakiran, You need to run it as the nagios user. Because that's how it's executed when you Apply the Config in GUI.

Re: Waiting for configuration verification never ends.

Posted: Tue Nov 06, 2018 3:51 pm
by suryakiran
Getting the below error.

/usr/sbin/service nagios stop
Stopping nagios (via systemctl): ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to manage system services or units.
Authenticating as: root
Password: Failed to stop nagios.service: Connection timed out
See system logs and 'systemctl status nagios.service' for details.
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
[FAILED]

Re: Waiting for configuration verification never ends.

Posted: Tue Nov 06, 2018 3:51 pm
by lmiltchev
What are the permissions of the "/usr/local/nagios/var/" directory?

Code: Select all

ls -lad /usr/local/nagios/var
Also, let's take a look at the cron log:

Code: Select all

tail -50 /var/log/cro

Re: Waiting for configuration verification never ends.

Posted: Tue Nov 06, 2018 3:57 pm
by suryakiran
-bash-4.2$ ls -lad /usr/local/nagios/var
drwxrwxr-x 6 nagios nagios 4096 Nov 6 15:55 /usr/local/nagios/var

ls -lad cron
-rw-r----- 1 root root 42314958 Nov 6 15:56 cron
[root@njbbngeoxp3v log]# tail -50 cron
Nov 6 15:54:01 njbbngeoxp3v crond[20602]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:54:01 njbbngeoxp3v crond[20607]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:54:01 njbbngeoxp3v crond[20603]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:54:01 njbbngeoxp3v crond[20608]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:54:01 njbbngeoxp3v crond[20607]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:54:01 njbbngeoxp3v crond[20602]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:54:01 njbbngeoxp3v crond[20608]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:55:01 njbbngeoxp3v CROND[20673]: (root) CMD (LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok)
Nov 6 15:55:02 njbbngeoxp3v CROND[20677]: (stdsmont) CMD (/opt/stdsmont/bin/checkstdsmont.pl > /dev/null 2>&1)
Nov 6 15:55:02 njbbngeoxp3v CROND[20676]: (stdsmont) CMD (/opt/stdsmont/bin/heartbeat.pl > /dev/null 2>&1)
Nov 6 15:55:02 njbbngeoxp3v CROND[20678]: (stdsmont) CMD (/opt/stdsmont/agent/linux/proc_mon/check_hungproc.pl > /dev/null 2>&1)
Nov 6 15:55:02 njbbngeoxp3v crontab[20694]: (stdsmont) LIST (stdsmont)
Nov 6 15:55:02 njbbngeoxp3v crond[20661]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20660]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20657]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20659]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20662]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20663]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20656]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20661]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20665]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20664]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20657]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20663]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20662]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20658]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20659]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20656]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20660]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20665]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20664]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:55:02 njbbngeoxp3v crond[20658]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20824]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20825]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20821]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20822]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20826]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20819]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20823]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20820]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20827]: (nagios) PAM ERROR (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20824]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20820]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20822]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20825]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20821]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20823]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20819]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20827]: (nagios) FAILED to authorize user with PAM (Permission denied)
Nov 6 15:56:01 njbbngeoxp3v crond[20826]: (nagios) FAILED to authorize user with PAM (Permission denied)

Re: Waiting for configuration verification never ends.

Posted: Tue Nov 06, 2018 4:12 pm
by lmiltchev
Have you tried restarting crond?

Code: Select all

service crond restart
What is the output of the following command?

Code: Select all

chage nagios -l
Here's a possible solution, posted on the support forum from a user, having similar issues are you:
In order to fix this, I added the nagios user to /etc/cron.allow and edited /etc/pam.d/crond to include the following line:
account sufficient pam_listfile.so item=user sense=allow file=/etc/cron.allow onerr=succeed
https://support.nagios.com/forum/viewto ... =6&t=32636

Re: Waiting for configuration verification never ends.

Posted: Tue Nov 06, 2018 4:34 pm
by suryakiran
Please check the output.
chage nagios -l
Last password change : Apr 11, 2018
Password expires : Jul 10, 2018
Password inactive : never
Account expires : never
Minimum number of days between password change : 14
Maximum number of days between password change : 90
Number of days of warning before password expires : 7

The user nagios is already been added in /etc/cron.allow
I have added account sufficient pam_listfile.so item=user sense=allow file=/etc/cron.allow onerr=succeed in pam.d/crond and the issue is still the same.

Stopping nagios (via systemctl): ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to manage system services or units.
Authenticating as: root
Password:
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Failed to stop nagios.service: Access denied
See system logs and 'systemctl status nagios.service' for details.

Re: Waiting for configuration verification never ends.

Posted: Tue Nov 06, 2018 4:38 pm
by lmiltchev
Run the following command to enable the expired nagios user:

Code: Select all

chage -I -1 -m 0 -M 99999 -E -1 nagios
and restart crond:

Code: Select all

service crond restart

Re: Waiting for configuration verification never ends.

Posted: Tue Nov 06, 2018 4:51 pm
by suryakiran
Did the changes and below is the output when i tried to restart the nagios.

Does polkit-agent-helper-1: pam_authenticate failed: Authentication failure making this issue.

-bash-4.2$ /usr/sbin/service nagios stop
Stopping nagios (via systemctl): ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to manage system services or units.
Authenticating as: root
Password:
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Failed to stop nagios.service: Access denied
See system logs and 'systemctl status nagios.service' for details.
[FAILED]