Waiting for configuration verification................

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ranjitw
Posts: 175
Joined: Tue Sep 01, 2015 1:52 am

Waiting for configuration verification................

Post by ranjitw »

Hi Team,

I am getting Waiting for configuration verification.................. when I click apply configuration in Nagios XI .

Have done below troubleshooting but still the issue exists :

Changed the values in /etc/php.ini file as below :

max_execution_time = 60 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 256M ; Maximum amount of memory a script may consume

Have done
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh

But still problem exists please help in resolving.

Regards,
Ranjit W
Regards,
Ranjit W
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Waiting for configuration verification................

Post by tmcdonald »

I see you have a few threads open. It always helps to provide us some base details, such as:
  • What XI version is this?
  • What OS and version is it installed on?
  • What is the output of running the reconfigure_nagios.sh script?
Former Nagios employee
ranjitw
Posts: 175
Joined: Tue Sep 01, 2015 1:52 am

Re: Waiting for configuration verification................

Post by ranjitw »

What XI version is this?
Nagios XI 2014R2.6

What OS and version is it installed on?
Linux 2.6.32-431.29.2.el6.x86_64 #1 SMP Sun Jul 27 15:55:46 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux

What is the output of running the reconfigure_nagios.sh script?
Provided as part of attachement (output.txt)
You do not have the required permissions to view the files attached to this post.
Regards,
Ranjit W
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Waiting for configuration verification................

Post by lmiltchev »

Run the following command to begin capturing log output:

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> /tmp/cmd.txt
Attempt to Apply Configuration from the web interface. After the browser has returned some output to the screen, press Ctrl+c to stop the log tail, and post the cmd.txt file that was generated in the "/tmp" directory by the above instructions.

Can you run "reconfigure_nagios.sh" successfully when logged in as "nagios" user?

Code: Select all

su nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Can you post the sudoers file and the output of command below?

Code: Select all

ls -la /etc/sudoers.d
Be sure to check out our Knowledgebase for helpful articles and solutions!
ranjitw
Posts: 175
Joined: Tue Sep 01, 2015 1:52 am

Re: Waiting for configuration verification................

Post by ranjitw »

output for tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> /tmp/cmd.txt:

CMDLINE=/usr/local/nagiosxi/scripts/backup_xi.sh -n nagiosxi.1441490404 -d /store/backups/nagiosxi
Backing up Core Config Manager (NagiosQL)...
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/var/ndo.sock: socket ignored
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
Backing up Nagios XI...
tar: Removing leading `/' from member names

Running the ./reconfigure_nagios.sh as nagios user worked. Attached is the output file.

Sudo Command output:

ls -la /etc/sudoers.d
total 44
drwxr-x--- 2 root root 4096 Oct 7 2013 .
drwxr-xr-x 109 root root 36864 Sep 9 07:50 ..

Regards,
Ranjit W
You do not have the required permissions to view the files attached to this post.
Regards,
Ranjit W
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Waiting for configuration verification................

Post by lmiltchev »

We didn't get to see a couple of files - run the commands below and post the output in code wraps:

Code: Select all

cat /tmp/cmd.txt
cat /etc/sudoers
Be sure to check out our Knowledgebase for helpful articles and solutions!
ranjitw
Posts: 175
Joined: Tue Sep 01, 2015 1:52 am

Re: Waiting for configuration verification................

Post by ranjitw »

Attached sudoers output
You do not have the required permissions to view the files attached to this post.
Regards,
Ranjit W
ranjitw
Posts: 175
Joined: Tue Sep 01, 2015 1:52 am

Re: Waiting for configuration verification................

Post by ranjitw »

Attached cmd.txt
You do not have the required permissions to view the files attached to this post.
Regards,
Ranjit W
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Waiting for configuration verification................

Post by tgriep »

Your sudoers file is missing all of the entries that the nagios processes need to run. Can you add the following to the bottom to the /etc/sudoers file and see if that resolves it for you?

Code: Select all

# NEEDED TO ALLOW NAGIOS TO CHECK SERVICE STATUS
Defaults:nagios !requiretty
Defaults:apache !requiretty
nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_init_service
nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_linux_stats.pl

# ASTERISK-SPECIFIC CHECKS
# NOTE: You can uncomment the following line if you are monitoring Asterisk locally
#nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_asterisk_sip_peers.sh, /usr/local/nagios/libexec/nagisk.pl, /usr/sbin/asterisk

User_Alias      NAGIOSXI=nagios
User_Alias             NAGIOSXIWEB=apache
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios checkconfig
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd status
NAGIOSXI ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/upgrade_to_latest.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/change_timezone.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/reset_config_perms.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/messages
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/httpd/error_log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/mysqld.log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXIWEB ALL = NOPASSWD:/etc/init.d/snmptt restart
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/repair_databases.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
Be sure to check out our Knowledgebase for helpful articles and solutions!
ranjitw
Posts: 175
Joined: Tue Sep 01, 2015 1:52 am

Re: Waiting for configuration verification................

Post by ranjitw »

HI Tgriep,

Thanks a lot for your response .

I have updated the sudoers file with the entires which you have provided but still the problem persists .

I have observed that following files are not present :

nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_init_service
nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_linux_stats.pl

# ASTERISK-SPECIFIC CHECKS
# NOTE: You can uncomment the following line if you are monitoring Asterisk locally
#nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_asterisk_sip_peers.sh, /usr/local/nagios/libexec/nagisk.pl, /usr/sbin/asterisk

Could this be a problem for this issue?

Regards,
Ranjit W
Regards,
Ranjit W
Locked