I am setting up new sensu-go cluster using GKE.
I have my basic cluster up and running. I have tried pagerduty and email handler to see it works and they are working. I wanted to try one of the checks to see if it runs automatically based on some interval and work with handler. I tried so far cpu and disk plugins.
Ref. github dot com slash sensu-plugins slash sensu-plugins-disk-checks and same way sensu-plugins-cpu-checks
But, for both, I get below errors and I am not able to fix it. I have googled it and none of the search results have helped me so far.
{“component”:“schedulerd”,“level”:“debug”,“msg”:“check is not subdued”,“name”:“check-disk”,“namespace”:“default”,“scheduler_type”:“interval”,“time”:“2020-09-23T01:26:16Z”}
{“check”:“check-disk”,“component”:“schedulerd”,“level”:“debug”,“msg”:“sending check request”,“time”:“2020-09-23T01:26:16Z”,“topic”:“sensu:check:default:linux”}
{“check”:“check-disk”,“component”:“schedulerd”,“level”:“debug”,“msg”:“sending check request”,“time”:“2020-09-23T01:26:16Z”,“topic”:“sensu:check:default:system”}
{“component”:“schedulerd”,“level”:“debug”,“msg”:“check is not subdued”,“name”:“check-cpu”,“namespace”:“default”,“scheduler_type”:“interval”,“time”:“2020-09-23T01:35:17Z”}
{“check”:“check-cpu”,“component”:“schedulerd”,“level”:“debug”,“msg”:“sending check request”,“time”:“2020-09-23T01:35:17Z”,“topic”:“sensu:check:default:system”}
{“check”:“check-cpu”,“component”:“schedulerd”,“level”:“debug”,“msg”:“sending check request”,“time”:“2020-09-23T01:35:17Z”,“topic”:“sensu:check:default:linux”}
Below is my cluster info: (i have sensu-backend and agent running on same container and i have 3 containers)
sensuctl entity list
ID Class OS Subscriptions Last Seen
───────────────── ─────── ─────── ──────────────────────── ───────────────────────────────
sensu-backend-0 agent linux entity:sensu-backend-0 2020-09-23 01:35:21 +0000 UTC
sensu-backend-1 agent linux entity:sensu-backend-1 2020-09-23 01:35:25 +0000 UTC
sensu-backend-2 agent linux entity:sensu-backend-2 2020-09-23 01:35:37 +0000 UTC
s asset list | awk ‘{print $1}’ | sort -u
──────────────────────────────────────
cpu-checks-plugins
disk-checks-plugins
email-handler
ncr-devops-platform/nagiosfoundation
pagerduty-handler
sensu-ruby-runtime
s handler list
Name Type Timeout Filters Mutator Execute Environment Variables Assets
─────────── ────── ───────── ────────────────────────── ───────── ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ────────────────────────────────────────────────── ───────────────────
email pipe 10 is_incident,not_silenced RUN: sensu-email-handler -f<> -t <> -s <> -u xxx -p xxx email-handler
pagerduty pipe 10 is_incident RUN: sensu-pagerduty-handler PAGERDUTY_TOKEN=xxx pagerduty-handler
rpm -qa | grep -i sensu
sensu-go-cli-6.0.0-3003.x86_64
sensu-go-backend-6.0.0-3003.x86_64
sensu-go-agent-6.0.0-3003.x86_64
My base container image is centos7.
uname -a
Linux sensu-backend-0 4.14.138+ #1 SMP Tue Sep 3 02:58:08 PDT 2019 x86_64 x86_64 x86_64 GNU/Linux
Please let me know if any more info is needed.
Thank you.
Prashant