How to pass parameters to trigger inside a rule

Hi All

I am writing sensor which poll external monitoring tool called rightitnow, i would like to send parameter to trigger inside a rule , something like check_ntp. how to define parameters inside under trigger block


Any update on this. i am writing code for sensor but would wanted to know if there is any way i can send params to sensor via rules. I know i can do it through config.yaml but my main goal is to use a single sensor and use params to pass the keyworks to the sensor , any help is appreciated

I was able to do this by using config.yaml in which I have defined a comma seperated for list of alert keywords as value for a key called alert_pattern and internal to sensor acessing this key via config.yaml or pack.yaml and filter the alert based on matched keywords to parse a payload

1 Like