Wanted to create a static config file and define a servicegroup in it, like so:
Code: Select all
define servicegroup{
servicegroup_name non_system
alias everything except system
members *
servicegroup_members !system
}
What the end result is, I want every service to belong to this servicegroup EXCEPT the services that belong to "system" servicegroup. When I verify it says
Code: Select all
Error: Could not find member group '!system' specified in servicegroup 'non_system' (config file '/usr/local/nagios/etc/static/non_system.cfg', starting on line 1)
I get the same thing if I instead try and ! the individual services. I know I could go through and add every defined service to the service group I want, but I would rather it be automatic like I was trying. When the datacenter isn't primary they want to disable notifications for all services in this new service group. Can anyone think of what I am doing wrong or suggest another method. From what I am seeing, doesn't look like you can use ! in servicegroup definitions.
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