Worth noting that all other commands are successful as well.. here are the configs you asked for: Shell Script: #!/bin/bash whoami RESPONSE=$(docker --version) echo $RESPONSE if [ ! "$RESPONSE" ]; then echo "response is null" exit 2 else echo "$RESPONSE" exit 0 fi nrpe....
Here is the shell script: #!/bin/bash whoami RESPONSE=$(docker --version) echo $RESPONSE if [ ! "$RESPONSE" ]; then echo "response is null" exit 2 else echo "$RESPONSE" exit 0 fi Here is the nrpe.cfg: #####################################################################...
Facing an issue where Nagios is unable to run docker --version command through nrpe however I'm able to run the command as user nrpe on the remote host. running as nrpe on remote host: [root@remote ~]# su nrpe bash-4.2$ sh /etc/nagios/check_container.sh test nrpe Docker version 18.06.0-ce, build 0ff...