|
From: | Rubin, Alan |
Subject: | monit alerts with exec |
Date: | Mon, 23 Mar 2015 20:24:24 +0000 |
This works including the reminder for /testfs. However, the srvstat_mail script seems to run fine but continues and emails the output every minute. I am very new to monit so my code will need some improvements. Hopefully you can help me clean this up.
Thanks -Al ------------------------------------ monitrc: Global set alert myemail with reminder on 5 cycles #receive all alerts check filesystem [/testfs] with path /dev/fslv00 if space usage > 90% for 1 times within 5 cycles then exec "/opt/monit/bin/srvstat_mail" ----------------------------------------------------- Script: srvstat_mail calls another script > srvstat which is sent to a file srvstat.out > which I cat contents and email.
This message may contain information which is private, privileged or confidential and is intended solely for the use of the individual or entity named in the message. If you are not the intended recipient of this message, please notify the sender thereof and destroy / delete the message. Neither the sender nor Sappi Limited (including its subsidiaries and associated companies) shall incur any liability resulting directly or indirectly from accessing any of the attached files which may contain a virus or the like. |
[Prev in Thread] | Current Thread | [Next in Thread] |