Hi ,
I removed reconfigure_nagios.lock file located under /usr/local/nagiosxi/scripts and tired apply configuration for which I got below :
tail -f /usr/local/nagiosxi/var/cmdsubsys.log
................................................
PROCESSED 0 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
.
PROCESSED 0 COMMANDS
=17, DATA=
APPLYING NAGIOSCORE CONFIG...
CMDLINE=cd /usr/local/nagiosxi/scripts && ./reconfigure_nagios.sh
URL:
http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
--2015-10-19 08:22:35--
http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `nagiosql.login'
0K .......... .......... .......... ....... 1.99M=0.02s
2015-10-19 08:22:35 (1.99 MB/s) - `nagiosql.login' saved [37974]
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies
http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=n@gweb' -O nagiosql.loginLOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL:
http://localhost/nagiosxi/includes/components/ccm/
Array
(
[0] => x.cfg
)
IMPORTING /usr/local/nagios/etc/import/mlctstap003.fr.world.socgen.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies
http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/mlctstap003.fr.world.socgen.cfg' -O nagiosql.import.monitoring
--2015-10-19 08:22:35--
http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `nagiosql.import.monitoring'
0K .......... ...... 100K=0.2s
2015-10-19 08:22:36 (100 KB/s) - `nagiosql.import.monitoring' saved [17398]
sudo: no tty present and no askpass program specified
RESETTING CONFIG PERMS FAILED!\n
OUTPUT=RESETTING CONFIG PERMS FAILED!\n
RETURNCODE=4
.........................
PROCESSED 1 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
...............................
In nagios GUI I got Configuration verification failed.
Configuration error. Could not apply configuration.
Where as verify configuration in the CCM page shows me 0 errors .