fuel-library/deployment/puppet/zabbix/templates/check_memcached.sh.erb
Stanislaw Bogatkin 74cfe3b94d Change way to check memcached
Current implementation of memcached and RabbitMQ monitoring in Zabbix
is wrong. It doesn't work if we trying to check stats not from separate
script. So, that script was created.

Change-Id: I2cc11c39c91f485164872c8c8b11ef9d61ce9ae0
Closes-Bug: 1394252
2015-03-18 12:48:21 +00:00

2 lines
158 B
Plaintext

#!/bin/bash
echo -e "stats\nquit" | nc <%= scope.lookupvar('zabbix::monitoring::memcached_mon::internal_address') %> 11211 | grep "STAT $1" | awk '{print $3}'