I can't figure out why this script fails if I un-comment any of the ":local" variable declarations:
:local myhost $host
/tool netwatch
#:local mystatus [get [find where host=$myhost] status]
#:local mycomment [get [find where host=$myhost] comment]
#:local myinterval [get [find where host=$myhost] interval]
#:local mytimeout [get [find where host=$myhost] timeout]
#:local mypacketinterval [get [find where host=$myhost] packet-interval]
#:local mypacketcount [get [find where host=$myhost] packet-count]
#:local mythrmax [get [find where host=$myhost] thr-max]
#:local mythravg [get [find where host=$myhost] thr-avg]
#:local mythrlosspercent [get [find where host=$myhost] thr-loss-percent]
#:local mythrlosscount [get [find where host=$myhost] thr-loss-count]
#:local mysince [get [find where host=$myhost] since]
#:local mypacketsize [get [find where host=$myhost] packet-size]
:log info "NETWATCH host=$myhost status=$mystatus comment=$mycomment interval=$myinterval timeout=$mytimeout packet-interval=$mypacketinterval packet-count=$mypacketcount thr-avg=$mythravg thr-loss-percent=$mythrlosspercent rttavg=$myrttavg"
:log info "NETWATCH Loss-Percentage=$"loss-percent""
:log info "NETWATCH rtt-avg=$"rtt-avg""
:log info "NETWATCH rtt-avg=$"thr-max""