Using the Notifier process SetScript

If the event creates an Alarm then use the $CAUSE code, also in the example
below you can use Global Collection membership (thats SANM_0X12ADM) and
Severity - to use the GC membership remember to modify the .alarmrc file
and add in
EXTRA_ATTRS_AS_ENVVARS=0X12ADB,

Adding in something along the lines of at the end where it defines the
actions

      if [[ "$SANM_0X12ADB" = *group* && "$SEV" = "CRITICAL" && "$CAUSE" =
"10009" ]]
        then
        echo
"*******************************************************************"
        echo "Do special script"
        echo
"*******************************************************************"

    /usr/sbin/specialscript.sh
     fi


On 17 October 2014 09:01, Jon Magnus Dullerud <dulle...@gmail.com> wrote:

> Hi all.
> What is the best way to fire off a script on the server when a event
> occurs?
> We are trying to get spectrum to start a script that sends a request to
> another nms when a new device is discovered in spectrum.
>
> What is the best way to do this?
> I am a bit worried when doing auto discovery of many devices.
>
>
> /jon magnus
> ---
> To unsubscribe from spectrum, send email to lists...@unc.edu with the
> body: unsubscribe spectrum jason.heb...@gmail.com
>

---
To unsubscribe from spectrum, send email to lists...@unc.edu with the body: 
unsubscribe spectrum arch...@mail-archive.com

Reply via email to