O'Reilly logo

Nagios, 2nd Edition by Wolfgang Barth

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required