The Director aims to be your new favourite Icinga config deployment tool. Director is designed for those who want to automate their configuration deployment and those who want to grant their “point & click” users easy access to the configuration.
And the check works as expected. But PluginDir is neglected for the check command (check_ssh). I think it might be better to configure this as service. With a checkbox/option and perhaps some flags for negate in the service dialog.
This issue has been migrated from Redmine: https://dev.icinga.com/issues/13707
Created by bcogel on 2016-12-21 08:43:47 +00:00
Assignee: (none) Status: New Target Version: (none) Last Update: 2016-12-21 08:43:47 +00:00 (in Redmine)
At the moment it's not so easy to define checks where a CRITICAL is OK.
Example: I want to check if SSH is disabled on our ESXi servers. If I define a command ssh_disabled like this in director
command: negate check_ssh
I get this in the preview:
object CheckCommand "ssh_disabled" { import "plugin-check-command" command = [ PluginDir + "/negate", "check_ssh" ] arguments = { "-H" = "$address$" } }
Check result is:
negate: Require path to command
I have to define the command like this:
command: negate /usr/lib/nagios/plugins/check_ssh
Preview is then
object CheckCommand "ssh_disabled" { import "plugin-check-command" command = [ PluginDir + "/negate", "/usr/lib/nagios/plugins/check_ssh" ] arguments = { "-H" = "$address$" } }
And the check works as expected. But PluginDir is neglected for the check command (check_ssh). I think it might be better to configure this as service. With a checkbox/option and perhaps some flags for negate in the service dialog.
Regards Berthold Cogel