Services not updating accordingly

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sheld0r
Posts: 49
Joined: Thu Jan 03, 2013 5:39 pm

Services not updating accordingly

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Services not updating accordingly

Post 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
sheld0r
Posts: 49
Joined: Thu Jan 03, 2013 5:39 pm

Re: Services not updating accordingly

Post 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
	}
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Services not updating accordingly

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sheld0r
Posts: 49
Joined: Thu Jan 03, 2013 5:39 pm

Re: Services not updating accordingly

Post by sheld0r »

The copy command worked great! Good call! Thank you guys!!!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Services not updating accordingly

Post by slansing »

Awesome! Thanks for letting us know sheld0r!
Locked