One of our customers has asked to disable/enable processes probe based on the existence of a file. I see a solution in conjunction with dirscan probe and lua script. Any thoughts?
Yes the mix (dirscan/nas with a lua script) seem to be one of the solution (with a local sqlite base to write the state and keep it up to date even if the nas is restarted etc..). Just by matching the desired alarm from dirscan !
It will work for low-load at the nas level (but to match an high-load need a perl/java probe is the only acceptable solution for me).
I would more do something like:
* use logmon (or dirscan) to check the condition
* trigger a probe_disable callback on the controller on the probe you don't want to keep enabled
Retrieving data ...