Waiting for configuration verification never ends.
-
suryakiran
- Posts: 34
- Joined: Tue Nov 06, 2018 12:02 pm
Re: Waiting for configuration verification never ends.
No i am running it under root.
-
suryakiran
- Posts: 34
- Joined: Tue Nov 06, 2018 12:02 pm
Re: Waiting for configuration verification never ends.
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
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
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Waiting for configuration verification never ends.
@suryakiran, You need to run it as the nagios user. Because that's how it's executed when you Apply the Config in GUI.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
suryakiran
- Posts: 34
- Joined: Tue Nov 06, 2018 12:02 pm
Re: Waiting for configuration verification never ends.
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]
/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.
What are the permissions of the "/usr/local/nagios/var/" directory?
Also, let's take a look at the cron log:
Code: Select all
ls -lad /usr/local/nagios/varCode: Select all
tail -50 /var/log/croBe sure to check out our Knowledgebase for helpful articles and solutions!
-
suryakiran
- Posts: 34
- Joined: Tue Nov 06, 2018 12:02 pm
Re: Waiting for configuration verification never ends.
-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)
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.
Have you tried restarting crond?
What is the output of the following command?
Here's a possible solution, posted on the support forum from a user, having similar issues are you:
Code: Select all
service crond restartCode: Select all
chage nagios -lhttps://support.nagios.com/forum/viewto ... =6&t=32636In 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
suryakiran
- Posts: 34
- Joined: Tue Nov 06, 2018 12:02 pm
Re: Waiting for configuration verification never ends.
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.
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.
Run the following command to enable the expired nagios user:
and restart crond:
Code: Select all
chage -I -1 -m 0 -M 99999 -E -1 nagiosCode: Select all
service crond restartBe sure to check out our Knowledgebase for helpful articles and solutions!
-
suryakiran
- Posts: 34
- Joined: Tue Nov 06, 2018 12:02 pm
Re: Waiting for configuration verification never ends.
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]
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]