m4ce / sensu-plugins-rancher-service

A sensu plugin to monitor the health state of services running in Rancher
MIT License
3 stars 2 forks source link

can't run in sensu #1

Open Negashev opened 8 years ago

Negashev commented 8 years ago

I run in rancher, container with

https://github.com/sstarcher/docker-sensu

and install m4ce/rancher-service

afte run get error with block in <class:CLI> in sensu

root@9e9aea7e41d2:/# check-rancher-service.rb

Check failed to run: undefined method each' for nil:NilClass, ["/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-rancher-service-0.0.20/bin/check-rancher-service.rb:106:inblock in run'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-rancher-service-0.0.20/bin/check-rancher-service.rb:96:in each'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-rancher-service-0.0.20/bin/check-rancher-service.rb:96:inrun'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.2.0/lib/sensu-plugin/cli.rb:56:in `block in class:CLI'"]

Negashev commented 8 years ago

service['containers'] can be empty

m4ce commented 8 years ago

Hi,

so, you have a service set up with no instances?

M

Negashev commented 8 years ago

it's really strange, but I've used from the catalog kibana4 screenshot 1

m4ce commented 8 years ago

it could be that it fails over another service. Do you have any services (in any stack) that has no instances set up?