You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.
We recently had a sensu-server die for a few days unknowingly. The last log entry before dieing was this:
{"timestamp":"2016-03-04T09:45:18.687212-0800","level":"warn","message":"reconnecting to redis"}
/opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-0.20.1/lib/sensu/server/process.rb:672:in `>=': comparison of Fixnum with String failed (ArgumentError)
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-0.20.1/lib/sensu/server/process.rb:672:in `block (5 levels) in determine_stale_check_results'
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/em-redis-unified-1.0.0/lib/em-redis/redis_protocol.rb:489:in `call'
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/em-redis-unified-1.0.0/lib/em-redis/redis_protocol.rb:489:in `dispatch_response'
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/em-redis-unified-1.0.0/lib/em-redis/redis_protocol.rb:436:in `process_cmd'
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/em-redis-unified-1.0.0/lib/em-redis/redis_protocol.rb:408:in `receive_data'
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-0.20.1/lib/sensu/server/process.rb:23:in `run'
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-0.20.1/bin/sensu-server:10:in `<top (required)>'
from /opt/sensu/bin/sensu-server:23:in `load'
from /opt/sensu/bin/sensu-server:23:in `<main>'
Looking at the code, the line it's complaining about is this: if time_since_last_execution >= check[:ttl]
After a bunch of digging I found that someone had implemented a script to emit check results to port 3030 on a client, and the script was quoting the ttl value when it should have been unquoted.
I'm running v0.20.1 of sensu, but looking at the most recent code on github it appears this would happen in the most recent version.
Sensu server OR client should validate this value is actually an integer and log if not vs killing the sensu server.
The text was updated successfully, but these errors were encountered:
skurylo
pushed a commit
to skurylo/sensu
that referenced
this issue
Mar 4, 2016
We recently had a sensu-server die for a few days unknowingly. The last log entry before dieing was this:
Looking at the code, the line it's complaining about is this:
if time_since_last_execution >= check[:ttl]
After a bunch of digging I found that someone had implemented a script to emit check results to port 3030 on a client, and the script was quoting the ttl value when it should have been unquoted.
I'm running v0.20.1 of sensu, but looking at the most recent code on github it appears this would happen in the most recent version.
Sensu server OR client should validate this value is actually an integer and log if not vs killing the sensu server.
The text was updated successfully, but these errors were encountered: