Ad Widget

Collapse

linux snmp custom oid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ab-tech
    Junior Member
    • Sep 2020
    • 20

    #1

    linux snmp custom oid

    Hello,
    unfortunately on a server i can't install zabbix agent to monitor it, but i have only snmp agent.

    my goal is monitor disk (then also a raid)
    for now i would check only temperature
    so i have create a script

    Code:
    #!/bin/bash
    $(which hddtemp) -n /dev/sda
    and add on /etc/snmp/snmpd.conf

    extend sda_temp /bin/bash /etc/snmp/scripts/sda_temp.bash

    ok now if i try to (on same server)
    snmpwalk -v2c -c public localhost NET-SNMP-EXTEND-MIB::nsExtendObjects | grep sda_temp

    i find my value

    ok to add in zabbix i try to add items on my host (also works with cpu , memory, basic oid)

    name sda temp
    type snmpv2 agent
    key sda.temp
    snmp oid 1.3.6.1.4.1.8072.1.3.2.2.1.3.8.115.100.97.95.116.1 01.109.112.1
    snmp community public
    type of information numeric float
    unit C
    update interval (in sec) 60

    but i have this error


    SNMP error: (noSuchName) There is no such variable name in this MIB.

    can i use this way to monitor disk temperature on snmp ?

    thank you



  • ab-tech
    Junior Member
    • Sep 2020
    • 20

    #2
    sorry, i edit

    snmp oid .3.6.1.4.1.8072.1.3.2.2.1.3.8.115.100.97.95.116.1 01.109.112.1

    and now works

    thank you anyway

    Comment

    • Gorczany
      Junior Member
      • Jun 2021
      • 1

      #3
      I've never been able to wrap my head around how to take the OID values retrieved with "snmpwalk" to labels that a human can understand, and I think the MIB is what provides that translation. I've never understood how to get them all working together though. I've got the MIB for my device and I've got snmpwalk working against and it returns a bunch of numerical OIDs and values. How do I figure out what all of these OIDs and their values mean?

      myccpay account
      Last edited by Gorczany; 23-06-2021, 05:54.

      Comment

      Working...