Monitoring Redis with Monit


Somebody had do it?

In monit documents I found this:

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

And googling I found this

check process redis-server with pidfile /var/run/redis/
   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.