Core Configuration Manager Not Updating
Core Configuration Manager Not Updating
When we make changes in the core configuration manager we do not see the service/hosts/contacts in Nagios. They are in the configuration manager, but are not the main XI service/host menus.. Any ideas? We did a import of our existing core configuration in to XI. No errors.
Re: Core Configuration Manager Not Updating
Did you hit the 'Apply Configuration' button after making your changes? Your changes will not actually take effect immediately; you have to tell XI to write the new config files.
Re: Core Configuration Manager Not Updating
Yeah. And the status bar comes up as it writes.. takes about 30-40 seconds and then says it was successful. I have even tries restarting the services after.
Re: Core Configuration Manager Not Updating
Also checked and the entries in the config are sync'd and active.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Core Configuration Manager Not Updating
could you run the following on the server and attach reconfig.txt
Code: Select all
# cd /usr/local/nagiosxi/scripts
# reconfigure_nagios.sh &> reconfig.txtRe: Core Configuration Manager Not Updating
scottwilkerson wrote:could you run the following on the server and attach reconfig.txtCode: Select all
# cd /usr/local/nagiosxi/scripts # reconfigure_nagios.sh &> reconfig.txt
Code: Select all
[root@vps-1002734-780 scripts]# cat reconfig.txt
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=apple12' -O nagiosql.login--2012-01-16 14:15:34-- http://localhost/nagiosql/index.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... failed: Connection refused.
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosql/admin.php [following]
--2012-01-16 14:15:35-- http://localhost/nagiosql/admin.php
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: `nagiosql.login'
0K ..... 100% 388M=0s
2012-01-16 14:15:35 (388 MB/s) - `nagiosql.login' saved [5286/5286]
LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosql/admin/import.php
Array
(
)
RESETTING PERMS
SETUID ROOT OK
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=apple12' -O nagiosql.login--2012-01-16 14:15:39-- http://localhost/nagiosql/index.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... failed: Connection refused.
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosql/admin.php [following]
--2012-01-16 14:15:40-- http://localhost/nagiosql/admin.php
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: `nagiosql.login'
0K ..... 100% 388M=0s
2012-01-16 14:15:40 (388 MB/s) - `nagiosql.login' saved [5286/5286]
LOGIN SUCCESSFUL!
URL: http://localhost/nagiosql/admin/verify.php
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeMonitoring=Go' -O nagiosql.export.monitoring
--2012-01-16 14:15:41-- http://localhost/nagiosql/admin/verify.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... failed: Connection refused.
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7096 (6.9K) [text/html]
Saving to: `nagiosql.export.monitoring'
0K ...... 100% 564M=0s
2012-01-16 14:16:35 (564 MB/s) - `nagiosql.export.monitoring' saved [7096/7096]
WRITE CONFIGS SUCCESSFUL!
--2012-01-16 14:16:35-- http://localhost/nagiosql/admin/verify.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... failed: Connection refused.
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7400 (7.2K) [text/html]
Saving to: `nagiosql.export.additional'
0K ....... 100% 504M=0s
2012-01-16 14:16:41 (504 MB/s) - `nagiosql.export.additional' saved [7400/7400]
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeAdditional=Go' -O nagiosql.export.additional
OUTPUT:
Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg.local'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/escalations.cfg'...
Processing object config directory '/usr/local/nagios/etc/objects/hostgroups'...
Processing object config file '/usr/local/nagios/etc/objects/hostgroups/dedicated.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 900 services.
Checking hosts...
Checked 194 hosts.
Checking host groups...
Checked 37 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 10 contacts.
Checking contact groups...
Checked 6 contact groups.
Checking service escalations...
Checked 3617 service escalations.
Checking service dependencies...
Checked 96 service dependencies.
Checking host escalations...
Checked 390 host escalations.
Checking host dependencies...
Checked 4 host dependencies.
Checking commands...
Checked 56 commands.
Checking time periods...
Checked 4 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...done.
Stopping nagios: ..done.
Starting nagios: done.
RESETTING PERMS
SETUID ROOT OK
/usr/local/nagiosxi/nom/checkpoints/nagioscore /usr/local/nagiosxi/scripts
tar: Removing leading `/' from member names
/usr/local/nagiosxi/scripts
[root@vps-1002734-780 scripts]#
Re: Core Configuration Manager Not Updating
Not sure if this helps, but when I login and run "ps -ef" I see a list of pings to systems that are apart of my host lists, but under host details in XI all I see is localhost..
Re: Core Configuration Manager Not Updating
Can you try applying configs manually using the Core Config Manager->Write Config Tool and see if the results are any different?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Core Configuration Manager Not Updating
When you did your import from core, you had several options as described in this document
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
Did you choose to just place them in the /usr/local/nagios/etc/static directory? If so that would likely be the reason.
You you would like to import them into the XI database the documentation is here:
http://assets.nagios.com/downloads/nagi ... nto_XI.pdf
http://assets.nagios.com/downloads/nagi ... p_Tool.pdf
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
Did you choose to just place them in the /usr/local/nagios/etc/static directory? If so that would likely be the reason.
You you would like to import them into the XI database the documentation is here:
http://assets.nagios.com/downloads/nagi ... nto_XI.pdf
http://assets.nagios.com/downloads/nagi ... p_Tool.pdf
Re: Core Configuration Manager Not Updating
Hey Guys.. I did copy my config files on to the /usr/local/nagios/etc folder and then did an import from there. I have written the config from the tools menu and restarted Nagios. I also tried to do another import of a small host file and that didn't show up in XI. Should I start over and copy the config files to a temp folder and then import?scottwilkerson wrote:When you did your import from core, you had several options as described in this document
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
Did you choose to just place them in the /usr/local/nagios/etc/static directory? If so that would likely be the reason.
You you would like to import them into the XI database the documentation is here:
http://assets.nagios.com/downloads/nagi ... nto_XI.pdf
http://assets.nagios.com/downloads/nagi ... p_Tool.pdf