2.6 Grouping Services Together with servicegroup

Service groups, like host groups, combine several services into a group, so that they can be represented together in the Web front end. This increases clarity and simplifies certain evaluations, but it is optional, and is not recommended at the beginning, in order to keep configuration simple.

# -- /etc/nagios/mysite/servicegroups.cfg
define servicegroup{
  servicegroup_name            all-ping
  alias                        All Pings
  members                      linux01, PING, linux02, PING
  servicegroup_members(*) servicegroup1, servicegroup2
}

servicegroup_name and alias have the same meanings as for the host group. It should be noted that the syntax is the same as for the members entry. Because a service in Nagios always consists of the combination ...

Get Nagios, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.