Page 1 of 1

Host Search Shows Services Instead

Posted: Tue Jun 21, 2016 12:07 pm
by lytxnoc
Since upgrading to 5.2.9, when doing a search after clicking "Host Detail" on the home page left navigation bar, it shows services instead of hosts. I ran a search here on the forum to see if anyone else was seeing the same, but came up empty. Here's an example:

I click "Host Detail" and it goes to http://[site]/nagiosxi/includes/components/xicore/status.php?show=hosts (which is expected).

Then I search for a host name in the search field and this shows:
http://[site]/nagiosxi/includes/components/xicore/status.php?show=services&sortby=name&sortorder=asc&host=&hostgroup=&servicegroup=&search=test&searchButton=

If I change "services" to "hosts" I get the results I want:
http://[site]/nagiosxi/includes/components/xicore/status.php?show=hosts&sortby=name&sortorder=asc&host=&hostgroup=&servicegroup=&search=test&searchButton=

Re: Host Search Shows Services Instead

Posted: Tue Jun 21, 2016 12:50 pm
by rkennedy
This is expected behavior, since the host still has services assigned to it. It matches all of the information to help searching, should you have wanted to pull a specific service. However, if you have a host with no services assigned, it will show the host status page.

Re: Host Search Shows Services Instead

Posted: Tue Jun 21, 2016 1:07 pm
by lytxnoc
Oh, because before the update, the "Host Detail" only showed hosts, so it was a smaller list even though I know there are services attached to them. If I wanted services, I'd go to "Service Detail". There, it would show me all the services for a host or search for services.

Re: Host Search Shows Services Instead

Posted: Tue Jun 21, 2016 1:33 pm
by lmiltchev
What is the Nagios XI version that you upgraded from? As far as I remember, this has been the default behavior in XI for quite some time.

Re: Host Search Shows Services Instead

Posted: Tue Jun 21, 2016 2:46 pm
by lytxnoc
We upgraded from 5.2.2.

Re: Host Search Shows Services Instead

Posted: Tue Jun 21, 2016 3:11 pm
by mcapra
I've filed an internal bug report (ID# 8867). While the search function does work quite well, it doesn't always make sense to display every service for a matching host if all you want is to view the host itself.

Re: Host Search Shows Services Instead

Posted: Tue Jun 21, 2016 3:16 pm
by lytxnoc
Right, that was my thought is there's a reason for the "Service Detail" and "Host Detail" because sometimes I just want to do a quick search for all hosts and don't care about the services.

Re: Host Search Shows Services Instead

Posted: Tue Jun 21, 2016 3:18 pm
by mcapra
Since a bug report was submit, is there anything else you needed assistance with regarding this issue? Is it ok to lock this thread?

Re: Host Search Shows Services Instead

Posted: Tue Jun 21, 2016 3:21 pm
by lytxnoc
Sure, thanks for filing a bug report