Service Management - issue
-
maxwellmiranda
- Posts: 113
- Joined: Thu Mar 22, 2012 3:24 pm
Service Management - issue
in Nagios Xi services for some of the servers, the sync status shows as " sync missed"
following is the definition in config file for the service
define service {
host_name tlehau.bose.com
service_description Listener Check
use generic-service
display_name Listener Check
servicegroups CIS-DBA-SERVICE-GROUP
check_command check_xi_by_ssh! -C "ps -aef | grep LISTENER"!!!!!!!
initial_state o
max_check_attempts 2
check_interval 10
retry_interval 2
check_period 24x7
notification_interval 15
notification_period 24x7
notification_options w,u,c
notifications_enabled 1
contacts dbapage,dbauser
register 1
}
and here is the second one
define service {
host_name remhau.bose.com
service_description Connection Time
use xiwizard_oracletablespace_service
display_name Connection Time
servicegroups CIS-DBA-SERVICE-GROUP
check_command check_xi_oracletablespace! --connect "(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = remhau.bose.com)(PORT = 1527)))(CONNECT_DATA =(SID = remprd10)))" --username nagios --password nagios --mode connection-time --warning 1 --critical 5!!!!!!!
initial_state o
max_check_attempts 2
check_interval 15
retry_interval 5
check_period 24x7
notification_interval 60
notification_period 24x7
notification_options w,c
notifications_enabled 1
contacts dbauser
register 1
}
following is the definition in config file for the service
define service {
host_name tlehau.bose.com
service_description Listener Check
use generic-service
display_name Listener Check
servicegroups CIS-DBA-SERVICE-GROUP
check_command check_xi_by_ssh! -C "ps -aef | grep LISTENER"!!!!!!!
initial_state o
max_check_attempts 2
check_interval 10
retry_interval 2
check_period 24x7
notification_interval 15
notification_period 24x7
notification_options w,u,c
notifications_enabled 1
contacts dbapage,dbauser
register 1
}
and here is the second one
define service {
host_name remhau.bose.com
service_description Connection Time
use xiwizard_oracletablespace_service
display_name Connection Time
servicegroups CIS-DBA-SERVICE-GROUP
check_command check_xi_oracletablespace! --connect "(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = remhau.bose.com)(PORT = 1527)))(CONNECT_DATA =(SID = remprd10)))" --username nagios --password nagios --mode connection-time --warning 1 --critical 5!!!!!!!
initial_state o
max_check_attempts 2
check_interval 15
retry_interval 5
check_period 24x7
notification_interval 60
notification_period 24x7
notification_options w,c
notifications_enabled 1
contacts dbauser
register 1
}
Re: Service Management - issue
Are you able to Apply Configuration successfully?
If so, does the 'out of sync' appear even after applying configuration?
If so, does the 'out of sync' appear even after applying configuration?
-
maxwellmiranda
- Posts: 113
- Joined: Thu Mar 22, 2012 3:24 pm
Re: Service Management - issue
yes..i am able to apply the configuration.....the services work vwey well
it doesnot appear for the other services i have configured....
it doesnot appear for the other services i have configured....
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Service Management - issue
Can you run the following and attach or PM me list.txt
Code: Select all
ls -l /usr/local/nagios/etc/services > list.txt-
maxwellmiranda
- Posts: 113
- Joined: Thu Mar 22, 2012 3:24 pm
Re: Service Management - issue
nagprod:/home/nagios> cat list.txt
total 44
-rw-rw-r-- 1 apache nagios 3081 Sep 12 11:19 localhost.cfg
-rw-rw-r-- 1 apache nagios 8089 Sep 12 11:19 mxtjmfgdrmhau.bose.com.cfg
-rw-rw-r-- 1 apache nagios 8321 Sep 12 11:19 nxhau.bose.com.cfg
-rw-rw-r-- 1 apache nagios 8177 Sep 12 11:19 remhau.bose.com.cfg
-rw-rw-r-- 1 apache nagios 8322 Sep 12 11:19 tlehau.bose.com.cfg
this is the output of the file...
i have already given you the configuration for the two services that we are getting the "Sync Missed" status
total 44
-rw-rw-r-- 1 apache nagios 3081 Sep 12 11:19 localhost.cfg
-rw-rw-r-- 1 apache nagios 8089 Sep 12 11:19 mxtjmfgdrmhau.bose.com.cfg
-rw-rw-r-- 1 apache nagios 8321 Sep 12 11:19 nxhau.bose.com.cfg
-rw-rw-r-- 1 apache nagios 8177 Sep 12 11:19 remhau.bose.com.cfg
-rw-rw-r-- 1 apache nagios 8322 Sep 12 11:19 tlehau.bose.com.cfg
this is the output of the file...
i have already given you the configuration for the two services that we are getting the "Sync Missed" status
Re: Service Management - issue
Check and see if the following applies to your issue:
http://support.nagios.com/wiki/index.ph ... e.22_Error
http://support.nagios.com/wiki/index.ph ... e.22_Error
-
maxwellmiranda
- Posts: 113
- Joined: Thu Mar 22, 2012 3:24 pm
Re: Service Management - issue
this doesnot apply to our case
Re: Service Management - issue
What happens when you try to use the Core Config Manager->Write Config Tool to write out your configuration files? Does it give any error output when run through each of those steps?
-
maxwellmiranda
- Posts: 113
- Joined: Thu Mar 22, 2012 3:24 pm
Re: Service Management - issue
there is no error or warning after i follow the steps you mentionedd
Total Warnings: 0
Total Errors: 0
Written configuration files are valid. Nagios can be restarted!
Total Warnings: 0
Total Errors: 0
Code: Select all
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/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.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/tlehau.bose.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/nxhau.bose.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/nagprod.bose.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/mxtjmfgdrmhau.bose.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/remhau.bose.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/localhost.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/tlehau.bose.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/nxhau.bose.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/mxtjmfgdrmhau.bose.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/remhau.bose.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 61 services.
Checking hosts...
Checked 6 hosts.
Checking host groups...
Checked 6 host groups.
Checking service groups...
Checked 3 service groups.
Checking contacts...
Checked 6 contacts.
Checking contact groups...
Checked 3 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 85 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: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check Written configuration files are valid. Nagios can be restarted!
Re: Service Management - issue
The "Out of sync" message is appearing because the "last modified" field in the Config database is newer than the last file modification time for the files in /usr/local/nagios/etc/services/.
Can you post the output from the Admin->Profile page?
Can you run:
and post the output?
Can you post the output from the Admin->Profile page?
Can you run:
Code: Select all
ls -l /usr/local/nagios/etc/services/