sensu-plugins / sensu-plugins-chef

This plugin provides native instrumentation for monitoring Chef, including service health checks (via chef-server-ctl) and chef node status, and a Sensu handler for removing stale Sensu clients.

Home Page:http://sensu-plugins.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CheckChefServer UNKNOWN: check-chef-server must be run with elevated privileges so that chef-server-ctl can be executed

templ3ofD00m opened this issue · comments

Docs mention this explicitly but how is the check supposed to be configured for check-chef-server.rb. As far as I can tell my sensu user is in the sudo group and should be able to run this command without an issue. Is there something else that needs to be appended to the command field in the check?

sensuctl version 6.7.4+ee
sensu-agent version 6.7.4+ee
"sensu_backend":"6.7.4"

type: CheckConfig api_version: core/v2 metadata: created_by: admin labels: sensu.io/managed_by: sensuctl name: chef_status namespace: default spec: check_hooks: null command: check-chef-server.rb