I'm trying to use the check_raid plugin. This plugin supports different storage solutions and some of my machines require StorMan from Adaptec to be installed. Because StorMan is installed to /usr/StorMan by default it's not within the PATH.
I could add a wrapper script to the path but what is the Icinga2 solutions to this problem? There could be different CheckCommands for each env.
Then I tried using the env attribute of CheckCommand:
The if/else is required because env may not be initialized.
The env does not seem to be forwarded to the satellite.
Is there a better way to have the CheckCommand called like this:
Thanks for you help!