bundlewrap/bundles/icinga2/files/icinga2/check_commands.conf

116 lines
2.7 KiB
Text
Raw Normal View History

2020-11-21 09:29:36 +00:00
object CheckCommand "sshmon" {
import "plugin-check-command"
import "ipv4-or-ipv6"
command = [ "/usr/local/share/icinga/plugins/check_by_sshmon" ]
arguments = {
"-c" = {
value = "$sshmon_command$"
}
"-h" = {
value = "$address$"
}
"-t" = {
set_if = bool("$sshmon_timeout$")
value = "$sshmon_timeout$"
}
}
}
object CheckCommand "dummy_hostalive" {
import "plugin-check-command"
import "ipv4-or-ipv6"
command = [ "true" ]
}
2021-01-09 10:03:23 +00:00
object CheckCommand "check_freifunk_node" {
import "plugin-check-command"
import "ipv4-or-ipv6"
command = [ "/usr/local/share/icinga/plugins/check_freifunk_node", "$url$", "$id$" ]
}
2020-11-21 09:29:36 +00:00
object CheckCommand "check_http_wget" {
import "plugin-check-command"
import "ipv4-or-ipv6"
command = [ "/usr/local/share/icinga/plugins/check_http_wget" ]
arguments = {
"--check-string" = {
set_if = bool("$http_wget_contains$")
value = "$http_wget_contains$"
}
"--no-follow-redirects" = {
set_if = "$http_wget_nofollow$"
}
"--no-verify-ssl" = {
set_if = "$http_wget_noverify$"
}
"--useragent" = {
set_if = bool("$http_wget_useragent$")
value = "$http_wget_useragent$"
}
"--url" = {
value = "$http_wget_url$"
}
}
}
object CheckCommand "check_https_cert_at_url" {
import "plugin-check-command"
import "ipv4-or-ipv6"
command = [ "/usr/local/share/icinga/plugins/check_https_certificate_at_url", "$domain$", "$port$" ]
vars.port = "443"
}
object CheckCommand "check_imap" {
import "plugin-check-command"
import "ipv4-or-ipv6"
command = [ "/usr/lib/nagios/plugins/check_imap" ]
arguments = {
"-S" = {
set_if = "$imap_ssl$"
}
"-p" = {
value = "$imap_port$"
}
"-H" = {
value = "$address$"
}
}
}
object CheckCommand "check_sipgate_account_balance" {
import "plugin-check-command"
import "ipv4-or-ipv6"
command = [ "/usr/local/share/icinga/plugins/check_sipgate_account_balance" ]
}
2020-11-21 09:29:36 +00:00
object CheckCommand "check_smtp" {
import "plugin-check-command"
import "ipv4-or-ipv6"
command = [ "/usr/lib/nagios/plugins/check_smtp" ]
arguments = {
"-H" = {
value = "$address$"
}
}
}
2021-04-25 06:02:04 +00:00
object CheckCommand "check_usv" {
import "plugin-check-command"
import "ipv4-or-ipv6"
command = [ "/usr/local/share/icinga/plugins/check_usv_snmp", "$address$", "$snmp_community$" ]
vars.snmp_community = "public"
}