Display inactive hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Display inactive hosts

Post by BanditBBS »

Ok, I have thousands of hosts and services and there is no way to show me the few that I have disabled. I have to show all and then scroll down and look for the NO. That isn't very good approach as I could easily miss one. I then tried to use the backend api to show hosts. There is a column "is_active" but the problem with the backend, it only shows the active configurations, so why even show that field. Is there a way to get the inactive or am I going to have to put in a feature request?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Display inactive hosts

Post by abrist »

I don't know if this option exists in the ui. But you can get it from a query:

Code: Select all

echo 'use nagiosql;select host_name from tbl_host where active like 0;' | mysql -pnagiosxi
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Display inactive hosts

Post by BanditBBS »

Yeah, well, you just gave me that Andy so I couldn't say you are telling me No yet again, LOL.

I opened a feature request and this thread can be closed. feature request here: http://tracker.nagios.com/view.php?id=510
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Locked