String format UID/GID is not resolved

Issue #409 resolved
SzV created an issue
if failed uid redis      then unmonitor
if failed gid redis      then unmonitor

Causes: /etc/monit/conf-enabled/redis-server:26: syntax error 'redis'

# grep redis /etc/group
redis:x:116:

However "root" is OK.

v5.17.1 on Debian jessie

Comments (6)

  1. Tildeslash repo owner

    redis is reserved word (protocol name), when used for username, you just need to quote it as string:

    if failed uid "redis" then unmonitor
    if failed gid "redis" then unmonitor
    
  2. Log in to comment