2019-10-27 22:10:55 +02:00
|
|
|
apply Service "network_interfaces_traffic" {
|
|
|
|
import "generic-service"
|
|
|
|
check_interval = 5m
|
2019-10-29 05:48:13 +02:00
|
|
|
retry_interval = 1m
|
|
|
|
max_check_attempts = 3
|
2019-10-27 22:10:55 +02:00
|
|
|
check_command = "check_net_int"
|
|
|
|
vars.int_warn="925"
|
|
|
|
vars.int_crit="950"
|
2019-10-29 05:48:13 +02:00
|
|
|
enable_perfdata = true
|
2019-10-27 22:10:55 +02:00
|
|
|
|
|
|
|
assign where host.vars.net_interfaces
|
|
|
|
|
|
|
|
vars.notif_prio = "high"
|
|
|
|
}
|
|
|
|
|
|
|
|
apply Service "network_open_ports" {
|
|
|
|
import "generic-service"
|
2019-10-29 05:48:13 +02:00
|
|
|
max_check_attempts = 3
|
2019-10-27 22:10:55 +02:00
|
|
|
check_interval = 5m
|
2019-10-29 05:48:13 +02:00
|
|
|
retry_interval = 1m
|
2019-10-27 22:10:55 +02:00
|
|
|
check_command = "check_open_ports"
|
|
|
|
vars.ports=host.vars.open_ports
|
|
|
|
vars.host=host.address
|
|
|
|
assign where host.vars.open_ports
|
|
|
|
|
|
|
|
vars.notif_prio = "high"
|
|
|
|
}
|
2019-10-29 05:48:13 +02:00
|
|
|
|
|
|
|
apply Service for (iface => config in host.vars.ifaces) {
|
|
|
|
import "generic-service"
|
2019-10-29 11:14:53 +02:00
|
|
|
display_name = "bandwidth_" + iface
|
2019-10-29 05:48:13 +02:00
|
|
|
|
|
|
|
check_command = "check_bandwidth"
|
|
|
|
|
|
|
|
vars += config
|
|
|
|
# NB: you probably want to use another condition/hostgroup
|
|
|
|
assign where "openwrt" in host.vars.groups
|
|
|
|
}
|
|
|
|
|
|
|
|
apply Service for (iface => config in host.vars.snmp_ifaces) {
|
|
|
|
import "generic-service"
|
2019-10-29 11:14:53 +02:00
|
|
|
display_name = "operstatus_" + iface
|
2019-10-29 05:48:13 +02:00
|
|
|
|
|
|
|
check_command = "check_operstatus"
|
|
|
|
|
|
|
|
vars.host = host.address
|
|
|
|
vars += config
|
|
|
|
# NB: you probably want to use another condition/hostgroup
|
|
|
|
assign where "vocsw" in host.vars.groups
|
|
|
|
assign where "ciscosw" in host.vars.groups
|
|
|
|
}
|
2019-10-30 03:42:48 +02:00
|
|
|
|
|
|
|
apply Service "uptime-tp" {
|
|
|
|
display_name = "Uptime"
|
|
|
|
import "generic-service"
|
|
|
|
check_command = "snmp"
|
|
|
|
vars.snmp_oid = "1.3.6.1.2.1.1.3.0"
|
|
|
|
vars.snmp_community = "openfest"
|
|
|
|
assign where "vocsw" in host.vars.groups && host.vars.snmp_uptime
|
|
|
|
}
|
|
|
|
|
|
|
|
apply Service "uptime-cisco" {
|
|
|
|
display_name = "Uptime"
|
|
|
|
import "generic-service"
|
|
|
|
check_command = "snmp"
|
|
|
|
vars.snmp_oid = "1.3.6.1.6.3.10.2.1.3.0"
|
|
|
|
vars.snmp_community = "openfest"
|
|
|
|
vars.snmp_miblist = "SNMP-FRAMEWORK-MIB"
|
|
|
|
assign where "ciscosw" in host.vars.groups && host.vars.snmp_uptime
|
|
|
|
}
|
|
|
|
|
|
|
|
apply Service "poe-watts-remaining" {
|
|
|
|
display_name = "POE - Watts Remaining"
|
|
|
|
import "generic-service"
|
|
|
|
check_command = "cisco-poe-check"
|
|
|
|
assign where host.name == "coresw.openfest.org"
|
|
|
|
}
|
2019-10-31 16:49:55 +02:00
|
|
|
|
|
|
|
apply Service for (stream => config in host.vars.rtmp_check) {
|
|
|
|
import "generic-service"
|
|
|
|
display_name = "RTMP Check " + stream
|
|
|
|
check_command = "rtmp-check"
|
|
|
|
|
|
|
|
vars += config
|
|
|
|
|
|
|
|
### assign where host.name == "vin-external.openfest.org"
|
|
|
|
assign where host.vars.rtmp_check
|
|
|
|
}
|
2019-11-01 16:29:48 +02:00
|
|
|
|
|
|
|
apply Service "bird_bgp_sessions" {
|
|
|
|
import "generic-service"
|
|
|
|
max_check_attempts = 3
|
|
|
|
check_interval = 5m
|
|
|
|
retry_interval = 1m
|
|
|
|
check_command = "bgp_sessions_check"
|
|
|
|
vars.ASN = host.vars.ASN
|
|
|
|
vars.sessions_down = host.vars.sessions_down
|
|
|
|
assign where host.vars.ASN
|
|
|
|
|
|
|
|
vars.notif_prio = "high"
|
|
|
|
}
|
2019-11-01 22:49:26 +02:00
|
|
|
|
|
|
|
apply Service for (ups_check => config in host.vars.ups) {
|
|
|
|
import "generic-service"
|
|
|
|
display_name = "UPS " + ups_check
|
|
|
|
check_command = "check_ups"
|
|
|
|
|
|
|
|
vars.host = host.address
|
|
|
|
vars += config
|
|
|
|
|
|
|
|
assign where host.vars.ups
|
|
|
|
}
|