Re: Problem with strip charts

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Mon, 2 Oct 1995 17:46:22 +0100

Hi!

David Carmean <dave@west.net> said:

David> The biggest problem is that when I add charts for SNMP
David> monitoring, and save the map, only *one* of these charts are
David> running when I reload the map. Examination of the file shows
David> that it is only leaving one of the calls to the
David> snmp_monitor.tcl interpreter at the end of the file.

I did some cleanups in snmp_monitor.tcl and obviously I made a silly
mistake. Below is a patch for snmp_monitor.tcl that should fix this
problem. (I should really know how lappend works right now.)

Juergen

*** snmp_monitor.tcl-orig Thu Sep 21 21:29:59 1995
--- snmp_monitor.tcl Mon Oct 2 17:30:30 1995
***************
*** 49,55 ****
##

proc save { cmd } {
! ined restart [lappend [ined restart] $cmd]
}

##
--- 49,57 ----
##

proc save { cmd } {
! set cmdList [ined restart]
! lappend cmdList $cmd
! ined restart $cmdList
}

##
***************
*** 586,592 ****
"exceeded. The action types are syslog, flash and write."
""
"Monitor Variable:"
! " Monitor a SNMP variable in a stripchart."
""
"Interface Load:"
" Compute the load of an interface and display it in a stripchart."
--- 588,595 ----
"exceeded. The action types are syslog, flash and write."
""
"Monitor Variable:"
! " Monitor a SNMP variable in a stripchart. Variables of Counter"
! " type are displayed as the delta value per second."
""
"Interface Load:"
" Compute the load of an interface and display it in a stripchart."