我正在尝试使用zabbix触发器生成mib文件。它通过zabbix api获取触发器信息,并生成带有通知类型对象的mib文件,但是现在我需要添加严重性状态。
现在文件如下:
MY-ZABBIX-MIB DEFINITIONS ::= BEGIN
IMPORTS
enterprises, OBJECT-TYPE, MODULE-IDENTITY, NOTIFICATION-TYPE
FROM SNMPv2-SMI ;
zabbix-alarms MODULE-IDENTITY
LAST-UPDATED "201902271442Z"
ORGANIZATION "MYCOMPANY"
CONTACT-INFO "MYCOMPANY"
DESCRIPTION "The MIB Module describes MYCOMPANY private MIB for zabbix alarms."
REVISION "201902271442Z"
DESCRIPTION "Correct MIB syntax"
::= { enterprises companypen }
general OBJECT IDENTIFIER ::= { zabbix-alarms 1}
trigger_id_14389 NOTIFICATION-TYPE
STATUS current
DESCRIPTION
"Unavailable by ICMP ping"
::= { general 14389 }
trigger_id_16200 NOTIFICATION-TYPE
STATUS current
DESCRIPTION
"jvm_threads_current_Average_THRESHOLD_ALERT_Average_Current
Number of threads approaching MAX_THREAD"
::= { general 16200 }
END
但是我不明白如何在此结构中增加严重性。可能需要其他类型或文件。我需要一个例子或描述。 附言RFC太多了,我没有足够的时间来阅读它。