monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: both: "then alert" and "then exec"


From: Martin Pala
Subject: Re: both: "then alert" and "then exec"
Date: Fri, 6 Mar 2015 01:17:21 +0100

Hi,

the mentioned setup should work - which Monit version it is? Please can you try 
it with Monit 5.12?

Regards,
Martin



> On 25 Feb 2015, at 19:15, Pol Hallen <address@hidden> wrote:
> 
> Hi all :-)
> 
> I'd like personalize status of alerts, ie:
> 
> if space usage > 95% then alert
> if space usage > 95% then exec "/bin/bash -c 'df -lh|egrep
> "File|root"|mutt -s "HIGH DISK SPACE" -e 'my_hdr From:address@hidden
> <address@hidden>' address@hidden'"
> 
> so a classical monit email alert and also an email with details about disk
> space
> 
> any way to run both "then alert" and "then exec"? Have these 2 lines, only
> first line runs.
> 
> thanks for help!
> 
> Pol
> 
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

[Prev in Thread] Current Thread [Next in Thread]