Ad Widget

Collapse

Correlate between module name to sensor name in item prototype LLD SNMP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moonb0w
    Junior Member
    • Feb 2019
    • 5

    #1

    Correlate between module name to sensor name in item prototype LLD SNMP

    Hello everyone,

    I need to correlate between module name to sensor name in item prototype which have different SNMP OID on Cisco 4500
    here's my config

    LLD rule:
    discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.3.1.2,{#ENT_NAME },1.3.6.1.2.1.47.1.1.1.1.7]

    LLD filter:
    Only module linecard and supervisor that have temperature sensor, other modules are ignored.
    A OR B (tried A AND B no result in latest data)
    A {#ENT_NAME} matches Linecard.+|Supervisor.+
    B {#SNMPVALUE} matches Air inlet|Air inlet remote|Air outlet|Air outlet remote|Stub [AB]|XPP|VFE|NFE|CPU|FPGA


    item proto:
    {#ENT_NAME} {SNMPVALUE}: Temperature status

    expected item proto result:
    each module has multiple sensor


    Module Sensor Temperature Status
    ------+--------------------------+--------------------+------------
    1 Air inlet 28C (44C,59C,62C) ok
    1 Air inlet remote 35C (47C,61C,64C) ok
    1 Air outlet 33C (47C,62C,65C) ok
    1 Air outlet remote 38C (52C,66C,69C) ok
    3 Stub A 36C (58C,71C,74C) ok
    3 Stub B 28C (54C,68C,71C) ok
    3 XPP 46C (67C,81C,84C) ok
    3 VFE 59C (79C,90C,93C) ok
    3 NFE 45C (68C,80C,83C) ok
    3 CPU 53C (69C,83C,86C) ok
    3 FPGA 35C (57C,71C,74C) ok
    4 Stub A 33C (58C,71C,74C) ok
    4 Stub B 27C (54C,68C,71C) ok
    4 XPP 44C (67C,81C,84C) ok
    4 VFE 52C (79C,90C,93C) ok
    4 NFE 42C (68C,80C,83C) ok
    4 CPU 47C (69C,83C,86C) ok
    4 FPGA 32C (57C,71C,74C) ok


    expected result:
    Linecard(slot 1) Air inlet:
    Linecard(slot 1) Air inlet remote:
    etc.
    Supervisor(slot 3) CPU: Temperature status
    Supervisor(slot 3) FPGA: Temperature status
    and so on

    question:
    how do I sort the wanted sensor name to correct module name in item prototype? tried context macro not working in item proto name

    many thanks
Working...