Quick search via file or multiple hosts

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nerdgz
Posts: 28
Joined: Mon Feb 10, 2014 10:21 am

Quick search via file or multiple hosts

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

Re: Quick search via file or multiple hosts

Post by tmcdonald »

Can you please clarify what you are looking for? What files are you searching, and what information are you seeking?
Former Nagios employee
nerdgz
Posts: 28
Joined: Mon Feb 10, 2014 10:21 am

Re: Quick search via file or multiple hosts

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

Re: Quick search via file or multiple hosts

Post 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?
Former Nagios Employee
nerdgz
Posts: 28
Joined: Mon Feb 10, 2014 10:21 am

Re: Quick search via file or multiple hosts

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

Re: Quick search via file or multiple hosts

Post 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.
Former Nagios Employee
Locked