Sensatronics temp/humidity working with MRTG - SNMP

This is a discussion on Sensatronics temp/humidity working with MRTG - SNMP ; I've spent about half a day trying to get this temp/humidity monitor(EM1) from Sensatronics to work with our mrtg/snmp setup. We are monitoring about 20 different devices(mostly unix boxes) the same way, and for some reason I am getting errors ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Sensatronics temp/humidity working with MRTG

  1. Sensatronics temp/humidity working with MRTG

    I've spent about half a day trying to get this temp/humidity
    monitor(EM1) from Sensatronics to work with our mrtg/snmp setup. We
    are monitoring about 20 different devices(mostly unix boxes) the same
    way, and for some reason I am getting errors using mrtg to poll the EM1
    device. I can do an snmpget on the two OID's that I want to look at
    and it works fine:

    [root@gutenberg]/mrtg/run# snmpget -v1 -Cf -c public 10.100.3.222
    ..1.3.6.1.4.1.16174.1.1.3.3.1.4.0 .1.3.6.1.4.1.16174.1.1.3.3.1.6.0
    SNMPv2-SMI::enterprises.16174.1.1.3.3.1.4.0 = INTEGER: 75
    SNMPv2-SMI::enterprises.16174.1.1.3.3.1.6.0 = STRING: "37.4"
    [root@gutenberg]/mrtg/run# tail -15 mrtg.cfg

    Here is my mrtg.cfg for this particular device:
    Target[sens_temp_hum]:
    ..1.3.6.1.4.1.16174.1.1.3.3.1.4.0&.1.3.6.1.4.1.16174.1.1.3.3.1.6.0ublic@10.100.3.222
    Title[sens_temp_hum]: server_room 10.100.3.222 Temperature
    PageTop[sens_temp_hum]:

    server_room 10.100.3.222 Temperature


    MaxBytes[sens_temp_hum]: 150
    YLegend[sens_temp_hum]: full
    Legend1[sens_temp_hum]: Temperature
    Legend2[sens_temp_hum]:
    Legend3[sens_temp_hum]:
    Legend4[sens_temp_hum]:
    LegendI[sens_temp_hum]: Temperature
    LegendO[sens_temp_hum]:
    Options[sens_temp_hum]: gauge, growright, nopercent, integer


    Here is the error I get when I run mrtg. I'm guessing it has
    something to do with the Sensatronics MIB not supporting sysUptime and
    sysName? Any ideas? I tried to comb the Sensatronics and other sites
    and couldn't find a solution, but this I would think is a very common
    problem:

    [root@gutenberg]/mrtg/run# LANG=C; export LANG; mrtg /mrtg/run/mrtg.cfg
    SNMP Error:
    Received SNMP response with error code
    error status: noSuchName
    index 3 (OID: 1.3.6.1.2.1.1.3.0)
    SNMPv1_Session (remote host: "10.100.3.222" [10.100.3.222].161)
    community: "public"
    request ID: -378941877
    PDU bufsize: 8000 bytes
    timeout: 2s
    retries: 5
    backoff: 1)
    at /usr/bin/../lib/mrtg2/SNMP_util.pm line 458
    SNMPGET Problem for .1.3.6.1.4.1.16174.1.1.3.3.1.4.0
    ..1.3.6.1.4.1.16174.1.1.3.3.1.6.0 sysUptime sysName on
    public@10.100.3.222
    at /usr/bin/mrtg line 1678
    ERROR: Target[sens_temp_hum][_IN_] ' $$target[417]{$mode} ' did not
    eval into defined data
    ERROR: Target[sens_temp_hum][_OUT_] ' $$target[417]{$mode} ' did not
    eval into defined data
    WARNING: Skipping Update of sens_temp_hum, inlast is not defined
    WARNING: Skipping Update of sens_temp_hum, outlast is not defined
    Any ideas on how I can get around this error?

    thanks,
    Craig


  2. Re: Sensatronics temp/humidity working with MRTG

    craigwilson@johndoes.org wrote:
    > Here is the error I get when I run mrtg. I'm guessing it has
    > something to do with the Sensatronics MIB not supporting sysUptime and
    > sysName? Any ideas? I tried to comb the Sensatronics and other sites
    > and couldn't find a solution, but this I would think is a very common
    > problem:


    > [root@gutenberg]/mrtg/run# LANG=C; export LANG; mrtg /mrtg/run/mrtg.cfg
    > SNMP Error:
    > Received SNMP response with error code
    > error status: noSuchName
    > index 3 (OID: 1.3.6.1.2.1.1.3.0)
    > SNMPv1_Session (remote host: "10.100.3.222" [10.100.3.222].161)
    > community: "public"
    > request ID: -378941877
    > PDU bufsize: 8000 bytes
    > timeout: 2s
    > retries: 5
    > backoff: 1)
    > at /usr/bin/../lib/mrtg2/SNMP_util.pm line 458
    > SNMPGET Problem for .1.3.6.1.4.1.16174.1.1.3.3.1.4.0
    > .1.3.6.1.4.1.16174.1.1.3.3.1.6.0 sysUptime sysName on public@10.100.3.222 at /usr/bin/mrtg line 1678


    From mrtg-reference.txt:

    NoMib2

    Normally we ask the SNMP device for 'sysUptime' and 'sys-
    Name' properties. Some do not have these. If you want to
    avoid getting complaints from mrtg about these missing
    properties, specify the nomib2 option.

    /Niels

    --
    Niels Baggesen -- @home -- Århus -- Denmark -- niels@baggesen.net
    The purpose of computing is insight, not numbers -- R W Hamming

+ Reply to Thread