Ad Widget

Collapse

SNMP advice to monitor SNMP table entry.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bertrand39100
    Junior Member
    • Feb 2010
    • 27

    #1

    SNMP advice to monitor SNMP table entry.

    Hello All,

    I want to monitor with SNMP the Integrated Management Module of IBM X Servers.

    I managed to monitor near all items I want except this one :

    Here below is the description on the item I want to monitor in the MIB file :

    VALUE eventLogTable OBJECT-TYPE (
    Syntax: [UNIVERSAL 16] SEQUENCE OF [UNIVERSAL 16] SEQUENCE [eventLogIndex [UNIVERSAL 2] INTEGER, eventLogString [UNIVERSAL 4] OCTET STRING, eventLogSeverity [UNIVERSAL 2] INTEGER, eventLogDate [UNIVERSAL 4] OCTET STRING, eventLogTime [UNIVERSAL 4] OCTET STRING]
    Access: not-accessible
    Status: mandatory
    Description: Table of event logs. View as a table and not as individual entries
    for consistent results.
    )
    ::= 1.3.6.1.4.1.2.3.51.3.2.1.1

    VALUE eventLogEntry OBJECT-TYPE (
    Syntax: [UNIVERSAL 16] SEQUENCE [eventLogIndex [UNIVERSAL 2] INTEGER, eventLogString [UNIVERSAL 4] OCTET STRING, eventLogSeverity [UNIVERSAL 2] INTEGER, eventLogDate [UNIVERSAL 4] OCTET STRING, eventLogTime [UNIVERSAL 4] OCTET STRING]
    Access: not-accessible
    Status: mandatory
    Description: Event log entries. View as a table and not as individual entries for
    consistent results.
    Index: [1.3.6.1.4.1.2.3.51.3.2.1.1.1.1]
    )
    ::= 1.3.6.1.4.1.2.3.51.3.2.1.1.1


    VALUE eventLogIndex OBJECT-TYPE (
    Syntax: [UNIVERSAL 2] INTEGER
    Access: read-only
    Status: mandatory
    Description: Event log index number. View as a table and not as individual entries for
    consistent results.
    )
    ::= 1.3.6.1.4.1.2.3.51.3.2.1.1.1.1

    VALUE eventLogString OBJECT-TYPE (
    Syntax: [UNIVERSAL 4] OCTET STRING
    Access: read-only
    Status: mandatory
    Description: Contains a string of information to detail the event. View as a table and
    not as individual entries for consistent results.
    )
    ::= 1.3.6.1.4.1.2.3.51.3.2.1.1.1.2

    VALUE eventLogSeverity OBJECT-TYPE (
    Syntax: [UNIVERSAL 2] INTEGER { error(0), warning(1), information(2), other(3) }
    Access: read-only
    Status: mandatory
    Description: Contains a information to detail the severity of the event. View as a table and
    not as individual entries for consistent results.
    )
    ::= 1.3.6.1.4.1.2.3.51.3.2.1.1.1.3

    VALUE eventLogDate OBJECT-TYPE (
    Syntax: [UNIVERSAL 4] OCTET STRING
    Access: read-only
    Status: mandatory
    Description: The Date of the Event occured. View as a table and
    not as individual entries for consistent results.
    )
    ::= 1.3.6.1.4.1.2.3.51.3.2.1.1.1.4

    VALUE eventLogTime OBJECT-TYPE (
    Syntax: [UNIVERSAL 4] OCTET STRING
    Access: read-only
    Status: mandatory
    Description: The Time of the Event occured. View as a table and
    not as individual entries for consistent results.
    )
    ::= 1.3.6.1.4.1.2.3.51.3.2.1.1.1.5




    I have created the following item :

    ITEM 1 : IMM_EVENT_LOG_INDEX
    SNMP TYPE : SNMPv1 agent
    SNMP OID : 1.3.6.1.4.1.2.3.51.3.2.1.1.1.1
    SNMP Community : xxx_snmp_read
    TYPE : Numeric
    DAYS : 3
    TRENDS : 7

    ITEM 2 : IMM_EVENT_LOG_DESCRIPTION
    SNMP TYPE : SNMPv1 agent
    SNMP OID : 1.3.6.1.4.1.2.3.51.3.2.1.1.1.2
    SNMP Community : xxx_snmp_read
    TYPE : Numeric
    DAYS : 3
    TRENDS : 7

    ITEM 3 : IMM_EVENT_LOG_SEVERITY
    SNMP TYPE : SNMPv1 agent
    SNMP OID : 1.3.6.1.4.1.2.3.51.3.2.1.1.1.3
    SNMP Community : xxx_snmp_read
    TYPE : Numeric
    DAYS : 3
    TRENDS : 7

    ITEM 4 : IMM_EVENT_LOG_DATE
    SNMP TYPE : SNMPv1 agent
    SNMP OID : 1.3.6.1.4.1.2.3.51.3.2.1.1.1.4
    SNMP Community : xxx_snmp_read
    TYPE : Text
    DAYS : 3

    ITEM 5 : IMM_EVENT_LOG_TIME
    SNMP TYPE : SNMPv1 agent
    SNMP OID : 1.3.6.1.4.1.2.3.51.3.2.1.1.1.5
    SNMP Community : xxx_snmp_read
    TYPE : Text
    DAYS : 3

    In zabbix_server log I have the following entries :


    2203:20110216:160331.092 Item [IMM_SRV_TEST:1.3.6.1.4.1.2.3.51.3.2.1.1.1.4] error: SNMP error [(noSuchName) There i
    s no such variable name in this MIB.]
    2203:20110216:160331.092 Parameter [IMM_SRV_TEST:1.3.6.1.4.1.2.3.51.3.2.1.1.1.4] is not supported by agent Old stat
    us [0]
    2207:20110216:160335.460 Item [IMM_SRV_TEST:1.3.6.1.4.1.2.3.51.3.2.1.1.1.1] error: SNMP error [(noSuchName) There i
    s no such variable name in this MIB.]
    2207:20110216:160335.460 Parameter [IMM_SRV_TEST:1.3.6.1.4.1.2.3.51.3.2.1.1.1.1] is not supported by agent Old stat
    us [0]
    2205:20110216:160336.101 Item [IMM_SRV_TEST:1.3.6.1.4.1.2.3.51.3.2.1.1.1.3] error: SNMP error [(noSuchName) There i
    s no such variable name in this MIB.]
    2205:20110216:160336.101 Parameter [IMM_SRV_TEST:1.3.6.1.4.1.2.3.51.3.2.1.1.1.3] is not supported by agent Old stat
    us [0]
    2208:20110216:160339.598 Item [IMM_SRV_TEST:1.3.6.1.4.1.2.3.51.3.2.1.1.1.2] error: SNMP error [(noSuchName) There i
    s no such variable name in this MIB.]
    2208:20110216:160339.598 Parameter [IMM_SRV_TEST:1.3.6.1.4.1.2.3.51.3.2.1.1.1.2] is not supported by agent Old stat
    us [0]
    2206:20110216:160342.487 Item [IMM_SRV_TEST:1.3.6.1.4.1.2.3.51.3.2.1.1.1.5] error: SNMP error [(noSuchName) There i
    s no such variable name in this MIB.]
    2206:20110216:160342.488 Parameter [IMM_SRV_TEST:1.3.6.1.4.1.2.3.51.3.2.1.1.1.5] is not supported by agent Old stat
    us [0]
    2223:20110216:160517.499 Executing housekeeper
    2223:20110216:160603.373 Deleted 25372 records from history and trends
    2203:20110216:160831.045 Item [IMM_SRV_TEST:1.3.6.1.4.1.2.3.51.3.2.1.1.1.4] error: SNMP error [(noSuchName) There i
    s no such variable name in this MIB.]
    2207:20110216:160833.745 Item [IMM_SRV_TEST:1.3.6.1.4.1.2.3.51.3.2.1.1.1.1] error: SNMP error [(noSuchName) There i
    s no such variable name in this MIB.]
    2205:20110216:160836.815 Item [IMM_SRV_TEST:1.3.6.1.4.1.2.3.51.3.2.1.1.1.3] error: SNMP error [(noSuchName) There i
    s no such variable name in this MIB.]
    2208:20110216:160839.887 Item [IMM_SRV_TEST:1.3.6.1.4.1.2.3.51.3.2.1.1.1.2] error: SNMP error [(noSuchName) There i
    s no such variable name in this MIB.]
    2206:20110216:160842.473 Item [IMM_SRV_TEST:1.3.6.1.4.1.2.3.51.3.2.1.1.1.5] error: SNMP error [(noSuchName) There i
    s no such variable name in this MIB.]




    I have made several tests, when I use item OID

    IMM_EVENT_LOG_INDEX : 1.3.6.1.4.1.2.3.51.3.2.1.1.1.1.1
    IMM_EVENT_LOG_DESCRIPTION : 1.3.6.1.4.1.2.3.51.3.2.1.1.1.2.1
    IMM_EVENT_LOG_SEVERITY : 1.3.6.1.4.1.2.3.51.3.2.1.1.1.3.1
    IMM_EVENT_LOG_DATE : 1.3.6.1.4.1.2.3.51.3.2.1.1.1.4.1
    IMM_EVENT_LOG_TIME : 1.3.6.1.4.1.2.3.51.3.2.1.1.1.5.1

    I have no error in zabbix server log but I always have only the same first entry in the table, no updated item.

    I want to cath all new events depending on event severity item.

    By using snmpwalk command,I have :

    [root@zabbix]# snmpwalk -v 1 -c emo_snmp_read 172.17.6.153 1.3.6.1.4.1.2.3.51.3.2.1.1.1.1

    Here you have below for the moment 14 entries in the table :

    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.1.1 = INTEGER: 1
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.1.2 = INTEGER: 2
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.1.3 = INTEGER: 3
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.1.4 = INTEGER: 4
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.1.5 = INTEGER: 5
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.1.6 = INTEGER: 6
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.1.7 = INTEGER: 7
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.1.8 = INTEGER: 8
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.1.9 = INTEGER: 9
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.1.10 = INTEGER: 10
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.1.11 = INTEGER: 11
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.1.12 = INTEGER: 12
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.1.13 = INTEGER: 13
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.1.14 = INTEGER: 14

    [root@zabbix]# snmpwalk -v 1 -c emo_snmp_read 172.17.6.153 1.3.6.1.4.1.2.3.51.3.2.1.1.1.2

    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.2.1 = STRING: "The Chassis Event Log on system ESX1_SN_XXX cleared by user USERID"
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.2.2 = STRING: "\"Host Power\" has been turned off"
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.2.3 = STRING: "\"Host Power\" has been turned on"
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.2.4 = STRING: "\"Host Power\" has been turned off"
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.2.5 = STRING: "LAN: Ethernet[eth1] interface is now active"
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.2.6 = STRING: "ENET[sp-ethernetport] IP-Cfg:HstName=IMM_SRV_VM_ESX1, IP@=172.xxx.xxx.xxx ,NetMsk=255.255.255.0, GW@=172.xxx.xxx.xxx"
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.2.7 = STRING: "\"Host Power\" has been turned off"
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.2.8 = STRING: "\"Host Power\" has been turned on"
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.2.9 = STRING: "\"Host Power\" has been turned off"
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.2.10 = STRING: "LAN: Ethernet[eth1] interface is now active"
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.2.11 = STRING: "ENET[sp-ethernetport] IP-Cfg:HstName=IMM_SRV_VM_ESX1, IP@=172.xxx.xxx.xxx ,NetMsk=255.255.255.0, GW@=172.xxx.xxx.xxx"
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.2.12 = STRING: "Remote Login Successful. Login ID: USERID from Web at IP address 172.xxx.xxx.xxx"
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.2.13 = STRING: "Remote Login Successful. Login ID: USERID from Web at IP address 172.xxx.xxx.xxx"
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.2.14 = STRING: "Remote Login Successful. Login ID: USERID from Web at IP address 172.xxx.xxx.xxx"

    [root@zabbix]# snmpwalk -v 1 -c emo_snmp_read 172.17.6.153 1.3.6.1.4.1.2.3.51.3.2.1.1.1.1.1
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.1.1 = INTEGER: 1

    [root@zabbix]# snmpwalk -v 1 -c emo_snmp_read 172.17.6.153 1.3.6.1.4.1.2.3.51.3.2.1.1.1.2.1
    SNMPv2-SMI::enterprises.2.3.51.3.2.1.1.1.2.1 = STRING: "The Chassis Event Log on system ESX1_SN_XXX cleared by user USERID"
    [root@zabbix]#

    What is the correct way to monitor table entries with snmp items in zabbix ?


    Please find the attached MIB file.

    Any idea will be appreciate

    Have a good day.

    Many Thanks.

    Bertrand39100
    Attached Files
  • Bertrand39100
    Junior Member
    • Feb 2010
    • 27

    #2
    Sorry

    Here is the forgotten attached mib file.

    Many Thanks.
    Attached Files

    Comment

    Working...