Closed bmfmancini closed 1 year ago
tested the same rule on 3.1 working as expected
Ahh I see whats going on here
by default on 3.1 a new rule reporting level is set to the system and that works fine passing the hostname but on 4.0 if you don't select device reporting no hostname is passed
Unless this is not intended I will update the doc on this since rules from 3.1 may not work
During testing I am seeing that the hostname variable is not being passed to the script
the rule executes the below notice --host is blank
2022-07-21 10:52:10 - SYSTEM SYSLOG NOTICE: Executing '/opt/script --desc "Test" --host --items ''\''Module normal voltage range