- changed status to open
Monit check program returns no output
Issue #196
closed
Run simplest script:
#!/bin/sh
echo some_string
exit
By
check program somescript with path /root/somescript
every "* * * * *"
if status != 0 then alert
What I got is:
Status Status ok
Last exit value 0
Last output no output
P.S. I testes it in v5.13, but it's unavailable in Version list box.
Comments (2)
-
reporter -
repo owner - changed status to closed
Yes, as noted here, the return from
check program
is handled in the next cycle. We'll address this problem when we start on the 6.0 branch shortly. - Log in to comment
I put date in my script and here is what happens: After monit reload:
After one minute:
It seems that output is delayed by one cycle. If I run program once a day I will see yesterday output.