Host Search Shows Services Instead

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lytxnoc
Posts: 44
Joined: Tue Aug 18, 2015 11:02 am

Host Search Shows Services Instead

Post 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=
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Host Search Shows Services Instead

Post 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.
Former Nagios Employee
lytxnoc
Posts: 44
Joined: Tue Aug 18, 2015 11:02 am

Re: Host Search Shows Services Instead

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

Re: Host Search Shows Services Instead

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
lytxnoc
Posts: 44
Joined: Tue Aug 18, 2015 11:02 am

Re: Host Search Shows Services Instead

Post by lytxnoc »

We upgraded from 5.2.2.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Host Search Shows Services Instead

Post 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.
Former Nagios employee
https://www.mcapra.com/
lytxnoc
Posts: 44
Joined: Tue Aug 18, 2015 11:02 am

Re: Host Search Shows Services Instead

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Host Search Shows Services Instead

Post 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?
Former Nagios employee
https://www.mcapra.com/
lytxnoc
Posts: 44
Joined: Tue Aug 18, 2015 11:02 am

Re: Host Search Shows Services Instead

Post by lytxnoc »

Sure, thanks for filing a bug report
Locked