/* Icinga2 configuration file for ipmitool(1) checking plugin. THIS SOFTWARE IS IN PUBLIC DOMAIN There is no limitation on any kind of usage of this code. You use it because it is yours. Example services.conf: apply Service "IPMI" { import "generic-service" check_command = "ipmitool" vars.ipmi_ignore = "hdd*" vars.ipmi_force = "ps1*,ps2*" vars += config } check_impitool --help gives the explanation of the command line switches. */ object CheckCommand "ipmi" { command = [ PluginContribDir + "/check_ipmi" ] arguments = { "-s" = {{ set_if = {{ if ( "$ipmi_sudo$" ) { return 1 } else { return 0 } }} }} "-w" = "$ipmi_power_warning$" "-c" = "$ipmi_power_critical$" "-I" = "$ipmi_ignore$" "-F" = "$ipmi_force$" "-S" = "$ipmi_skip$" "-f" = "$ipmi_file$" "--command" = "$ipmi_cmd$" "--retry" = "$ipmi_retry$" "--retry-interval" = "$ipmi_retry_interval$" } }