When building a Script Action for a rule, how to specify the script name?
The Help instructions are inaccurate in stating, that the rule runs the script from the /scripts directory.
Import the script into the Foglight Management Server using monitoring policy import as a persistable-script object, so it then be referenced from the Script Action.
$FGLHOME/bin/fglcmd{.sh or .bat} -usr -pwd -cmd util:configimport -f /tmp/myscript.txt
To define ScriptAction in rules, the Script name and ArgumentX parameters are used; for example:
args[1]
in the scriptargs[2]
in the scriptargs[3]
in the script
For additional information refer to the "Explore the Rule Management dashboard" section of the Foglight - Administration and Configuration Guide.
For customization of the Foglight, please contact our Professional Services Organization
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. 使用条款 隐私 Cookie Preference Center