Replies: 1 comment 4 replies
-
I don't know anything about that script. Why don't you open an issue in that repo so the developer can help you? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using script (https://github.com/wanelo/nagios-checks/blob/master/check_sidekiq_queue) to monitor sidekiq queue on redis server. On nagios side status returns "SIDEKIQ OK : redis ERR on default" whereas it is supposed to be number instead of ERR. When I check that script directly on the server see it is not able to identify ERR type:
ubuntu@redis:/usr/local/nagios/libexec$ sudo ./check_sidekiq_queue
./check_sidekiq_queue: line 141: [: ERR: integer expression expected
./check_sidekiq_queue: line 143: [: ERR: integer expression expected
SIDEKIQ OK : redis ERR on default|sidekiq_queue_default=ERR;50;100
ubuntu@redis:/usr/local/nagios/libexec$ sudo ./check_sidekiq_queue -q all
./check_sidekiq_queue: line 127: [: ERR: integer expression expected
./check_sidekiq_queue: line 127: [: ERR: integer expression expected
./check_sidekiq_queue: line 127: [: ERR: integer expression expected
SIDEKIQ OK : redis -1 on none|sidekiq_queue_none=-1;50;100
ubuntu@redis:/usr/local/nagios/libexec$ sudo ./check_sidekiq_queue -q none
./check_sidekiq_queue: line 141: [: ERR: integer expression expected
./check_sidekiq_queue: line 143: [: ERR: integer expression expected
SIDEKIQ OK : redis ERR on none|sidekiq_queue_none=ERR;50;100
Directly checking with redis-cli command seems it returns correct value:
ubuntu@redis:~$ redis-cli -p 6379 -a XXXXXXXXXXXX -n 12 llen default
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
(integer) 0
Did you face same/similar issue before or any idea ?
Beta Was this translation helpful? Give feedback.
All reactions