Not changes applied after apply configuration
Posted: Tue Jun 16, 2015 8:19 am
Hello to everyone,
I can add host and services without any problem. Besides, I can delete too. The problem appears when I want to change any service characteristic as warning or critical values. I change them, save and apply the new configuration. The process finished without problems. I try using /usr/local/nagiosxi/scripts/reconfigure_nagios.sh and via web.
Have you got any idea where can be the problem?
I am using CentOS release 6.6.
Via web ...
Command submitted for processing...
Waiting for configuration verification......
Configuration applied successfully.
Success! Nagios Core was restarted with an updated configuration.
Via reconfigure_nagios.sh
(I deleted some urls to send this post)
bash-4.1# ./reconfigure_nagios.sh
URL: localhost/nagiosxi/includes/components/ccm/
CMDLINE
/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.login--2015-06-16 09:05:57-- 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”
[ <=> ] 11,165 --.-K/s in 0s
2015-06-16 09:05:57 (761 MB/s) - “nagiosql.login” saved [11165]
LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: localhost/nagiosxi/includes/components/ccm/
Array
(
)
SETUID ROOT OK
RESETTING PERMS
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/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.login--2015-06-16 09:05:58-- 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”
[ <=> ] 11,165 --.-K/s in 0s
2015-06-16 09:05:58 (710 MB/s) - “nagiosql.login” saved [11165]
LOGIN SUCCESSFUL!
URL: localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2015-06-16 09:05:58-- 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.export.monitoring”
[ <=> ] 14,019 --.-K/s in 0.01s
2015-06-16 09:05:59 (1.25 MB/s) - “nagiosql.export.monitoring” saved [14019]
WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 14 services.
Warning: Host 'testing' has no default contacts or contactgroups defined!
Checked 3 hosts.
Checked 9 host groups.
Checked 7 service groups.
Checked 2 contacts.
Checked 2 contact groups.
Checked 119 commands.
Checked 8 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 3 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 8 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 1
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
I can add host and services without any problem. Besides, I can delete too. The problem appears when I want to change any service characteristic as warning or critical values. I change them, save and apply the new configuration. The process finished without problems. I try using /usr/local/nagiosxi/scripts/reconfigure_nagios.sh and via web.
Have you got any idea where can be the problem?
I am using CentOS release 6.6.
Via web ...
Command submitted for processing...
Waiting for configuration verification......
Configuration applied successfully.
Success! Nagios Core was restarted with an updated configuration.
Via reconfigure_nagios.sh
(I deleted some urls to send this post)
bash-4.1# ./reconfigure_nagios.sh
URL: localhost/nagiosxi/includes/components/ccm/
CMDLINE
/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.login--2015-06-16 09:05:57-- 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”
[ <=> ] 11,165 --.-K/s in 0s
2015-06-16 09:05:57 (761 MB/s) - “nagiosql.login” saved [11165]
LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: localhost/nagiosxi/includes/components/ccm/
Array
(
)
SETUID ROOT OK
RESETTING PERMS
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/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.login--2015-06-16 09:05:58-- 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”
[ <=> ] 11,165 --.-K/s in 0s
2015-06-16 09:05:58 (710 MB/s) - “nagiosql.login” saved [11165]
LOGIN SUCCESSFUL!
URL: localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2015-06-16 09:05:58-- 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.export.monitoring”
[ <=> ] 14,019 --.-K/s in 0.01s
2015-06-16 09:05:59 (1.25 MB/s) - “nagiosql.export.monitoring” saved [14019]
WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 14 services.
Warning: Host 'testing' has no default contacts or contactgroups defined!
Checked 3 hosts.
Checked 9 host groups.
Checked 7 service groups.
Checked 2 contacts.
Checked 2 contact groups.
Checked 119 commands.
Checked 8 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 3 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 8 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 1
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.