Servicegroup Members defined by logic

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Servicegroup Members defined by logic

Postby jkbuster » Tue Jun 18, 2013 10:46 am

I'm trying to do something fancy, and maybe a little too fancy. Here's the example:

Host1 is in hostgroups "type1" and "env1"
Host2 is in hostgroups "type1" and "env2"
Services are applied to the "type1" hostgroup
I want certain services of Host1's to be in the "env1-app" servicegroup, and the same for Host2 except for "env2-app"

Is this something that anyone has tried before? Have you had any success?

Posts: 8
Joined: Thu Feb 14, 2013 1:02 pm

Re: Servicegroup Members defined by logic

Postby abrist » Tue Jun 18, 2013 10:57 am

Yep, this is one of the major configuration paradigms for nagios.
Make service templates/servicegroups for checks, add them hostgroups, and then add hosts to those hostgroups.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Return to Community Support

Who is online

Users browsing this forum: Google [Bot] and 22 guests