Hi guys,
Currently I have an external check configured as an item and I use a simple condition in my trigger that checks if the output of my external script is 0 or 1. If I get 1, my trigger goes into PROBLEM state and I send an email alert. So far I've been using a very hacky approach to test the email notifications wherein I make a minor edit to my external script every single time such a way that the trigger gets fired and in turn the email gets sent. My question is, is there a way to toggle the trigger from command line which will in turn will call an action and then send the email?
Currently I have an external check configured as an item and I use a simple condition in my trigger that checks if the output of my external script is 0 or 1. If I get 1, my trigger goes into PROBLEM state and I send an email alert. So far I've been using a very hacky approach to test the email notifications wherein I make a minor edit to my external script every single time such a way that the trigger gets fired and in turn the email gets sent. My question is, is there a way to toggle the trigger from command line which will in turn will call an action and then send the email?
Comment