monit-general
[Top][All Lists]
Advanced

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

counters?


From: Mike
Subject: counters?
Date: Tue, 27 Jun 2006 14:38:42 -0500
User-agent: Mutt/1.4.2.1i

I've been reading the manual, not finished yet, and for those obscure
situations where I need to check the value of something is there a way
to execute a script, accept the script's return value (either stdout
or the return from (system()/255), then to use this value in a test
within monit?

Mike

possible example:

check counter widgets from "/opt/local/bin/getwidgetcount.sh"
  if widgets < 0 then alert
  if widgets > 1000 then alert




reply via email to

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