Files
claudio 368d6fafea Issue
Code backup
2026-05-10 16:59:01 +02:00

98 lines
2.0 KiB
Plaintext

// -*- mode: icinga -*-
// Template -
template Host "WG" {
address = "172.16.254.240"
check_command = "hostalive"
}
template Service "snmpv2c"{
check_command = "check-snmp"
vars.csnmp_community = "pal-ro"
vars.csnmp_version = "2"
}
// - CheckCommand -
object CheckCommand "check-snmp" {
command = [ ConfigDir + "/scripts/check_snmp.sh" ]
arguments += {
"-H" = {
required = true
value = "$host.address$"
}
"-o" = {
required = true
value = "$csnmp_oid$"
}
"-w" = "$csnmp_warning$"
"-c" = "$csnmp_critical$"
"-p" = "$csnmp_port$"
"-N" = "$csnmp_community$"
"-V" = "$csnmp_version$"
}
}
// - 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 "wgSystemTotalSendBytes" {
import "snmpv2c"
display_name = "Total Send Bytes"
host_name = "WatchGuard"
vars.csnmp_oid = "1.3.6.1.4.1.3097.6.3.8"
}
object Service "wgSystemTotalRecvBytes" {
import "snmpv2c"
display_name = "Total Recive Bytes"
host_name = "WatchGuard"
vars.csnmp_oid = "1.3.6.1.4.1.3097.6.3.9"
}
object Service "wgSystemTotalSendPackets" {
import "snmpv2c"
display_name = "Total Send Packets"
host_name = "WatchGuard"
vars.csnmp_oid = "1.3.6.1.4.1.3097.6.3.10"
}
object Service "wgSystemTotalRecvPackets" {
import "snmpv2c"
display_name = "Total Recive Packets"
host_name = "WatchGuard"
vars.csnmp_oid = "1.3.6.1.4.1.3097.6.3.11"
}
object Service "wgSystemCpuUtil1" {
import "snmpv2c"
display_name = "Cpu Util"
host_name = "WatchGuard"
vars.csnmp_oid = "1.3.6.1.4.1.3097.6.3.77"
}
object Service "wgSystemCurrActiveConns" {
import "snmpv2c"
display_name = "Current Active Connections"
host_name = "WatchGuard"
vars.csnmp_oid = "1.3.6.1.4.1.3097.6.3.80"
}