368d6fafea
Code backup
50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
// -*- mode: icinga -*-
|
|
|
|
// - Template -
|
|
|
|
template Host "snmp-agent" {
|
|
check_command = "hostalive"
|
|
vars.agent_type = "snmp"
|
|
vars.snmp_community = "pal-ro"
|
|
}
|
|
|
|
// - Host -
|
|
|
|
object Host "WatchGuard" {
|
|
import "snmp-agent"
|
|
address = "172.16.254.240"
|
|
|
|
vars.oids["wgSystemTotalSendBytes"] = "1.3.6.1.4.1.3097.6.3.8"
|
|
vars.oids["wgSystemTotalRecvBytes"] = "1.3.6.1.4.1.3097.6.3.9"
|
|
vars.oids["wgSystemTotalSendPackets"] = "1.3.6.1.4.1.3097.6.3.10"
|
|
vars.oids["wgSystemTotalRecvPackets"] = "1.3.6.1.4.1.3097.6.3.11"
|
|
vars.oids["wgSystemCpuUtil1"] = "1.3.6.1.4.1.3097.6.3.77"
|
|
vars.oids["wgSystemCurrActiveConns"] = "1.3.6.1.4.1.3097.6.3.80"
|
|
vars.oids["wgIpsecTunnelNum"] = "1.3.6.1.4.1.3097.6.5.1.1"
|
|
vars.oids["wgInfoGavService"] = "1.3.6.1.4.1.3097.6.1.3.0"
|
|
vars.oids["wgInfoIpsService"] = "1.3.6.1.4.1.3097.6.1.4.0"
|
|
}
|
|
|
|
// - Basic Service -
|
|
|
|
object Service "ping4" {
|
|
display_name = "Ping4"
|
|
host_name = "WatchGuard"
|
|
check_command = "ping4"
|
|
}
|
|
|
|
object Service "http" {
|
|
display_name = "Http"
|
|
host_name = "WatchGuard"
|
|
check_command = "http"
|
|
}
|
|
|
|
// - Snmp Service -
|
|
|
|
apply Service for (identifier => oid in host.vars.oids) {
|
|
check_command = "snmp"
|
|
display_name = identifier
|
|
vars.snmp_oid = oid
|
|
|
|
ignore where identifier == "bgp" //don't generate service for bgp checks
|
|
} |