Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Triggers in textboxes #39

Closed
megastruktur opened this issue Aug 16, 2019 · 2 comments
Closed

[Question] Triggers in textboxes #39

megastruktur opened this issue Aug 16, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@megastruktur
Copy link

Hey guys, is it possible to use Triggers in Textboxes?
I'm trying to make a "ping machine" to determine whether the webserver is online. If not - make an alarm.

textboxes:
  - title: Google
    sample: curl -o /dev/null -s -w '%{http_code}'  https://google.com
    triggers:
      - title: Server down
        condition: echo "$cur != 200" | bc -l
        actions:
            visual: true
            script: 'say alert: ${label} server is Down'

Right now the config shows me an error: TRIGGER CONDITION FAILURE fork/exec /bin/sh: invalid argument

I can't figure out how can I overcome this. Please help :)

@sqshq sqshq added the bug Something isn't working label Aug 17, 2019
@sqshq
Copy link
Owner

sqshq commented Aug 18, 2019

Hi @megastruktur, thank you for reporting this.
The issue is fixed and released with version 1.0.3. Please update Sampler and try again

@megastruktur
Copy link
Author

Works like a charm now. Thanks @sqshq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants