Can the probe generate an alarm if the output of the command that I want to monitor returns an empty result?
I need to verify if specific text shows up in the file, and if not, generate an alarm. I tried to use a regex for this but when the file was empty logmon did not generate an alarm.
Environment
Release: 20.4
logmon 4.20
dirscan 3.19
Resolution
You can use the dirscan probe to monitor a file and alarm if it's empty, (if size is = 0), generate an alarm.