#!/bin/csh -f # # ito_msg - written by Kevin P. Inscoe (Monitor Gateway System) # # parameters: # # $1 - severity "normal|warning|minor|major|critical" # $2 - nodename # $3 - application # $4 - object # $5 - message group # # the message text is contained in stdin (-) # # # History: # # When Who What # ---- --- ---- # 5-12-98 Kevin Inscoe Create Original # ############################################################### # # Global Variables # source /osgss1/apps/monitor/globals.sh set TMP = /tmp/ito_msg_$DTMP.tmp /bin/echo "+++++" `/bin/date` >> $LOG /bin/echo "+++++" `/bin/date` >> $ITOLOG # # process input # /bin/cat - > $TMP set msg = `/bin/cat $TMP` echo $msg /opt/OV/bin/OpC/opcmsg msg_text="`/bin/echo $msg`" sev=$1 node=$2 appl=$3 obj=$4 msg_grp=$5 /bin/echo `/bin/date` "msg_text=" $msg "sev=" $1 "node=" $2 "appl=" $3 "obj=" $4 "msg_grp=" $5 >> $ITOLOG /bin/cat $TMP >> $LOG /bin/rm -f $TMP