为了使SNMP警报正常工作,请在防火墙设置中允许以下IP范围:8.29.56.0/24
简单网络管理协议 (SNMP) 警报将 SNMP 陷阱发送到 SNMP 管理控制台或服务器。 此选项将 Dotcom-Monitor 警报直接集成到 IT 管理系统中,因此警报像处理企业内的任何其他警报一样被处理和路由。 目前,网络监控器®支持SNMP v1、v2和v3。
网络监控器有一个注册的企业 OID,即 31201。 警报作为企业类型发送,即值 6。 对于自定义位,错误警报是值一:正时警报值为值 2;测试警报值为值三。
警报通过 Internet 在标准 SNMP 端口上发送。
-
网络监控陷阱 MIB 文件为 SNMP v1
-- Dotcom-Monitor Inc -- Private Enterprise MIB definition -- 09/02/2015 --Dotcom-Monitor Support --Postal: 5125 County Road 101, Suite 100 -- Minnetonka, MN 55345 -- USA -- -- Tel: 888-479-0741; Fax: 888-794-3554 -- -- E-mail: Support@Dotcom-Monitor.Com -- This file describes the Dotcom-Monitor Inc Enterprise MIB. -- It includes object identifiers and object definitions for the -- Dotcom-Monitor Inc only, and should be used for compilation by a management -- tool in order to extend the tool to support the Dotcom-Monitor Inc MIB. DOTCOM-MONITOR-MIB DEFINITIONS ::= BEGIN IMPORTS TRAP-TYPE FROM RFC-1215 DisplayString FROM RFC1213-MIB OBJECT-TYPE FROM RFC-1212 TimeTicks, enterprises FROM RFC1155-SMI; -- tree structure dotcom-monitor OBJECT IDENTIFIER ::= { enterprises 31201 } variables OBJECT IDENTIFIER ::= { dotcom-monitor 255 } -- variables notificationInfo OBJECT-TYPE SYNTAX DisplayString ACCESS read-only STATUS mandatory DESCRIPTION "Information about the source of the notification." ::= { variables 1 } deviceId OBJECT-TYPE SYNTAX INTEGER ACCESS read-only STATUS mandatory DESCRIPTION "Device ID." ::= { variables 4 } deviceName OBJECT-TYPE SYNTAX DisplayString ACCESS read-only STATUS mandatory DESCRIPTION "Device name." ::= { variables 5 } firstErrorCode OBJECT-TYPE SYNTAX INTEGER ACCESS read-only STATUS mandatory DESCRIPTION "First error code." ::= { variables 6 } firstErrorDscr OBJECT-TYPE SYNTAX DisplayString ACCESS read-only STATUS mandatory DESCRIPTION "Error code description." ::= { variables 7 } errorFirstConfirmed OBJECT-TYPE SYNTAX TimeTicks ACCESS read-only STATUS mandatory DESCRIPTION "Date-Time when the error occurred." ::= { variables 8 } errorFirstConfirmedType OBJECT-TYPE SYNTAX DisplayString ACCESS read-only STATUS mandatory DESCRIPTION "Error type." ::= { variables 9 } errorFirstConfirmedLocation OBJECT-TYPE SYNTAX DisplayString ACCESS read-only STATUS mandatory DESCRIPTION "Error location." ::= { variables 10 } -- Generic Traps error TRAP-TYPE ENTERPRISE dotcom-monitor VARIABLES { notificationInfo, deviceId, deviceName, firstErrorCode, firstErrorDscr, errorFirstConfirmed, errorFirstConfirmedType, errorFirstConfirmedLocation } DESCRIPTION "This indicates that the trap contains info about Device Errors" ::= 1 uptime TRAP-TYPE ENTERPRISE dotcom-monitor VARIABLES { notificationInfo, deviceId } DESCRIPTION "This indicates that the trap contains info about Device Uptime" ::= 2 test TRAP-TYPE ENTERPRISE dotcom-monitor VARIABLES { notificationInfo, deviceId } DESCRIPTION "This is the trap that used for test purposes only." ::= 3 event TRAP-TYPE ENTERPRISE dotcom-monitor VARIABLES { notificationInfo, deviceId } DESCRIPTION "This indicates that the trap contains info about Device Events" ::= 4 END
-
网络监控陷阱 MIB 文件为 SNMP v2
-- Dotcom-Monitor Inc -- Private Enterprise MIB definition -- 09/02/2015 --Dotcom-Monitor Support --Postal: 5125 County Road 101, Suite 100 -- Minnetonka, MN 55345 -- USA -- -- Tel: 888-479-0741; Fax: 888-794-3554 -- -- E-mail: Support@Dotcom-Monitor.Com -- This file describes the Dotcom-Monitor Inc Enterprise MIB. -- It includes object identifiers and object definitions for the -- Dotcom-Monitor Inc only, and should be used for compilation by a management -- tool in order to extend the tool to support the Dotcom-Monitor Inc MIB. DOTCOM-MONITOR-MIB DEFINITIONS ::= BEGIN IMPORTS MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE, Integer32, TimeTicks, enterprises FROM SNMPv2-SMI DisplayString FROM SNMPv2-TC OBJECT-GROUP, NOTIFICATION-GROUP FROM SNMPv2-CONF; dotcomMonitorMIB MODULE-IDENTITY LAST-UPDATED "202011100000Z" ORGANIZATION "Dotcom-Monitor." CONTACT-INFO "Dotcom-Monitor Inc Postal: 5125 County Road 101, Suite 100 Minnetonka, MN 55345 USA Tel: 888-479-0741; Fax: 888-794-3554 E-mail: Support@Dotcom-Monitor.Com" DESCRIPTION "The MIB module for Dotcom-Monitor.Com" REVISION "202011100000Z" DESCRIPTION "Added deviceId, deviceName, firstErrorCode, firstErrorDscr, errorFirstConfirmed, errorFirstConfirmedType, errorFirstConfirmedLocation." REVISION "202010220000Z" DESCRIPTION "Initial version of this MIB." ::= { enterprises 31201 254 } dotcommonitor OBJECT IDENTIFIER ::= { enterprises 31201 } variables OBJECT IDENTIFIER ::= { dotcommonitor 255 } notificationInfo OBJECT-TYPE SYNTAX DisplayString MAX-ACCESS read-only STATUS current DESCRIPTION "Information about the source of notification." ::= { variables 1 } deviceId OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION "Device ID." ::= { variables 4 } deviceName OBJECT-TYPE SYNTAX DisplayString MAX-ACCESS read-only STATUS current DESCRIPTION "Device name." ::= { variables 5 } firstErrorCode OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION "First error code." ::= { variables 6 } firstErrorDscr OBJECT-TYPE SYNTAX DisplayString MAX-ACCESS read-only STATUS current DESCRIPTION "Error code decription." ::= { variables 7 } errorFirstConfirmed OBJECT-TYPE SYNTAX TimeTicks MAX-ACCESS read-only STATUS current DESCRIPTION "Date-Time when the error occurred." ::= { variables 8 } errorFirstConfirmedType OBJECT-TYPE SYNTAX DisplayString MAX-ACCESS read-only STATUS current DESCRIPTION "Error type." ::= { variables 9 } errorFirstConfirmedLocation OBJECT-TYPE SYNTAX DisplayString MAX-ACCESS read-only STATUS current DESCRIPTION "Error location." ::= { variables 10 } -- Generic Traps error NOTIFICATION-TYPE OBJECTS { notificationInfo, deviceId, deviceName, firstErrorCode, firstErrorDscr, errorFirstConfirmed, errorFirstConfirmedType, errorFirstConfirmedLocation } STATUS current DESCRIPTION "This indicates that the notification contains info about Device Errors" ::= {dotcommonitor 1} uptime NOTIFICATION-TYPE OBJECTS { notificationInfo, deviceId } STATUS current DESCRIPTION "This indicates that the notification contains info about Device Uptime" ::= {dotcommonitor 2} test NOTIFICATION-TYPE OBJECTS { notificationInfo, deviceId } STATUS current DESCRIPTION "This is the notification that used for test purposes only." ::= {dotcommonitor 3} event NOTIFICATION-TYPE OBJECTS { notificationInfo, deviceId } STATUS current DESCRIPTION "This indicates that the notification contains info about Device Events" ::= {dotcommonitor 4} dotcomBasicGroup OBJECT-GROUP OBJECTS { notificationInfo, deviceId } STATUS current DESCRIPTION "Contains data structures used in notifications." ::= { variables 3 } dotcomNotificationsGroup NOTIFICATION-GROUP NOTIFICATIONS { event, uptime, error, test } STATUS current DESCRIPTION "The notifications of events relating to Dotcom-Monitor monitoring process." ::= {variables 2} END
例子
//Downtime message community=public, enterprise=1.3.6.1.4.1.31201, uptime=02:28:28, agent_ip=207.250.234.88, generic_num=6, specificTrap_num=1, specificTrap_name=, version=Ver1, 1.3.6.1.4.1.31201.1="Dvc:ServerView Check;Tsk:timeanddate.com;Loc:Dallas;Err:400;Dsc:Invalid keyword(s). Not found: ':01:', ':02:', ';3/23/2021 10:28:24 ", 1.3.6.1.4.1.31201.255.1="Dvc:ServerView Check;Tsk:timeanddate.com;Loc:Dallas;Err:400;Dsc:Invalid keyword(s). Not found: ':01:', ':02:', ';3/23/2021 10:28:24 ", 1.3.6.1.4.1.31201.255.4=160290, 1.3.6.1.4.1.31201.255.5="ServerView Check", 1.3.6.1.4.1.31201.255.6=400, 1.3.6.1.4.1.31201.255.7="Invalid keyword(s). Not found: ':01:', ':02:', ':03:', ':04:', ':05:', ':11:', ':12:', ':13:', ':14:', ':15:', ':21:', ':22:', ':23:', ':24:', ':25:', ':31:', ':32:', ':33:', ':34:', ':35:', ':41:', ':42:', ':43:', ':44:', ':45:', ':51:', ':52:', ':5", 1.3.6.1.4.1.31201.255.8=1616513304, 1.3.6.1.4.1.31201.255.9=Validation, 1.3.6.1.4.1.31201.255.10=Dallas
//Uptime message community=public, enterprise=1.3.6.1.4.1.31201, uptime=02:41:30, agent_ip=207.250.234.88, generic_num=6, specificTrap_num=2, specificTrap_name=, version=Ver1, 1.3.6.1.4.1.31201.2="Device: ServerView Check back online at 3/23/2021 10:41:26 AM Location: Dallas", 1.3.6.1.4.1.31201.255.1="Device: Server View Check back online at 3/23/2021 10:41:26 AM Location: Dallas", 1.3.6.1.4.1.31201.255.4=160290