Monitoring Redis with Monit


#1

Somebody had do it?

In monit documents I found this:

check host redis.host with address 192.168.0.23
      if failed port 6379 protocol redis then alert

And googling I found this

check process redis-server with pidfile /var/run/redis/redis-server.pid
   group redis
   start program = "/usr/sbin/service redis-server start"
   stop program = "/usr/sbin/service redis-server stop"
   if 2 restarts within 3 cycles then timeout
   if totalmem > 100 Mb then alert

Both works fine but I need to know the value to totalmem becvause 100 Mb is too low.


#2