Page 1 of 1
Quick search via file or multiple hosts
Posted: Tue Aug 02, 2016 8:52 am
by nerdgz
Hello Everyone,
every month i need to check always different server that are in different groups. For that I would like to have a search function via file or maybe add multiple line on the quick search function.
At the moment I am checking that one by one... not nice
Someone has the same problem as me ? Any suggestion ?
Thank you in advance.
Re: Quick search via file or multiple hosts
Posted: Tue Aug 02, 2016 3:35 pm
by tmcdonald
Can you please clarify what you are looking for? What files are you searching, and what information are you seeking?
Re: Quick search via file or multiple hosts
Posted: Wed Aug 03, 2016 2:42 am
by nerdgz
I'm looking for something that from the Nagios web interface I will be able to search for hosts via the "Quick search" if I give multiple hosts names and all of them show the "Service Status Details For Hosts" in one page.
Re: Quick search via file or multiple hosts
Posted: Wed Aug 03, 2016 10:19 am
by rkennedy
I don't think this is going to work with multiple hosts how you're looking to. Have you thought about using host groups / service groups to organize things in a way you'd like?
Re: Quick search via file or multiple hosts
Posted: Thu Aug 04, 2016 2:44 am
by nerdgz
I already have hostgroups created for different type of servers but I need to search dynamically. Also there are more people that looks into the web interface with different severs that are in different groups..
I was thinking in do something like the following link, create a second search where I can add multiple host in the list and search on the objects. Cache and status.dat. the most complicate thing will be to give "Service Status Details For Hosts" view in the first page...
https://exchange.nagios.org/directory/A ... gi/details
Re: Quick search via file or multiple hosts
Posted: Thu Aug 04, 2016 10:58 am
by rkennedy
Got it, won't be possible currently. It'd be pretty interesting for regex matching being built into Core. Could you raise an issue on our GitHub about it?
https://github.com/NagiosEnterprises/nagioscore/issues
One thing to note about what you linked - it mentions compatibility with Nagios 3.x, so if you're using 4.x it may not work.