Hi, > Better to remove NRPE and install Icinga on the VMs,
yes, I meant replacing NRPE by Icinga agent. > then use the master - > client setup described in section 6 of the documentaton: > > https://docs.icinga.com/icinga2/latest/doc/module/icinga2/chapter/distributed- > monitoring I read this document, but I was a bit confused which way to follow. There are too many possibilities. ;-) > Yes, except there is no Icinga "agent" - it's just Icinga. I think I read the term agent in the German Icinga book. >> I want the agents to be configured locally. > > Why? It's the way I currently manage the configuration with NRPE. I add all local expections to the nrpe_local config. When I work on the VM I can adjust the nrpe config and (if it's not a new command) I do not need to login to nagios. With icinga2 it seems that I could work this way too and even install new command locally and they are pushed to the master then. > You _can_ do that, yes, but I think centrally-configured on the master, using > top-down command endpoint (see above documentation), is best. Local > configuration is much harder to manage and to keep consistent. I'll read the top-down part again and reconsider it. I'm currently still figuring out how I can do my setup. I can still change everything. >> The host definition for the connected agents has been auto-generated > > by what? icinga2 node wizard >> in the repository.d/hosts folder. I can add the address / address6 entries >> there and after the config has been reloaded the master will ping the agent >> hosts (seen by higher latency). Is it best practice to change the >> autogenerated files or should I do this different? > > How are these files being auto-generated? What tool are you using for the > auto-generation? Same answer: icinga2 node wizard. The address/address6 is not included automatic. >> Icinga complains about syntax errors, when I add custom vars to the >> autogenerated host objects, e.g. vars.os = Linux. > > That should be: vars.os = "Linux" Even with this syntax I still get an error. I'm just not sure which one, systemd/journald hide the error message from me. They just say icinga2 reload failed, but do not show a reason. Need to check how to see the error. Regards Volker
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users