Page 1 of 1

Services link inconsistancy

Posted: Fri Jul 31, 2015 10:30 am
by marquetteu
I noticed today that when i click on the OK or Critical links in the hostgroup overview for localhost i get the following:

Code: Select all

https://vs-xi/nagiosxi/includes/components/xicore/status.php?&show=services&host=localhost&servicestatustypes=2
however, when i click on the link for a host that i created the link is different:

Code: Select all

https://vs-xi/nagiosxi/includes/components/xicore/status.php?&show=services&hostgroup=linux-servers&host=vs-test&servicestatustypes=2
The main difference is that the hosts i create have &hostgroup=linux-servers added to the URL. Is there any way to prevent that and get the behavior that i get with localhost for links?

thanks!
Adam

Re: Services link inconsistancy

Posted: Fri Jul 31, 2015 1:22 pm
by lmiltchev
This depends on how the host was added to the hostsgroup. There are two ways:

1. CCM->Hosts->Edit->Manage Hostgroups->Add Selected
2. CCM->Hostgroups->Edit->Manage Hosts->->Add Selected

Compare the settings for both hosts and make sure they are the same.

Re: Services link inconsistancy

Posted: Fri Jul 31, 2015 1:52 pm
by marquetteu
so when i compared the 2 hosts it looks like both were added through CCM->Hostgroups->Edit->Manage Hosts->->Add Selected

to test i also tried adding it through CCM->Hosts->Edit->Manage Hostgroups->Add Selected however, the same behavior was exhibited. The only way i was able to have the link show up without the extra part in the URL was to clone localhost and then edit the clone

Re: Services link inconsistancy

Posted: Fri Jul 31, 2015 2:13 pm
by tmcdonald
Is this on the latest XI version 2014R2.7?

Re: Services link inconsistancy

Posted: Fri Jul 31, 2015 2:17 pm
by marquetteu
Yes this is on the latest version

Re: Services link inconsistancy

Posted: Mon Aug 03, 2015 10:01 am
by lmiltchev
Can you show us the configs of both hosts, and the hostgroup they are members of?

CCM->Hosts-><host 1>->View Text Config (the diskette icon)
CCM->Hosts-><host 2>->View Text Config (the diskette icon)
CCM->Host Groups-><hostgroup>->View Text Config (the diskette icon)

Re: Services link inconsistancy

Posted: Thu Aug 06, 2015 11:08 am
by marquetteu
Here is the requested configs and also screenshots of what i am seeing

hostgroup screenshot:
hostgroup.png
xi-ok screenshot:
xi-ok.png
xiprod-ok screenshot:
xiprod-ok.png
Host 1:

Code: Select all

###############################################################################
#
# Host configuration file
#
# Created by: Nagios Core Config Manager 2.3.3
# Date:	      2015-08-06 10:50:59
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios CCM will overwrite all manual settings during the next update if you 
# would like to edit files manually, place them in the 'static' directory or 
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define host {
	host_name			vs-xi
	use				linux-server
	alias				vs-xi
	address				127.0.0.1
	register			1
	}	

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################
host2:

Code: Select all

###############################################################################
#
# Host configuration file
#
# Created by: Nagios Core Config Manager 2.3.3
# Date:	      2015-08-06 10:54:41
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios CCM will overwrite all manual settings during the next update if you 
# would like to edit files manually, place them in the 'static' directory or 
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define host {
	host_name			vs-xiprod
	use				linux-server
	alias				vs-xiprod
	address				134.48.29.86
	register			1
	}	

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################
hostgroup:

Code: Select all

###############################################################################
#
# Hostgroup configuration file
#
# Created by: Nagios Core Config Manager 2.3.3
# Date:	      2015-08-06 10:53:14
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios CCM will overwrite all manual settings during the next update if you 
# would like to edit files manually, place them in the 'static' directory or 
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define hostgroup {
	hostgroup_name                		linux-servers
	alias                         		Linux Servers
	members                       		vs-xi,vs-xiprod
	}	

###############################################################################
#
# Timeperiod configuration file
#
# END OF FILE
#
###############################################################################

Re: Services link inconsistancy

Posted: Thu Aug 06, 2015 11:59 am
by lmiltchev
After digging a little bit more into this, we actually confirmed that this is a bug. Our developers are looking into this as we speak. The issue will be fixed in the next release of XI.