diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2021-10-01 15:11:38 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2021-10-01 15:11:38 +0200 |
commit | a35970a9cdfcc4bd80b33e9bfa3e58b330d41bef (patch) | |
tree | 494c1ba6fee6c7c796b0e00bb445d98da4c571aa | |
parent | d41e8980981898b3f26b0f0c257143c5d9cd07ec (diff) | |
download | monitoring_custom-a35970a9cdfcc4bd80b33e9bfa3e58b330d41bef.tar.gz |
commands.conf
-rw-r--r-- | Readme.md | 6 | ||||
-rw-r--r-- | commands.conf | 68 |
2 files changed, 74 insertions, 0 deletions
diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..0dd576b --- /dev/null +++ b/Readme.md @@ -0,0 +1,6 @@ +# monitoring-custom + +``` +const CustomPluginDir = "path/to/plugins/" +include "path/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" +} |