368d6fafea
Code backup
94 lines
1.8 KiB
Plaintext
94 lines
1.8 KiB
Plaintext
// -*- mode: icinga -*-
|
|
|
|
// - Template -
|
|
|
|
template Host "WG" {
|
|
address = "172.16.254.240"
|
|
check_command = "hostalive"
|
|
}
|
|
|
|
template Service "snmpv2c" {
|
|
check_command = "check-watchguard"
|
|
vars.wgsnmp_community = "pal-ro"
|
|
vars.wgsnmp_version = "2c"
|
|
}
|
|
|
|
// - CheckCommand -
|
|
|
|
object CheckCommand "check-watchguard" {
|
|
command = [ ConfigDir + "/scripts/check_watchguard.sh" ]
|
|
arguments += {
|
|
"-v" = "$wgsnmp_version"
|
|
"-C" = "$wgsnmp_community$"
|
|
"-H" = "$host.address$"
|
|
"-t" = {
|
|
required = true
|
|
value = "$wgsnmp_checktype$"
|
|
}
|
|
}
|
|
|
|
// - Host -
|
|
|
|
object Host "WatchGuard"{
|
|
import "WG"
|
|
}
|
|
|
|
// - 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"
|
|
}
|
|
|
|
// - SNMPWALK -
|
|
|
|
object Service "CheckTransferData"{
|
|
import "snmpv2c"
|
|
display_name = "Transfer Data"
|
|
host_name = "WatchGuard"
|
|
vars.wgsnmp_checktype = "Transfer"
|
|
}
|
|
|
|
object Service "CheckCpuUtil"{
|
|
import "snmpv2c"
|
|
display_name = "CPU used"
|
|
host_name = "WatchGuard"
|
|
vars.wgsnmp_checktype = "Cpu"
|
|
}
|
|
|
|
object Service "CheckCurrActiveConns"{
|
|
import "snmpv2c"
|
|
display_name = "Current Active Connections"
|
|
host_name = "WatchGuard"
|
|
vars.wgsnmp_checktype = "ActiveConns"
|
|
}
|
|
|
|
object Service "CheckIpsecTunnelNum"{
|
|
import "snmpv2c"
|
|
display_name = "IP Security Active"
|
|
host_name = "WatchGuard"
|
|
vars.wgsnmp_checktype = "IpsecTunnelNum"
|
|
}
|
|
|
|
object Service "CheckInfoGavService"{
|
|
import "snmpv2c"
|
|
display_name = "Gateway Antivirus Service"
|
|
host_name = "WatchGuard"
|
|
vars.wgsnmp_checktype = "InfoGav"
|
|
}
|
|
|
|
object Service "CheckInfoIpsService"{
|
|
import "snmpv2c"
|
|
display_name = "Intrusion Prevention Service"
|
|
host_name = "WatchGuard"
|
|
vars.wgsnmp_checktype = "InfoIps"
|
|
|
|
|
|
} |