Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis 2.6 hitrate data is missing #16

Open
hochmann opened this issue Feb 27, 2013 · 4 comments
Open

Redis 2.6 hitrate data is missing #16

hochmann opened this issue Feb 27, 2013 · 4 comments

Comments

@hochmann
Copy link

Hi,
I Just upgraded my Redis Env's to 2.6 (from 2.2).
somehow i encounter issues regarding monitoring Redis Hitrate, getting the following Error:

CRITICAL: hitrate data is missing - REDIS

Any Idea what might be the cause?

@willixix
Copy link
Owner

Please run it manually with -v for debugging output to see what is going on

@hochmann
Copy link
Author

Attached is the Full stack Trace, please look at the Difference now (redis 2.6) when executing INFO, the stracture of output is different, can it be the cause?

Thank you for your assistant, it's much appreciated.

root@nagios:~# /usr/lib/nagios/plugins/check_redis.pl -H 10.180.135.179 -p 6382 -R 98,99 -v
Processing hitrate thresholds: 98,99
check_redis.pl plugin version 0.72
Alarm at 15
connecting to 10.180.135.179:6382
[SEND] PING $VAR1 = [];
[SEND RAW] *1
$4
PING
[RECV RAW] '+PONG' at /usr/share/perl5/Redis.pm line 550, chunk 1.
[RECV] PING $VAR1 = 'PONG';
[SEND] INFO $VAR1 = [];
[SEND RAW] *1
$4
INFO
[RECV RAW] '$1567' at /usr/share/perl5/Redis.pm line 550, chunk 2.
[RECV RAW] '# Server
redis_version:2.6.10
redis_git_sha1:00000000
redis_git_dirty:0
redis_mode:standalone
os:Linux 3.2.0-24-virtual x86_64
arch_bits:64
multiplexing_api:epoll
gcc_version:4.6.3
process_id:3226
run_id:c6473e00559ed2502041472736cb678932f0aef7
tcp_port:6382
uptime_in_seconds:81382
uptime_in_days:0
lru_clock:1986176

Clients

connected_clients:321
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0

Memory

used_memory:1737470064
used_memory_human:1.62G
used_memory_rss:1771081728
used_memory_peak:1738436496
used_memory_peak_human:1.62G
used_memory_lua:31744
mem_fragmentation_ratio:1.02
mem_allocator:jemalloc-3.2.0

Persistence

loading:0
rdb_changes_since_last_save:1860
rdb_bgsave_in_progress:0
rdb_last_save_time:1362038931
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:23
rdb_current_bgsave_time_sec:-1
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok

Stats

total_connections_received:4062
total_commands_processed:3731689
instantaneous_ops_per_sec:32
rejected_connections:0
expired_keys:251
evicted_keys:0
keyspace_hits:778322
keyspace_misses:1615326
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:588420

Replication

role:master
connected_slaves:1
slave0:10.180.161.54,6382,online

CPU

used_cpu_sys:1037.82
used_cpu_user:241.71
used_cpu_sys_children:853.83
used_cpu_user_children:4570.99

Keyspace

db0:keys=3359659,expires=1470308
' at /usr/share/perl5/Redis.pm line 573, chunk 2.
[RECV] INFO $VAR1 = '# Server
redis_version:2.6.10
redis_git_sha1:00000000
redis_git_dirty:0
redis_mode:standalone
os:Linux 3.2.0-24-virtual x86_64
arch_bits:64
multiplexing_api:epoll
gcc_version:4.6.3
process_id:3226
run_id:c6473e00559ed2502041472736cb678932f0aef7
tcp_port:6382
uptime_in_seconds:81382
uptime_in_days:0
lru_clock:1986176

Clients

connected_clients:321
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0

Memory

used_memory:1737470064
used_memory_human:1.62G
used_memory_rss:1771081728
used_memory_peak:1738436496
used_memory_peak_human:1.62G
used_memory_lua:31744
mem_fragmentation_ratio:1.02
mem_allocator:jemalloc-3.2.0

Persistence

loading:0
rdb_changes_since_last_save:1860
rdb_bgsave_in_progress:0
rdb_last_save_time:1362038931
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:23
rdb_current_bgsave_time_sec:-1
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok

Stats

total_connections_received:4062
total_commands_processed:3731689
instantaneous_ops_per_sec:32
rejected_connections:0
expired_keys:251
evicted_keys:0
keyspace_hits:778322
keyspace_misses:1615326
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:588420

Replication

role:master
connected_slaves:1
slave0:10.180.161.54,6382,online

CPU

used_cpu_sys:1037.82
used_cpu_user:241.71
used_cpu_sys_children:853.83
used_cpu_user_children:4570.99

Keyspace

db0:keys=3359659,expires=1470308
';
[SEND] QUIT $VAR1 = [];
[SEND RAW] *1
$4
QUIT
Stats Line: 32 = rejected_connections
Stats Line: jemalloc-3.2.0 = # Persistence
Stats Line: 3731689 = instantaneous_ops_per_sec
Stats Line: 6382 = uptime_in_seconds
Stats Line: loading = 0
Stats Line: # Stats = total_connections_received
Stats Line: rdb_last_bgsave_time_sec = 23
Stats Line: 4.6.3 = process_id
Stats Line: connected_clients = 321
Stats Line: 31744 = mem_fragmentation_ratio
Stats Line: 1771081728 = used_memory_peak
Stats Line: c6473e00559ed2502041472736cb678932f0aef7 = tcp_port
Stats Line: 241.71 = used_cpu_sys_children
Stats Line: rdb_last_bgsave_status = ok
Stats Line: 853.83 = used_cpu_user_children
Stats Line: client_biggest_input_buf = 0
Stats Line: 2.6.10 = redis_git_sha1
Stats Line: 1986176 = # Clients
Stats Line: aof_rewrite_scheduled = 0
Stats Line: 1738436496 = used_memory_peak_human
Stats Line: rdb_last_save_time = 1362038931
Stats Line: standalone = os
Stats Line: role = master
Stats Line: 778322 = keyspace_misses
Stats Line: rdb_changes_since_last_save = 1860
Stats Line: 3226 = run_id
Stats Line: db0 = keys=3359659,expires=1470308

  • stats data added: db0_keys = 3359659
  • stats data added: db0_expires = 1470308
    Stats Line: rdb_bgsave_in_progress = 0
    Stats Line: 00000000 = redis_git_dirty
    Stats Line: # Memory = used_memory
    Stats Line: 1615326 = pubsub_channels
    Stats Line: slave0 = 10.180.161.54,6382,online
    Stats Line: aof_last_rewrite_time_sec = -1
    Stats Line: 1.62G = used_memory_lua
    Stats Line: aof_current_rewrite_time_sec = -1
    Stats Line: 0 = latest_fork_usec
    Stats Line: # Server = redis_version
    Stats Line: 1037.82 = used_cpu_user
    Stats Line: 251 = evicted_keys
    Stats Line: rdb_current_bgsave_time_sec = -1
    Stats Line: epoll = gcc_version
    Stats Line: client_longest_output_list = 0
    Stats Line: 1737470064 = used_memory_human
    Stats Line: aof_enabled = 0
    Stats Line: 64 = multiplexing_api
    Stats Line: blocked_clients = 0
    Stats Line: # CPU = used_cpu_sys
    Stats Line: Linux 3.2.0-24-virtual x86_64 = arch_bits
    Stats Line: 1.02 = mem_allocator
    Stats Line: 4570.99 = # Keyspace
    Stats Line: aof_last_bgrewrite_status = ok
    Stats Line: 588420 = # Replication
    Stats Line: aof_rewrite_in_progress = 0
    Stats Line: 4062 = total_commands_processed
    Stats Line: 81382 = uptime_in_days
    Stats Line: connected_slaves = 1
    Calculated Data: total_keys=3359659
    Calculated Data: total_expires=1470308
    CRITICAL: hitrate data is missing - REDIS on 10.180.135.179:6382 has 1 databases (db0) with 3359659 keys

@willixix
Copy link
Owner

You need to upgrade Perl Redis library, its not separating all lines and as a result plugin is not parsing data appropriately

@innovia
Copy link

innovia commented May 27, 2013

for me what worked was:
cpan
install Redis
exit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants