I'm kinda stumped on this one. I'm defining a HostGroup and then
trying to access it, but it's not working.
object HostGroup "atlantic101" {
display_name = "atlantic101"
assign where host.vars.range == "atlantic101"
}
hg1 = get_host_group("atlantic101")
if ( hg1) {
log("MMM able to retrieve hostgroup")
} else {
log("MMM unable to retrieve hostgroup")
}
for (hg in get_objects(HostGroup)) {
log("MMM inside for loop")
}
What shows up in the logs are "MMM unable to retrieve hostgroup".
The log statement inside the for loop does not happen.
So, it seems that get_host_group and get_objects are not working? I'm
not sure what's going on.
--
---
Michael Martinez
http://www.michael--martinez.com
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users