RE: [tkined] Monitoring ucd-davis snmp variables on linux?

From: Adam Haeder (
Date: Thu Jul 27 2000 - 18:23:37 MET DST

I am still unable to monitor any ucdavis snmp linux variables through
>From the box I run tkined from, I can type the following:

[root@solomon snmp]# snmpget localhost local_public .
enterprises.ucdavis.memory.memAvailReal.0 = 44968

The snmpget program is the one that ships with the ucd-snmp package. This
works fine.
Now, I attempt to monitor this variable in tkined. I choose SNMP-MONITOR ->
Monitor Variable, and when it asks me what variable to monitor, I enter:
I immediately get the following popup window:
Monitor Variable . on recvfrom failed:
connection refused

Now the error seems to indicate that this variable exists, but I do not have
permission to read it. However, I can retrieve the contents of this value
from the command line. How can I monitor this variable in tkined? Is the
format that I am using to represent the variable incorrect?


 -----Original Message-----
From: Juergen Schoenwaelder []
Sent: Monday, July 24, 2000 2:07 PM
Subject: Re: [tkined] Monitoring ucd-davis snmp variables on linux?

>>>>> Adam Haeder writes:

Adam> I'm running the latest ucd-snmp (version 4.1.1-2) on multiple
Adam> linux boxes. I would like to have tkined monitor the variables
Adam> that occur under the enterprises.ucdavis section of the snmp
Adam> tree. I have done the following:

Adam> copied the relevant ucd-mib from /usr/share/snmp/mibs to
Adam> /usr/lib/tnm2.1.10/mibs. It's named ucd-snmp.mib added the
Adam> following line to my /usr/lib/tnm2.1.10/library/init.tcl file:
Adam> lappend tnm(mibs) ucd-snmp.mib restarted tkined

This sounds good.

Adam> The mib is getting loaded, because I can go to the SNMP browser
Adam> and see it as an option. I can also browse through the different
Adam> variables listed. However, when I try to view any of the
Adam> variables from the MIB Browser, it attempts to connect to
Adam> localhost ( which fails, since I'm not running snmpd
Adam> on my monitoring machine. No matter what host icon I have
Adam> selected in the tkined map, it always attempts to access
Adam> localhost.

Sounds strange since the selection of the target has really nothing to
do with the MIB files you have loaded. Please check whether you can
read other basic information, such as the SNMPv2-MIB::system group.

Adam> What I really want to do is monitor these variables in graphs
Adam> like the existing interface monitoring graphs. When I go to the
Adam> "Monitor Variable" menu option under SNMP Monitor, it asks what
Adam> snmp variable I should monitor. I have tried every combination
Adam> of options to get it to query a ucdavis variable to no
Adam> avail. I've tried the following:

Adam> enterprises.ucdavis.laTable.laEntry.laLoad.1
Adam> .enterprises.ucdavis.laTable.laEntry.laLoad.1
Adam> .laTable.laEntry.laLoad.1

Just use "laLoad". The monitoring script will walk the tree rooted at
laLoad and setup monitors for all instances found.

Adam> None of these work. I either get "No such variable" or
Adam> "connection refused" (which I don't understand). Can someone
Adam> please tell me the syntax for getting tkined to monitor the
Adam> ucd-snmp variables under linux? TIA

Make sure you can monitor simple standard things. If they work, start
to monitor the UCD agent.

If in doubt where the problem is, try to write a 5 line scotty script
which directly talks to the UCD SNMP agent and see what happens, e.g.

set s [snmp session -address xxxx]
$s walk x laLoad { puts $x }
$s destroy


Juergen Schoenwaelder      Technical University Braunschweig
<>  Dept. Operating Systems & Computer Networks
Phone: +49 531 391 3289    Bueltenweg 74/75, 38106 Braunschweig, Germany
Fax:   +49 531 391 5936    <URL:>

-- !! This message is brought to you via the `tkined & scotty' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to <>. !! See for more information. -- !! This message is brought to you via the `tkined & scotty' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to <>. !! See for more information.

This archive was generated by hypermail 2b29 : Mon Jan 08 2001 - 15:27:50 MET