#1036643 monit: Monit caching results of custom script

Package:
monit
Source:
monit
Description:
utility for monitoring and managing daemons or similar programs
Submitter:
js1
Date:
2023-05-23 18:12:31 UTC
Severity:
normal
#1036643#5
Date:
2023-05-23 18:11:02 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?
     My custom bash script called by Monit seems to be caching old failed results which caused monit to run the monitored service restart command unnecessarily.
     If I run the monitoring script manually, there is no error, but monit runs indicate otherwise.
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
     restarted monit
   * What was the outcome of this action?
     Custom script output reported correctly.