Alerting

run two scripts when triggering alert

0range
Communicator

Is it possible to run two scripts at the same time?
for example if I type "a.sh, b.sh" in the corresponding line of savedsearch settings window will Splunk execute both?

Tags (2)
1 Solution

MuS
Legend

Hi 0range,

No, this will not work - just tested that.

But you can create a wrapper script in $SPLUNK_HOME/bin/scripts/ which will call those two scripts and assign the wrapper script to be run when the alert hits - as well, just tested that 😉

cheers, MuS

View solution in original post

MuS
Legend

Hi 0range,

No, this will not work - just tested that.

But you can create a wrapper script in $SPLUNK_HOME/bin/scripts/ which will call those two scripts and assign the wrapper script to be run when the alert hits - as well, just tested that 😉

cheers, MuS

0range
Communicator

thanks MuS... but we have VMware app... 😞

0 Karma

MuS
Legend

check out this app http://apps.splunk.com/app/1730/ maybe this can help you achieving your goals

0 Karma

0range
Communicator

It seems an interesting way to use an external alerting system... but I think it's Splunk's job 😞

0 Karma

MuS
Legend

Or have Splunk sent out the alert to some other Alerting System which will take care of the all your alerting combinations/conditions ....

0 Karma

gfuente
Motivator

What about passing parameters to the wrapping script specifiying the subscripts to be called?

0range
Communicator

No other ways?

0 Karma

0range
Communicator

Sure we can do like this, but the number of combinations scares me..)

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...