[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: simple way to send a chunk from a log file with the alert email
From: |
Tino Hendricks |
Subject: |
Re: simple way to send a chunk from a log file with the alert email |
Date: |
Sat, 10 Oct 2015 11:02:04 +0200 |
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 <address@hidden>:
>
> 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