I’m using Sensu’s Checkdisk to monitor every filesystem in servers but I get <CheckDisk WARNING: … Unable to read.> errors for many machines. I tried using “sudo” in “command” in a json file like
“command”: “sudo /opt/sensu/embedded/bin/check-disk-usage.rb -w :::disk.warning|92::: -c :::disk.critical|95::”
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. sudo: no tty present and no askpass program specified
I tried creating “sensu” in /etc/sudoers.d/ which didn’t work either.
sensu ALL=(ALL) NOPASSWD: /opt/sensu/embedded/bin/check*.rb *
sensu ALL=(ALL) NOPASSWD: /opt/sensu/embedded/bin/metrics*.rb *
Any other solution i can use?