Page 1 of 1
Display with specific hosts and services
Posted: Tue Jul 28, 2020 11:42 am
by angpie01
Hello, I am looking to create a filter to be able to group some hosts and service. In the filters of the 'Operations center' I can only filter by Hosts or by services, not both at the same time ...
Thank you!
Re: Display with specific hosts and services
Posted: Wed Jul 29, 2020 11:09 am
by benjaminsmith
HI
@angpie01,
Welcome to the Nagios Forum!
I would recommend creating a new service group in the CCM ( go to Configure > Core Configuration Manager ) with the desired services, then filtering on that service group in the Operations Center page.
Let me know if that would work for you.
Re: Display with specific hosts and services
Posted: Wed Jul 29, 2020 12:10 pm
by angpie01
Thank you. However when a service is used on several hosts I cannot add it to the services group. Only services that are only used on a host are available
Re: Display with specific hosts and services
Posted: Thu Jul 30, 2020 1:04 pm
by lmiltchev
You should be able to add a service to a service group, even if it was originally added to multiple hosts... I don't know why this is not working for you.
Are you getting an error when applying configuration? What is the version of Nagios XI that you are currently using?
Your servicegroup config should look something like this:
Code: Select all
define servicegroup {
servicegroup_name ServiceGroupName
alias ServiceGroupName
members Host1,MyService,Host2,MyService,Host2,MyService...
}