How can I check why my installation of sensu-plugins-cpu-checks is failing?
Best regards,
rforberger
Tell us about your setup, this should include OS, version of Sensu, version of Sensu components (redis, rabbitmq), plugin versions (if applicable), anything special about your setup such as an airgapped network or strict ACLs
OS: RedHat Enterprise Linux 7.7 amd64
running on Kubernetes 1.16.3
Sensu Go Backend Version: Container sensu/sensu-rhel:latest (5.18.1)
The first thing that stands out to me is that in your sensuctl --namespace sensu-poc asset list output the assets for the cpu-checks and the ruby-runtime have URLs for the apline versions.
Can you provide the output from 'sensuctl --namespace sensu-poc asset info sensu-plugins-cpu-checksandsensuctl --namespace sensu-poc asset info sensu-ruby-runtime`?
In the namespace sensu-poc I am using the alpine based sensu container sidecar.
In the namespace ca43-sensu where I am running the sensu-backend, I am using the sensu-rhel container based image.
Here are the command outputs:
It appears the assets are not being downloaded for some reason. Filters are commonly the case, but these seem okay. Have you tried manually downloading the assets from those URLs via a curl command? And have you checked the logs on the agent container?
The asset can be downloaded from our Artifactory using curl.
In the agent container logs I find nothing regarding the cpu check plugin.
But in the backend container logs I find the following positive message:
{"component":"rbac","level":"debug","msg":"request authorized by the binding cluster-admin","time":"2020-03-27T09:04:15Z","zz_request":{"apiGroup":"core","apiVersion":"v2","namespace":"sensu-poc","resource":"assets","resourceName":"sensu-plugins-cpu-checks","username":"admin","verb":"update"}}
{"component":"apid","duration":"1.461ms","level":"info","method":"PUT","msg":"request completed","path":"/api/core/v2/namespaces/sensu-poc/assets/sensu-plugins-cpu-checks","size":0,"status":201,"time":"2020-03-27T09:04:15Z"}
I also see the cpu check plugin in the sensuctl --namespace sensu-poc asset list command.
But my agent container still cannot find the check-cpu.rb script.
Hi Todd,
Thanks for your support, the issue is now fixed at our side.
The issue was with the paths specifications of the the runtime assets in the sensu check specification.
The paths did not match according to the installed plugins/assets as per command:
sensuctl asset list --namespace sensu-poc
After matching the paths, events are coming to the sensu backend.