monit-general
[Top][All Lists]
Advanced

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

Re: Request for a new "script" service type


From: Michel Marti
Subject: Re: Request for a new "script" service type
Date: Wed, 22 Dec 2004 12:28:17 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5

Martin Pala wrote:

Btw. as you noted you run monit on arm-based device - how is it working?
Its working fine (Im using the current cvs version) altough I still see bogus memory values for my java process(es) (e.g. Total memory usage (incl. children): 608.7% [385072kB])

Was some modification needed to run it?
I had to tweak the generated Makefile a bit:

--- Makefile.bkp        2004-12-22 11:05:59.000000000 +0100
+++ Makefile    2004-12-22 11:15:32.000000000 +0100
@@ -59,7 +59,7 @@
 PROG           = monit

 INCDIR         = -I. -I./device -I./http -I./process -I./protocols
-LIB            =  -lpthread -lcrypt -lresolv -lnsl  -L/usr/lib -lssl -lcrypto
+LIB = -lpthread -lcrypt -lresolv -lnsl -L/usr/arm-linux/lib -lssl -lcrypto -lfl
 DEFINES                = -DLINUX

 # ------------------------------------------------------------------- #
@@ -69,7 +69,7 @@
 YACC           = bison -y

 LINKFLAGS      =
-CFLAGS = -g -O2 -Wall -D _REENTRANT -D HAVE_CPU_WAIT -I/usr/include $(DEFINES) $(INCDIR) +CFLAGS = -g -O2 -Wall -D _REENTRANT -D HAVE_CPU_WAIT -I/usr/arm-linux/include $(DEFINES) $(INCDIR)
 LEXFLAGS       = -i
 YACCFLAGS      = -dt



2.) I was working on addition of 'system' service type. Monit allows to display system load (cpu and memory usage) already, but it is outside of 'check' statements currently (it is just informational). It should be added as regular service type i think, so it will be possible to define limits/action rules, use dependency relationship between services (which can allow for example to stop non-important services under high load and start them as the load decreases). This can add several other tests, such as total process count limit, system interrupts limit, etc. and bind it with any other service characteristic.
Great to hear. One of my next questions would have been something like "how can I monitor the total memory usage of my system".

OK, but I suggest that returning the event type and description should be optional.


This should be required i think.
Making this required doesn't allow you to e.g. use a binary or unmodified script directly (Just as an example (I know monit already implements ping): If returned event type is optional, one could directly use "ping -q -w 5 -c 1 my.server.com").

Michel




reply via email to

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