Ignore:
Timestamp:
04/26/13 16:57:16 (11 years ago)
Author:
jripsl
Message:

add JSON deserialization, mail notification, logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Monitoring/script/libIGCM_mock.sh

    r842 r854  
    1212################################## 
    1313 
    14 stack_file="../sample/stack_light" 
     14stack_file=$1 
     15send_msg="/home/jripsl/snapshot/Monitoring/CNClient/sendAMQPMsg" 
     16 
     17if [ $# -lt 1 ]; then 
     18        echo "Usage $0 ../sample/stack_light" 
     19        exit 1 
     20fi 
    1521 
    1622IFS=$'\n' 
    1723for line in $(cat $stack_file); do 
    18         echo $line | awk -F" " '{print $4}' 
     24        #echo $line | awk -F" " '{print $4}' 
     25        callname=$(echo $line | awk -F" " '{print $4}' ) 
     26        $send_msg localhost 5672 string "$callname" 
    1927done 
Note: See TracChangeset for help on using the changeset viewer.