hi!
I have no idea why i can't get this to work. i'm using puppet to automatically add nodes to my nagios server. So far i can add the nodes as hosts and add the services just fine (with a workaround with permissions). But when i try to add a host to a host group, i'm only seeing it being defined in the host.cfg definition not in the hostgroup.cfg file as a member. The host group got created but there are not members in the cfg file.
Here is the current definition. which i know currently works as it should, where it adds the host group name in the host definition. I've fiddled with these configs a bunch to try and get the member added but just can't figure it out. Any help would be AMAZING!
my puppet configs are:
Server side-
class nagios_server::import{client side-
class nagios_client::targets {I've tried doing
@@nagios_hostgroup {
"all-hosts":
target => "/etc/nagios3/objects/hostgroups/all-hosts.cfg",
members => $hostname,
}
but that didn't work.