Exclude hostgroups from service check.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Exclude hostgroups from service check.

Post by BanditBBS »

Ok, so here is a question that is boggling my mind and I expect abrist to reply with his normal bad news.

I have a service created and assigned to:
Hostgroup1
Hostgroup2
Hostgroup3
Hostgroup4
Hostgroup5

However, there are hosts spread throughout all 5 hostgroups that I want to exclude from the service. They are all members of hostgroup6. Is there a way to exclude those hosts and have them part of the other hostsgroups that are included?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Exclude hostgroups from service check.

Post by abrist »

I have yet to crush any hopes and dreams this week, so I have to start somewhere:
The "hostgroup" directive does not support negation, otherwise this would be a simple solution. Are these geographic or purpose-based hostgroups (you may have to break things down a bit more . . .)? The following email exchange is worth looking at:
http://www.mail-archive.com/nagios-user ... 37148.html
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.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Exclude hostgroups from service check.

Post by BanditBBS »

Thanks abrist, you didn't fail me! :evil:

I guess I will create more hostgroups...feel free to lock this up
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Locked