aboutsummaryrefslogtreecommitdiff
path: root/commands.conf
blob: ee6c1ecabbc65bb5ed4c1c727221b3c5b73019b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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"
}