Page 1 of 1

Services not updating accordingly

Posted: Fri Apr 19, 2013 4:40 pm
by sheld0r
I wanted to add another comment on my last thread, but it got locked. Maybe it's a good idea to start a new thread.

Changes I make in the CCM of existing items appear shortly after, but when I try to add a new service it doesn't appear on the home screen. I clicked saved the changes I made selected the 'Apply Configuration' after making my changes. I even went as far as to restart the Nagios service, yet those new services don't appear on the home screen. I'm logged in as nagiosadmin, and viewing the home screen as nagiosadmin.

Am I suppose to do something else to show or save these additions?

Re: Services not updating accordingly

Posted: Mon Apr 22, 2013 9:30 am
by slansing
The added services should appear on pages where you can view them, try checking the Service Details page, scroll to the host's name, and then look for the new services. When you ran the apply configuration tool did it show three green check marks or did it error out? Can you also please send us a screen shot of the service in the CCM list so we can make sure it is synced. And finally please send us the configuration of this service either in text here, or via an attachment. This information can be attained by clicking the diskette icon next to the service where it is listed in the CCM. Please block out any sensitive information. Also, from the XI server's command line please share the output of:

Code: Select all

tail /var/log/httpd/error_log

tail /var/log/httpd/access_log

Re: Services not updating accordingly

Posted: Wed Apr 24, 2013 1:15 pm
by sheld0r
Yes, it showed three green check marks.

Image

Uploaded with ImageShack.us

I think I found the problem. As you can see below, the two services that aren't coming up are missing configurations. What would cause that? I added those services the same way I added the Blackberry Dispatcher.

Code: Select all

define service {
	host_name			bes.company.local
	service_description		BlackBerry Dispatcher
	use				xiwizard_windowsserver_nsclient_service
	check_command			check_xi_service_nsclient!password!SERVICESTATE!-l 'BlackBerry Dispatcher' -d SHOWALL!!!!!
	max_check_attempts		5
	check_interval			5
	retry_interval			1
	check_period			xi_timeperiod_24x7
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	contact_groups			admins
	_xiwizard			windowsserver
	register			1
	}	

define service {
	service_description		BlackBerry Router
	check_command			check_xi_service_nsclient!password!SERVICESTATE!-l 'BlackBerry Router' -d SHOWALL!!!!!
	register			1
	}	

define service {
	service_description		Blackberry SQL
	check_command			check_xi_service_nsclient!password!SERVICESTATE!-l MSSQL$BLACKBERRY -d SHOWALL!!!!!
	register			1
	}

Re: Services not updating accordingly

Posted: Wed Apr 24, 2013 1:37 pm
by lmiltchev
I added those services the same way I added the Blackberry Dispatcher.
When you are adding a service manually in the CCM, it's easy to miss to configure some of the options. I would recommend clicking on the "Copy" actions button, and then modifying the copy, rather than building a new check from a scratch.

You can review "Copying Hosts" section in this document. Copying services is done in a similar way.

Re: Services not updating accordingly

Posted: Wed Apr 24, 2013 1:43 pm
by sheld0r
The copy command worked great! Good call! Thank you guys!!!

Re: Services not updating accordingly

Posted: Wed Apr 24, 2013 2:11 pm
by slansing
Awesome! Thanks for letting us know sheld0r!