alfssobsd/zabbix-redis

nc command at redis-status.sh hangs forever at Debian 7.4

Closed this issue · 2 comments

Script redis-status.sh hangs forever after showing "# Keyspace" if to run discovery: "/usr/local/etc/redis-status.sh localhost list_key_space_db",
I just updated:
(echo -en "INFO\r\n"; sleep 1;) | nc -w1 $SERV $PORT > $CACHE || exit 1
with -w1 param, which interrupts this commans. Tested on Debian 7.4

please create pull request

  • I am novice to github. I have faced 'https://cryomi@github.com/alfss/zabbix-redis.git: git-receive-pack not permitted' issue while pushing new branch to your repo from Netbeans.
  • Short googling did not resolve my issue, so i have no spare time to finish with pull request. You may do it yourself, or I will do it at nearest future.