2019-10-27 22:10:55 +02:00
|
|
|
object CheckCommand "check_net_int" {
|
2019-10-29 05:44:59 +02:00
|
|
|
import "by_ssh"
|
|
|
|
vars.by_ssh_timeout = "420"
|
|
|
|
timeout = "420"
|
2019-10-29 06:19:59 +02:00
|
|
|
vars.by_ssh_command = PluginDir + "/check_interface_load.sh -w $int_warn$ -c $int_crit$"
|
|
|
|
vars.by_ssh_options = [
|
|
|
|
"StrictHostKeyChecking=no",
|
|
|
|
"ControlMaster=auto",
|
|
|
|
"ControlPath=/var/run/icinga2/$host.name$",
|
|
|
|
"ControlPersist=20m"
|
|
|
|
]
|
2019-10-29 05:44:59 +02:00
|
|
|
vars.int_warn=""
|
|
|
|
vars.int_crit=""
|
2019-10-27 22:10:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
object CheckCommand "check_open_ports" {
|
2019-10-29 05:44:59 +02:00
|
|
|
import "by_ssh"
|
|
|
|
vars.by_ssh_timeout = "420"
|
|
|
|
timeout = "420"
|
2019-10-29 06:19:59 +02:00
|
|
|
vars.by_ssh_command = PluginDir + "/check_network_ports.sh -p \"$ports$\" -H $host$"
|
|
|
|
vars.by_ssh_options = [
|
|
|
|
"StrictHostKeyChecking=no",
|
|
|
|
"ControlMaster=auto",
|
|
|
|
"ControlPath=/var/run/icinga2/$host.name$",
|
|
|
|
"ControlPersist=20m"
|
|
|
|
]
|
2019-10-29 05:44:59 +02:00
|
|
|
vars.ports=""
|
2019-10-27 22:10:55 +02:00
|
|
|
vars.host=""
|
|
|
|
}
|
|
|
|
|
2019-10-29 05:44:59 +02:00
|
|
|
########################################################################################
|
|
|
|
# OpenWRT APs
|
|
|
|
########################################################################################
|
|
|
|
object CheckCommand "check_bandwidth" {
|
|
|
|
import "by_ssh"
|
|
|
|
vars.by_ssh_command = PluginDir + "/check_bandwidth.sh -i $interface$"
|
|
|
|
vars.by_ssh_timeout = "420"
|
|
|
|
timeout = "420"
|
2019-10-30 00:32:57 +02:00
|
|
|
vars.by_ssh_options = [
|
|
|
|
"StrictHostKeyChecking=no",
|
|
|
|
"ControlMaster=auto",
|
|
|
|
"ControlPath=/var/run/icinga2/$host.name$",
|
|
|
|
"ControlPersist=20m"
|
|
|
|
]
|
2019-10-29 05:44:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#######################################################################################
|
|
|
|
# VOC switches
|
|
|
|
#######################################################################################
|
|
|
|
object CheckCommand "check_operstatus" {
|
|
|
|
import "plugin-check-command"
|
2019-10-29 11:14:53 +02:00
|
|
|
command = PluginDir + "/check_snmp -H $host$ -C openfest --oid $OID$ --miblist=IF-MIB -r $value$"
|
2019-10-29 05:44:59 +02:00
|
|
|
vars.host=""
|
|
|
|
vars.OID=""
|
|
|
|
vars.value=""
|
|
|
|
timeout = "120"
|
|
|
|
}
|
|
|
|
|
|
|
|
object CheckCommand "check_operstatus_regex" {
|
|
|
|
import "plugin-check-command"
|
|
|
|
command = PluginDir + "/check_snmp -H $host$ -C openfest --oid $OID$ -r $value$"
|
|
|
|
vars.host=""
|
|
|
|
vars.OID=""
|
|
|
|
vars.value=""
|
|
|
|
timeout = "120"
|
|
|
|
}
|