monitoring-plugins icon indicating copy to clipboard operation
monitoring-plugins copied to clipboard

Legacy commands definitions

Open mmartinello opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe.

I am wondering if commands definitions for legacy Icinga configuration would be provided. This is because even if I know that everyone are using Icinga Director right now, I'm actually generating Icinga configuration using Ansible, and for this reason I need the legacy commands definitions to use Linuxfabrik Plugins.

Thank you!

Describe the solution you'd like

Write the command definitions in a unique file for all check commands or in a single file for each check command. This would be imported into /etc/icinga2/conf.d directory.

Alternatives

No response

Additional context

No response

mmartinello avatar Jul 21 '22 12:07 mmartinello

That's a good point that we need to discuss. If we decide to do this (can't promise), it will take a while to get it available.

If you already have some definitions, a pull request would be appreciated.

markuslf avatar Jul 22 '22 11:07 markuslf

Alternatively you can use the icinga director (maybe on a different host just for this purpose) itself to generate the configuration, and use those for ansible. For that, import the basket in the director, deploy all the changes and go to deployments > choose the latest one > and then click the config tab at the top.

NavidSassan avatar Jul 22 '22 12:07 NavidSassan

Or do it like @NavidSassan says (import, deploy) and then do a simple "icingacli director command show fu" or write a small script which iterates over the command names and calls the icingacli.

fabbricalox avatar Sep 17 '22 22:09 fabbricalox

Closed as there is a workaround.

markuslf avatar May 22 '23 12:05 markuslf