How to create service groups in Nagios

Published Date Author: , Posted October 30th, 2009 at 5:03:50pm

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]

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.