Him guys.
I have a new Nagios XI Install on Centos 6.4 x86_64.
Several problems following addition and removal of hosts / services.
1 - Configure -> Legacy CCM sometimes shows "page not found". Pkilled nagios & restarted - seems to work now.
2 - Configure -> Core config manager -> hosts shows no entries (even nagios host has been removed)
3 - Configure -> Core config manager -> Services is same as above - blank.
4 - Views -> Tactical Overview -> in # Active Host / Service Checks: 20 / 3
5 - Views -> Host Detail -> 20 hosts
6 - Views -> Service Detail -> 3 services.
7 - I tried removing all hosts and services from /usr/local/nagios/etc/hosts, /usr/local/nagios/etc/services
. COnfigure -> CCM -> Apply Configuration -> falure. Re-apply config -> success. Hosts & services get re-created under /usr/local/nagios/etc/hosts, /usr/local/nagios/etc/services
nagios xi centos ghost devices and page not found
-
visrailevich
- Posts: 3
- Joined: Mon May 13, 2013 10:07 am
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: nagios xi centos ghost devices and page not found
Did you physically delete the 'localhost' host? This host is required to be in the CCM at all times. When did this issue first occur? Were any changes made to the config files / mysql database that could have caused this? Are you logged in with the nagiosadmin account which will allow you to see all hosts and services? And finally, when you installed, was it on a fresh minimal installation where no previous Nagios products were installed or had been installed?
Can you run the Write Config Files tool under CCM > Tools. Click the Go buttons from top to bottom and list the output of each here please. You can block out info that is security related.
Can you run the Write Config Files tool under CCM > Tools. Click the Go buttons from top to bottom and list the output of each here please. You can block out info that is security related.
-
visrailevich
- Posts: 3
- Joined: Mon May 13, 2013 10:07 am
Re: nagios xi centos ghost devices and page not found
The localhost was deleted. I think via Core Config Manager, by others. This issue occured yesterday, not sure what was done to cause it. This is an eval install, and my manager was working on it. Nothing was done manually to cause this. I have however, made changes to my.cnf to hopefully improve mysql performance - I have 48G RAM, had 28G unused, so I added the following:
key_buffer = 5G
myisam_sort_buffer_size = 1G
table_open_cache = 1G
sort_buffer_size = 1G
read_buffer_size = 1G
read_rnd_buffer_size = 1G
This was a fresh install on a @Base server installation. Install went fine.
Write config files -> verify produced the following:
Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/etc/hosttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicedependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostdependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/hostescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...
Processing object config directory '/usr/local/nagios/etc/hosts'...
Processing object config file '/usr/local/nagios/etc/hosts/INET PEER - TWT RB.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP PERIM - AGG2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB PERIM - AGG1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB PERIM - DMZ.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB PERIM - ISR2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB PERIM - ISR1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP DC - CORE2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP DC - CORE1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB WAN - BB1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP PERIM - AGG1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP WAN - BB1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB PERIM - AGG2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB DC - CORE1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/INET PEER - L3 MP.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB WAN - BB2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.126.10.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP WAN - BB2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/10.192.254.16.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB DC - CORE2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/INET PEER - L3 RB.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/MP PERIM - AGG2.cfg'...
Processing object config file '/usr/local/nagios/etc/services/MP PERIM - AGG1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/MP WAN - BB2.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 3 services.
Checking hosts...
Warning: Host 'INET PEER - TWT RB' has no default contacts or contactgroups defined!
Checked 20 hosts.
Checking host groups...
Checked 0 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 6 contacts.
Checking contact groups...
Checked 2 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 108 commands.
Checking time periods...
Checked 12 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: 1
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Pressed write
Write host configurations ...
Host configuration files successfully written!
Write service configurations ...
Service configuration files successfully written!
Configuration file: hostgroups.cfg successfully written!
Configuration file: servicegroups.cfg successfully written!
Configuration file: hosttemplates.cfg successfully written!
Configuration file: servicetemplates.cfg successfully written!
Configuration file: timeperiods.cfg successfully written!
Configuration file: commands.cfg successfully written!
Configuration file: contacts.cfg successfully written!
Configuration file: contactgroups.cfg successfully written!
Configuration file: contacttemplates.cfg successfully written!
Configuration file: servicedependencies.cfg successfully written!
Configuration file: hostdependencies.cfg successfully written!
Configuration file: serviceescalations.cfg successfully written!
Configuration file: hostescalations.cfg successfully written!
Configuration file: serviceextinfo.cfg successfully written!
Configuration file: hostextinfo.cfg successfully written!
-> Restart
Cofigure -> Core Config Manager -> Hosts is still blank.
key_buffer = 5G
myisam_sort_buffer_size = 1G
table_open_cache = 1G
sort_buffer_size = 1G
read_buffer_size = 1G
read_rnd_buffer_size = 1G
This was a fresh install on a @Base server installation. Install went fine.
Write config files -> verify produced the following:
Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/etc/hosttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicedependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostdependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/hostescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...
Processing object config directory '/usr/local/nagios/etc/hosts'...
Processing object config file '/usr/local/nagios/etc/hosts/INET PEER - TWT RB.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP PERIM - AGG2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB PERIM - AGG1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB PERIM - DMZ.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB PERIM - ISR2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB PERIM - ISR1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP DC - CORE2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP DC - CORE1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB WAN - BB1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP PERIM - AGG1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP WAN - BB1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB PERIM - AGG2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB DC - CORE1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/INET PEER - L3 MP.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB WAN - BB2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.126.10.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP WAN - BB2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/10.192.254.16.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB DC - CORE2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/INET PEER - L3 RB.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/MP PERIM - AGG2.cfg'...
Processing object config file '/usr/local/nagios/etc/services/MP PERIM - AGG1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/MP WAN - BB2.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 3 services.
Checking hosts...
Warning: Host 'INET PEER - TWT RB' has no default contacts or contactgroups defined!
Checked 20 hosts.
Checking host groups...
Checked 0 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 6 contacts.
Checking contact groups...
Checked 2 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 108 commands.
Checking time periods...
Checked 12 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: 1
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Pressed write
Write host configurations ...
Host configuration files successfully written!
Write service configurations ...
Service configuration files successfully written!
Configuration file: hostgroups.cfg successfully written!
Configuration file: servicegroups.cfg successfully written!
Configuration file: hosttemplates.cfg successfully written!
Configuration file: servicetemplates.cfg successfully written!
Configuration file: timeperiods.cfg successfully written!
Configuration file: commands.cfg successfully written!
Configuration file: contacts.cfg successfully written!
Configuration file: contactgroups.cfg successfully written!
Configuration file: contacttemplates.cfg successfully written!
Configuration file: servicedependencies.cfg successfully written!
Configuration file: hostdependencies.cfg successfully written!
Configuration file: serviceescalations.cfg successfully written!
Configuration file: hostescalations.cfg successfully written!
Configuration file: serviceextinfo.cfg successfully written!
Configuration file: hostextinfo.cfg successfully written!
-> Restart
Cofigure -> Core Config Manager -> Hosts is still blank.
Re: nagios xi centos ghost devices and page not found
Lets look for errors:
Leave this running and try to access the ccm:
Configure -> Core config manager -> hosts
Post the errors here.
Code: Select all
tail -f /var/log/httpd/error_logConfigure -> Core config manager -> hosts
Post the errors here.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
visrailevich
- Posts: 3
- Joined: Mon May 13, 2013 10:07 am
Re: nagios xi centos ghost devices and page not found
I have fixed it. Removed all non-localhost entries from backup. Imported all configs from tools. Went into CCM and removed everything but localhost and it's services. Now it's the same as when I originally built it. Thank you for pointing me to the tools section.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: nagios xi centos ghost devices and page not found
Excellent, glad to hear this was resolved!