I created a bash script on a server to monitor RAID health. The script is one of several bash scripts that can be monitored from the Icinga server. However, when I set up monitoring for this script in the exact same way as all the other scripts, the plugin output states:
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
Is there any reason why the Icinga server would fail to connect to this script when it’s able to connect to other scripts on the same server?