Hi
this patch update monit from 5.2.5 to 5.4, this add cool feature like "check program", to execute a script and send email/do action depending on the return code, and many bugfixes (http://mmonit.com/monit/dist/CHANGES.txt)
I've modified the init script because "-d 60" overide the conf file and the stat command doesn't seem to exist, so either we just chmod each time or we let the people RTFM and the syslog (i prefer the latter)
For now i've tested only the ssl version with backfire (r31676) on x86 and ar71xx (tplink wr1043nd) (it send mail via google, ping, watch load average and cpu ...)
It compile (monit and monit-nossl) for x86 and ar71xx for backfire & trunk (trunk x86 mount the ext4 partition readonly so i haven't tested)
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
git-svn-id: svn://svn.openwrt.org/openwrt/packages@32674 3c298f89-4303-0410-b956-a3cf2f4a3e73
I wanted to configure monit with a rule that checks a network
connection, restarts the connection if it fails, and eventually
reboots the entire router if the connection restarts don't work.
I wrote this in my rules:
start "/sbin/ifup inet"
stop "/sbin/ifdown inet"
if failed icmp type echo count 3 timeout 10 seconds then restart
if 3 restarts within 5 cycles then exec "/sbin/reboot"
When I tested these rules I found that monit 5.0.3 does not
support the phrase:
... then exec "/sbin/reboot"
But this phrase is supported by monit 5.1.1.
I patched the Makefile to upgrade to 5.1.1, rebuilt and reflashed,
and now my monit rule runs as intended. So I have tested this on a
grand total of one machine (Linksys WAG354G, TI AR7). Is this
enough to justify upgrading monit for everyone?
My changes to package/feeds/packages/monit/Makefile are below.
They were generated with svn diff.
Signed-off-by: Jon Hirst <openwrt@jonmail.co.uk>
git-svn-id: svn://svn.openwrt.org/openwrt/packages@23624 3c298f89-4303-0410-b956-a3cf2f4a3e73