Am 04.04.2017 um 19:12 schrieb Scott:

Hi Scott,

this doesn't answer your director question, but hopefully the one about
your binary distribution problem.

What I did (on my Linux platform, but could work with Windows, too) is,
I created a scripts subdirectory in my global-templates directory. There
I put the scripts and binaries that I need for checking stuff. That is
getting replicated to all endpoints.

On the endpoints I created a cronjob that runs all x minutes and that
symlinks everything under
/var/lib/icinga2/api/zones/global-templates/_etc/.../scripts/ (might
vary for windows) to my PluginContribDir. That's quite an easy way for
me to update the neat little scripts without using a full blown Puppet /
Ansible / Chef / whatever installation.

The only thing that does not work (not that much of a problem) is
getting the dependencies for eg. Perl scripts resolved that way. There,
I still manually install the required packages via yum.

Hope that helps,
Stephan

> Hi,
>
> I have created some check commands that run on the Icinga2 agent on
> our windows endpoints.
>
> Is there a way to push the config to the endpoints using director?
> How about the .exe?
>
> So right now I manually copy the binary .exe into the SBIN folder and
> ammend the config in command-plugins-windows.conf.
>
> Here is the config on the endpoint:
>
> object CheckCommand "win-reboot" {
>        command = [ PluginDir + "/pendingrebootchecker.exe" ]
> }
>
> and here is the config that director is creating:
>
> zones.d/director-global/service_templates.conf
> template Service "win-reboot" {
>     check_command = "win-reboot"
>     enable_notifications = true
>     enable_active_checks = true
>     enable_passive_checks = false
>     enable_event_handler = true
>     command_endpoint = host_name
> }
>
> object CheckCommand "win-reboot" {
>     import "plugin-check-command"
>     command = [ PluginDir + "/pendingrebootchecker.exe" ]
> }
>
> Thanks for any help / advice.
>
> Scott.
> _______________________________________________
> icinga-users mailing list
> icinga-users@lists.icinga.org
> https://lists.icinga.org/mailman/listinfo/icinga-users



_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to