Search found 5 matches

by jjbursik
Wed Jul 25, 2018 7:32 pm
Forum: Open Source Nagios Projects
Topic: Unable to run Docker Commands
Replies: 9
Views: 3501

Re: Unable to run Docker Commands

I turned debug on and get this error:

Code: Select all

WARNING: my_system() seteuid(0): Operation not permitted
by jjbursik
Wed Jul 25, 2018 7:09 pm
Forum: Open Source Nagios Projects
Topic: Unable to run Docker Commands
Replies: 9
Views: 3501

Re: Unable to run Docker Commands

it doesn't seem like the echo was the issue as I get from Nagios:

Code: Select all

Status Information:   
nrpe
response is null
by jjbursik
Wed Jul 25, 2018 4:36 pm
Forum: Open Source Nagios Projects
Topic: Unable to run Docker Commands
Replies: 9
Views: 3501

Re: Unable to run Docker Commands

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....
by jjbursik
Wed Jul 25, 2018 4:33 pm
Forum: Open Source Nagios Projects
Topic: Unable to run Docker Commands
Replies: 9
Views: 3501

Re: Unable to run Docker Commands

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: #####################################################################...
by jjbursik
Wed Jul 25, 2018 10:25 am
Forum: Open Source Nagios Projects
Topic: Unable to run Docker Commands
Replies: 9
Views: 3501

Unable to run Docker Commands

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...