aboutsummaryrefslogtreecommitdiff
path: root/commands.conf
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-10-01 15:11:38 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-10-01 15:11:38 +0200
commita35970a9cdfcc4bd80b33e9bfa3e58b330d41bef (patch)
tree494c1ba6fee6c7c796b0e00bb445d98da4c571aa /commands.conf
parentd41e8980981898b3f26b0f0c257143c5d9cd07ec (diff)
downloadmonitoring_custom-a35970a9cdfcc4bd80b33e9bfa3e58b330d41bef.tar.gz
commands.conf
Diffstat (limited to 'commands.conf')
-rw-r--r--commands.conf68
1 files changed, 68 insertions, 0 deletions
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"
+}