[Top][All Lists]

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

Re: New feature

From: Eric Pailleau
Subject: Re: New feature
Date: Thu, 09 Sep 2010 17:23:55 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100624 Mandriva/3.0.5-0.1mdv2009.1 (2009.1) Thunderbird/3.0.5

Create a simple script, after having installed 'links' (or any other terminal 
web browse)

# my own command line monit wrapper (tune it to return something else is needed 
(links -dump$1 | grep Status | grep running) && exit 0 
|| exit 1


Suppose the script is call monitstatus, then

$> monitstatus spread; echo $?


Le 09/09/2010 16:54, Andrew Holt a écrit :

I am considering adding a new feature to monit, to whit:

monit status<service>


monit status spread ; echo $?

Would return

running   0

Which would return a string, and, set an appropriate error code on exit ( e.g. 
0 - OK, 1 - unknown etc)

Unless there is a better way ?


Andrew Holt

Email: address@hidden

De Omnibus Dubitandum

To unsubscribe:

Salutations - Best regards - mit freundlichen Grüssen

----------------- address@hidden ------------------------------------
fr - Merci d'utiliser cette addresse pour le support ou question technique
en - Please use this address for any support or technical question
----------------- --------------------------------
fr - Privilégier la gestion de ticket d'incident  (Clients NUMLOG)
en - Prefere our trouble ticket application   (NUMLOG's customers)

reply via email to

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