Hi,
I'm trying to create a basic alert regarding to a command's exit code.
Command is just greps output of a script;
"Item" is like below;
So if the command catches "down", exit code is = 0
And the trigger expression is like below;
But it's not creating alert.
Is the trigger expression should be something else?
Thanks!
I'm trying to create a basic alert regarding to a command's exit code.
Command is just greps output of a script;
"Item" is like below;
Code:
#!/bin/bash
echo {$SSH.USER.PASSWORD} | sudo -S sh /script/linux_check.sh | grep "Down"
And the trigger expression is like below;
Code:
last(/linux_instance_check.sh/ssh.run[cmd1.command])=0
Is the trigger expression should be something else?
Thanks!
Comment