From a35970a9cdfcc4bd80b33e9bfa3e58b330d41bef Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Fri, 1 Oct 2021 15:11:38 +0200 Subject: commands.conf --- commands.conf | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 commands.conf (limited to 'commands.conf') diff --git a/commands.conf b/commands.conf new file mode 100644 index 0000000..ee6c1ec --- /dev/null +++ b/commands.conf @@ -0,0 +1,68 @@ +/* + * vi: ft=icinga2 + */ + + object CheckCommand "check-ipmi" { + command = [ CustomPluginDir + "/check_ipmi" ] + + arguments+={ + "-I"="$ipmi_protocol$" + "-U"="$ipmi_username$" + "-P"="$ipmi_password$" + "-L"="$ipmi_privilege_level$" + "-H"="$ipmi_address$" + } +} + +object CheckCommand "check-snmp-interface" { + command = [ CustomPluginDir + "/check_snmp_if" ] + + arguments+={ + "-H"={ + required = true + value = "$snmp_address$" + } + "-c"={ + required = true + value = "$snmp_community$" + } + "-i"={ + required = true + value = "$snmp_interface$" + } + } + vars.snmp_address = "$address$" + vars.snmp_community = "public" +} + +object CheckCommand "check-jenkins-job" { + command = [ CustomPluginDir + "/check_jenkins_job" ] + arguments += { + "-a"={ + required = true + skip_key = true + value = "$jenkins_url$" + }, + "-b"={ + required = true + skip_key = true + value = "$jenkins_view$" + }, + "-c"={ + required = true + skip_key = true + value = "$jenkins_job$" + }, + "-d"={ + required = true + skip_key = true + value = "$jenkins_user$" + }, + "-e"={ + required = true + skip_key = true + value = "$jenkins_password$" + } + } + vars.jenkins_view = "all" +} -- cgit v1.2.3