Hello,

you can use the "check program" statement: 
https://mmonit.com/monit/documentation/monit.html#PROGRAM-STATUS-TESTING

It allows to check exit status of the program.

Best regards,
Martin


> On 16 Jun 2016, at 18:24, Volkan Celebi <[email protected]> wrote:
> 
> Dear all,
> 
> I have a bash script and I would like to exec it every 5 minutes to check the 
> value of ERRORTS variable. If everything goes well this variable doesn't get 
> any value if is tehre any error this script assign to this variable a int 
> integer. 
> 
> How I can realize this scenieri in monitrc file?
> 
> Thanks in advance
> 
> -- 
> Volkan Çelebi
> IT System Spezialist
> Heimstr. 10
> 8953 Dietikon
> Tel: +41 788 488 319 <>--
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to