How to create service groups in Nagios

Just finished establishing Service Groups in Nagios so that all Web Virtual Servers are grouped properly.
Here’s how – just create a simple config stanza like this:
[code]
define servicegroup{
servicegroup_name local_net
alias Amwell Local LAN
}
[/code]
Then, just insert the following into the desired service definitions:
servicegroups {$servicegroup_name}
[code]
define service{
use generic-service
host_name shadowfax
servicegroups local_net
service_description Printer Web Admin GUI
check_command check_http_url!http://shadowfax!"Canon MX850"
}
[/code]
Leave Your Comment
All fields marked with "*" are required.