Hello Dan,

 

I'm a little late on this, but there is a section near the bottom of the
set, update, and clear scripts where I've placed executables to run once
those scripts have started.  In the example below, I've commented out the
portion of the set script that calls the mail program and replaced it with
the local windows calculator program as a crude example.  I know there are
other ways of doing this as well, but I just wanted to give you some more
options.  Let me know if you have any questions..

 

Calvin

 

..snip..

 

then

      echo " "

      echo
"*******************************************************************"

      echo "Sending mail to $RECIPIENTS:" 

      echo ""

      echo "($RCVRS)"

      echo
"*******************************************************************"

      echo_info | tee -i /tmp/set_alarm.$PID

      #$MAIL -s "A $SEV alarm has occurred on $SERVER (Model
Name=$MNAME)(Model Type=$MTYPE)" $RCVRS < /tmp/set_alarm.$PID

      rm -f /tmp/set_alarm.$PID

      c:/windows/system32/calc.exe

   else

 

 

From: Tadysak, Dan E [mailto:[email protected]] 
Sent: Thursday, May 24, 2012 9:59 AM
To: spectrum
Subject: [spectrum] Ca Spectrum Automatic Action

 

I know this has probably been asked before but I cannot find any examples
when searching my mail from our forum. Does anyone have an example of an
automatic action that is run when an alarm is detected. I am not sure of how
to setup a script to be launched when a certain alarm occurs. Does anyone
have an example they can share. I want the ability to pass parameters from
the alarm to the script.

 

Thanks,

*       --To unsubscribe from spectrum, send email to [email protected] with
the body: unsubscribe spectrum [email protected] 


---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to