Re: [tkined] Message: job deleted

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Fri, 13 Mar 1998 16:43:23 +0100

>>>>> Volker Müller writes:

Volker> Some day ago I posted a message about a problem with tkined
Volker> 1.4.7 Now I have found the error-message:

[snip]

Volker> The job had to show the interface activity from a Linux-PC
Volker> with rpc.rstatd 3.03.

No, this job was displaying the system load, not the interface
activity.

Volker> Please, it is urgent, because I write a Diploma about snmp
Volker> with tkined.

The system load (as well as the interface activity) are obtained by
issues rstat rpc calls. No snmp involved. Anyway, below is a patch
which should fix the problem.

Juergen

*** ip_monitor.tcl.orig Wed Oct 23 12:16:32 1996
--- ip_monitor.tcl Fri Mar 13 16:39:16 1998
***************
*** 442,447 ****
--- 442,449 ----

array set r [ComputeStatDelta $sysload_stat($id) $res]
set sysload_stat($id) $res
+ if {[array size r] == 0} continue
+
set load [format "%.2f" $r(avenrun_0)]

ined -noupdate values $id $load

--
!! 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 <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.