First time user of Automox/worklets in general. Wanted to create a worklet to run against CentOS servers for the following command: ‘yum update check; echo $?’. My goal is if the command returns a 1 (which means there’s some error(s)), is there a way for the worklet/Automox to let I (or anyone in general know) that that server needs to be looked at.
For the remediation code, I would believe it’s something as simple as:
yum update check; echo $?
But not sure what I would need for the Evaluation code & how to alert which server(s) return a code of ‘1’ so they could be looked at. Again, apologies, this is my first time using a worklet so as much help will greatly be appreciated. Thank you.