[Sguil-cvs] sguil/server/lib SguildSensorCmdRcvd.tcl,1.14,1.15
Status: Beta
Brought to you by:
bamm
From: Bamm V. <ba...@us...> - 2005-09-15 20:23:33
|
Update of /cvsroot/sguil/sguil/server/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6229/server/lib Modified Files: SguildSensorCmdRcvd.tcl Log Message: Report barnyard connects and disconnects via system msg. Index: SguildSensorCmdRcvd.tcl =================================================================== RCS file: /cvsroot/sguil/sguil/server/lib/SguildSensorCmdRcvd.tcl,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** SguildSensorCmdRcvd.tcl 3 Jun 2005 22:35:43 -0000 1.14 --- SguildSensorCmdRcvd.tcl 15 Sep 2005 20:23:21 -0000 1.15 *************** *** 12,22 **** } else { InfoMessage "Sensor Data Rcvd: $data" - # note that ctoken changes the string that it is operating on - # so instead of re-writing all of the proc to move up one in - # the index when looking at $data, I wrote $data to $tmpData - # before using ctoken. Probably should drop this and fix the - # procs, but that can happen later - #set tmpData $data - #set sensorCmd [ctoken tmpData " "] set sensorCmd [lindex $data 0] switch -exact -- $sensorCmd { --- 12,15 ---- *************** *** 32,35 **** --- 25,29 ---- XscriptDebugMsg { $sensorCmd [lindex $data 1] [lindex $data 2] } RawDataFile { $sensorCmd $socketID [lindex $data 1] [lindex $data 2] [lindex $data 3] } + SystemMessage { SystemMsgRcvd $socketID [lindex $data 1] } default { if {$sensorCmd != ""} { LogMessage "Sensor Cmd Unkown ($socketID): $sensorCmd" } } } *************** *** 92,96 **** proc DiskReport { socketID fileSystem percentage } { ! global agentSensorNameArray ! SendSystemInfoMsg $agentSensorNameArray($socketID) "$fileSystem $percentage" } --- 86,102 ---- proc DiskReport { socketID fileSystem percentage } { ! ! global agentSensorNameArray ! ! SendSystemInfoMsg $agentSensorNameArray($socketID) "$fileSystem $percentage" ! ! } ! ! proc SystemMsgRcvd { socketID msg } { ! ! global agentSensorNameArray ! ! SendSystemInfoMsg $agentSensorNameArray($socketID) $msg ! } + |