monit-general
[Top][All Lists]
Advanced

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

both: "then alert" and "then exec"


From: Pol Hallen
Subject: both: "then alert" and "then exec"
Date: Wed, 25 Feb 2015 19:15:55 +0100
User-agent: SquirrelMail/1.4.21

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




reply via email to

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