2019/monitoring/icinga2/conf.d/commands-new.conf

125 lines
3.8 KiB
Plaintext
Raw Permalink Normal View History

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-11-02 17:16:33 +02:00
object CheckCommand "check_sensors" {
import "plugin-check-command"
command = PluginDir + "/check_sensors_vin"
}
object CheckCommand "check_unbound" {
import "plugin-check-command"
command = PluginDir + "/check_unbound-ng.sh"
}
2019-10-29 05:44:59 +02:00
########################################################################################
# OpenWRT APs
########################################################################################
object CheckCommand "check_bandwidth" {
import "by_ssh"
2019-11-02 17:16:33 +02:00
vars.by_ssh_command = PluginDir + "/check_bandwidth.sh -i $interface$ -w $int_warn$ -c $int_crit$"
2019-10-29 05:44:59 +02:00
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-11-02 17:16:33 +02:00
vars.int_warn="50000"
vars.int_crit="100000"
2019-10-29 05:44:59 +02:00
}
#######################################################################################
# VOC switches
#######################################################################################
object CheckCommand "check_operstatus" {
import "plugin-check-command"
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"
}
2019-10-30 03:42:48 +02:00
object CheckCommand "cisco-poe-check" {
import "plugin-check-command"
command = SysconfDir + "/icinga2/scripts/check_snmp_cisco_poe.pl -H $host.address$ -C openfest -w $host.vars.poe_watts_warning$ -c $host.vars.poe_watts_critical$"
timeout = "10"
}
2019-10-31 16:49:55 +02:00
object CheckCommand "nwc_check" {
import "plugin-check-command"
command = SysconfDir + "/icinga2/scripts/check_nwc_health --hostname $host.address# --community openfest --mode $mode$"
vars.mode = ""
}
object CheckCommand "rtmp-check" {
import "plugin-check-command"
command = SysconfDir + "/icinga2/scripts/check_rtmp.sh -t $timeout$ -u $monitoreduri$"
vars.monitoreduri = ""
vars.timeout = 10
}
2019-11-01 16:29:48 +02:00
2019-11-02 17:16:33 +02:00
object CheckCommand "check-audio-stream" {
import "plugin-check-command"
command = PluginDir + "/check_http -N -H openfest.org -p 8000 -E -u $monitoredpath$"
vars.monitoredpath = ""
}
2019-11-01 16:29:48 +02:00
########################################################################################
# Router services
########################################################################################
object CheckCommand "bgp_sessions_check" {
import "plugin-check-command"
command = PluginDir + "/check_bird_bgp --asn $ASN$ --ebgp --sessions_down_ok $sessions_down$"
vars.ASN = ""
vars.sessions_down = ""
}
2019-11-01 22:41:26 +02:00
#######################################################################################
# UPS checks
#######################################################################################
object CheckCommand "check_ups" {
import "plugin-check-command"
command = PluginDir + "/check_snmp -H $host$ -P 1 -C openfest --oid $OID$ --miblist=UPS-MIB -r $value$"
vars.host=""
vars.OID=""
vars.value=""
timeout = "120"
}