Services link inconsistancy

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
marquetteu
Posts: 47
Joined: Tue Nov 13, 2012 12:08 pm

Services link inconsistancy

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

Re: Services link inconsistancy

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
marquetteu
Posts: 47
Joined: Tue Nov 13, 2012 12:08 pm

Re: Services link inconsistancy

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Services link inconsistancy

Post by tmcdonald »

Is this on the latest XI version 2014R2.7?
Former Nagios employee
marquetteu
Posts: 47
Joined: Tue Nov 13, 2012 12:08 pm

Re: Services link inconsistancy

Post by marquetteu »

Yes this is on the latest version
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Services link inconsistancy

Post 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)
Be sure to check out our Knowledgebase for helpful articles and solutions!
marquetteu
Posts: 47
Joined: Tue Nov 13, 2012 12:08 pm

Re: Services link inconsistancy

Post 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
#
###############################################################################
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Services link inconsistancy

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked