Skip to content

Commit

Permalink
Adding redis sw-info
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiotocalini committed May 24, 2018
1 parent 4d6ae93 commit 66ce512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custix/scripts/sw-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ refresh_cache() {
json_raw=`echo "${json_raw:-{}}" | jq ".apps.arango=${arango}" 2>/dev/null`
elif [[ ${app} == 'redis' ]]; then
version=`/etc/zabbix/scripts/agentd/zedisx/zedisx.sh -s info -a p=Server -a p=redis_version 2>/dev/null`
redis="{\"version\": \"${version}\"}"
redis="{\"version\": \"${version/$'\r'/}\"}"
json_raw=`echo "${json_raw:-{}}" | jq ".apps.redis=${redis}" 2>/dev/null`
fi
done
Expand Down

0 comments on commit 66ce512

Please sign in to comment.