Icinga / icingaweb2-module-director

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.
https://icinga.com/docs/director/latest
GNU General Public License v2.0
413 stars 202 forks source link

[dev.icinga.com #13707] Configure negation of check results as option in service definition #678

Open icinga-migration opened 7 years ago

icinga-migration commented 7 years ago

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

jogoossens commented 3 months ago

It would be even better if we could also convert a warning to critical for example!