How to filter "not been monitored" hosts?
Posted: Wed Mar 20, 2019 12:04 pm
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?
Support for Nagios products and services
https://support.nagios.com/forum/
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.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.
Code: Select all
cat /usr/local/nagios/var/objects.cache | grep "host_name\|check_command"
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"
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.What I'm trying to search is that which check command "was not being used" from host list.