File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,31 @@ the service itself ::
134
134
check_command check_ssh_bgpctl!
135
135
}
136
136
137
+ icinga2 command ::
138
+
139
+ object CheckCommand "openbgpd" {
140
+ import "plugin-check-command"
141
+ import "ipv4-or-ipv6"
142
+ command = [ PluginDir + "/check_by_ssh" ]
143
+ arguments = {
144
+ "-H" = "$openbgpd_address$"
145
+ "-i" = "$ssh_id$"
146
+ "-p" = "$ssh_port$"
147
+ "-C" = "$ssh_command$"
148
+ }
149
+ vars.openbgpd_address = "$check_address$"
150
+ vars.ssh_id = "/var/spool/icinga/.ssh/id_rsa"
151
+ vars.ssh_port = "$vars.ssh_port$"
152
+ vars.ssh_command = "sudo /usr/local/bin/check_openbgpd"
153
+ }
154
+
155
+ icinga2 service ::
156
+
157
+ apply Service "openbgpd" {
158
+ check_command = "openbgpd"
159
+ assign where host.name == "hostname"
160
+ }
161
+
137
162
**NRPE **
138
163
139
164
add this line to /usr/local/etc/nrpe.cfg ::
You can’t perform that action at this time.
0 commit comments