CMK version: 2.2.0p21
OS version: Debian 12
Hello,
Since checkmk 2.2.0p21 plugin mk_redis
for hosts with redis instances that require a password does not work anymore.
It seems to be related to the newly introduced REDISCLI_AUTH
env variable used.
When debugging by executing the plugin code, I get the following output
root@myhost:/usr/lib/check_mk_agent/plugins/3600# export MK_CONFDIR=/etc/check_mk
root@myhost:/usr/lib/check_mk_agent/plugins/3600# ./mk_redis
<<<redis_info:sep(58)>>>
[[[Local|127.0.0.1|6379]]]
REDISCLI_AUTH=mypasswordhere: No such file or directory
related config file :
root@myhost:~# cat /etc/check_mk/mk_redis.cfg
#!/bin/sh
REDIS_INSTANCES=(Local)
REDIS_HOST_Local="127.0.0.1"
REDIS_PORT_Local="6379"
REDIS_PASSWORD_Local='mypasswordhere'
replacing
waitmax 3 ${REDIS_CLI_COMMAND} "${REDIS_ARGS[@]}" || true
by
export REDISCLI_AUTH=${!PASSWORD}
waitmax 3 redis-cli "${REDIS_ARGS[@]}" || true
in the mk_redis
plugin code works…
Anyone observe the same behavior since 2.2.0p21 ?
Thanks