I would trigger my own script, something like this

 if failed ….. with timeout 20 seconds for 4 times within 5 cycles then exec 
"/usr/bin/php /home/user/tailLogFileAndMail.php“

Best,

Tino
> Am 09.10.2015 um 22:33 schrieb Florin Andrei <[email protected]>:
> 
> I'm using Monit to supervise a series of node.js frontends and so far it's 
> been great. But there's one request that keeps coming up from everyone, and 
> it makes a lot of sense if you think about it:
> 
> When the service crashes and it's restarted by Monit, and an alert email is 
> dispatched, it would be great if Monit could grab the most recent N lines 
> from a log file and include them in the email.
> 
> Is there a way to do that in Monit?
> 
> -- 
> Florin Andrei
> http://florin.myip.org/
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general


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

Reply via email to