Skip to content

Commit

Permalink
check_memcached.sh: new version of upstream (#16)
Browse files Browse the repository at this point in the history
Which has descriptions of the memcached metrics it alerts on.

 - #CCCP-1862-2

bdossantos/nagios-plugins#14
  • Loading branch information
martbhell authored and oscarkraemer committed Nov 10, 2017
1 parent c362187 commit 6c15f3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions files/nrpe/check_memcached.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ if [[ $? -ne 0 ]] || [[ -z $output ]]; then
exit 2
fi

# limit_maxbytes = Number of bytes this server is permitted to use for storage.
# bytes = Current number of bytes used by this server to store items.
# https://dev.mysql.com/doc/refman/5.7/en/ha-memcached-stats-general.html
limit_maxbytes=$(echo "$output" | grep 'limit_maxbytes' | awk '{ gsub(/\r/, ""); print $3 }')
bytes=$(echo "$output" | grep ' bytes ' | awk '{ gsub(/\r/, ""); print $3 }')
get_hits=$(echo "$output" | grep 'get_hits' | awk '{ gsub(/\r/, ""); print $3 }')
Expand Down

0 comments on commit 6c15f3c

Please sign in to comment.