Page 1 of 1

How to filter "not been monitored" hosts?

Posted: Wed Mar 20, 2019 12:04 pm
by xpertech
If there're thousands of hosts/services in NagiosXI been monitored, how to quick filter the hosts that "had not been monitored" of specific service?

Re: How to filter "not been monitored" hosts?

Posted: Wed Mar 20, 2019 2:06 pm
by benjaminsmith
Hello @xpertech,

Can you describe in more detail which hosts/services you're trying to filter? If the host or service is active, it should be monitored and any inactive hosts/services are not being monitored, and you can sort those in the CCM under Monitoring > Hosts or Services.

Thanks.

Re: How to filter "not been monitored" hosts?

Posted: Wed Mar 20, 2019 8:43 pm
by xpertech
benjaminsmith wrote:Hello @xpertech,

Can you describe in more detail which hosts/services you're trying to filter? If the host or service is active, it should be monitored and any inactive hosts/services are not being monitored, and you can sort those in the CCM under Monitoring > Hosts or Services.

Thanks.
e.g. since there're thousands of host/service, maybe I forgot whether some hosts been monitered http service or not, I want to quick filter which host had not been monitered http, so I can setup http moniter for those hosts.

Re: How to filter "not been monitored" hosts?

Posted: Thu Mar 21, 2019 10:46 am
by benjaminsmith
Hello @xpertech,

One way to view which check command is being used for a hosts is to log into the core interface http://ip-address/nagios, and then go to System > Configuration > Hosts and this will list the configuration of all hosts ( search for http ).

Alternatively, you can search the objects.cach file and view the check_commands for the hosts.

For example:

Code: Select all

 cat /usr/local/nagios/var/objects.cache | grep "host_name\|check_command" 

Re: How to filter "not been monitored" hosts?

Posted: Thu Mar 21, 2019 1:15 pm
by xpertech
benjaminsmith wrote:Hello @xpertech,

One way to view which check command is being used for a hosts is to log into the core interface http://ip-address/nagios, and then go to System > Configuration > Hosts and this will list the configuration of all hosts ( search for http ).

Alternatively, you can search the objects.cach file and view the check_commands for the hosts.

For example:

Code: Select all

 cat /usr/local/nagios/var/objects.cache | grep "host_name\|check_command" 

What I'm trying to search is that which check command "was not being used" from host list.

Re: How to filter "not been monitored" hosts?

Posted: Thu Mar 21, 2019 1:23 pm
by benjaminsmith
Hello @xpertech
What I'm trying to search is that which check command "was not being used" from host list.
Ok. Currently, the web interface does not have that kind of search/sort features. However, you can use the steps described to help sort or search hosts and their check commands.