Linuxfabrik / monitoring-plugins

220+ check plugins for Icinga and other Nagios-compatible monitoring applications. Each plugin is a standalone command line tool (written in Python) that provides a specific type of check.
https://linuxfabrik.ch
The Unlicense
214 stars 49 forks source link

Legacy commands definitions #601

Closed mmartinello closed 1 year ago

mmartinello commented 2 years ago

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

markuslf commented 2 years ago

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.

NavidSassan commented 2 years ago

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.

fabbricalox commented 2 years ago

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.

markuslf commented 1 year ago

Closed as there is a workaround.