Servicegroup Members defined by logic

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jkbuster
Posts: 8
Joined: Thu Feb 14, 2013 1:02 pm

Servicegroup Members defined by logic

Post by jkbuster »

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?

--
JKB
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Servicegroup Members defined by logic

Post by abrist »

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