[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
monit ./control.c ./event.c ./event.h ./l.l ./m...
From: |
Martin Pala |
Subject: |
monit ./control.c ./event.c ./event.h ./l.l ./m... |
Date: |
Tue, 26 Aug 2003 21:42:41 -0400 |
CVSROOT: /cvsroot/monit
Module name: monit
Branch:
Changes by: Martin Pala <address@hidden> 03/08/26 21:42:41
Modified files:
. : control.c event.c event.h l.l monitor.c
monitor.h p.y validate.c
http : cervlet.c
Log message:
Basic support for monitor and unmonitor action added.
It is possible to enable or disable monitoring through console:
monit {monitor|unmonitor} {all|service_name}
or via "Enable monitoring"/"Disable monitoring" button in cervlet
(monitor/unmonitor actions are accessible directly via URL too).
It reflects dependency => in the case that request for monitoring
enabling
or disabling was made, all dependants are affected be this action.
Start, stop and restart actions are superset of monitor/unmonitor (the
same
behavior as in previous monit versions) - in the case that the service
is
started/stopped/restarted, monitoring is enabled automaticaly (including
started/stopped dependants).
=> it is possible to request monitoring stop/start without start/stop
methods
handling. It is usefull for example:
- in security tests (like checksum, uid, gid,permission, ...)
- to temporarily disable monitoring if you need to do some actions with
service
which will cause the service to be offline (for example upgrade). It is
now
possible to do these steps without monit reconfiguration, monit quit
(especialy usefull if monit is running from init) or forced service
stop.
TODO:
- handle unmonitor event in all tests, etc.
- fix checksum, gid, uid, permission tests to not timeout after error
occurence (this way it will behave more consistent - immediate timeout
can be caused by unmonitor action, for other cases modified timeout
statement should fit)
- documentation
I will finalize it tomorrow evening (i must go to bed now :)
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/control.c.diff?tr1=1.61&tr2=1.62&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/event.c.diff?tr1=1.22&tr2=1.23&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/event.h.diff?tr1=1.9&tr2=1.10&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/l.l.diff?tr1=1.52&tr2=1.53&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/monitor.c.diff?tr1=1.58&tr2=1.59&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/monitor.h.diff?tr1=1.87&tr2=1.88&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/p.y.diff?tr1=1.113&tr2=1.114&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/validate.c.diff?tr1=1.80&tr2=1.81&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/http/cervlet.c.diff?tr1=1.84&tr2=1.85&r1=text&r2=text
- monit ./control.c ./event.c ./event.h ./l.l ./m...,
Martin Pala <=