Random Project

problem

Hi
I have a strange problem, I can manually perform the script in CLI:t $ ./check_domain -d exemple.com it works great.

But when I let Nagios run the script i only get UNKNOWN “We do not support this domain (not integrated). Sorry” as result.

define command{
command_name check_domain
command_line $USER1$/check_domain -d $ARG1$
}

define service {
use generic-service
host_name exemple.com
service_description DNS-Expire date
check_command check_domain!exemple.com
}