Hi,

I want to execute the check_mk_agent using a specific user and sudo.
The cmd line to be executed looks this way: "ssh -q -l myuser -t <IP> sudo /usr/bin/check_mk_agent"

It works when using it within shell of the omd site (so sudo configuration works). check_mk --automation try-inventory -- foobar also returns no error or status code other than 0.
When using it inside Wato "Full Scan" on host services I end up with error:

Error running check_mk --automation try-inventory -- foobar (exit code 2):
Programm 'ssh -q -l myuser -t x.x.x.x sudo /usr/bin/check_mk_agent' exited with code 1

Any ideas to this problem?

Not using sudo like "ssh -q -l myuser -t <IP> /usr/bin/check_mk_agent" works btw. too.

Thanks in advance,
--tf
_______________________________________________
omd-users mailing list
[email protected]
http://lists.mathias-kettner.de/mailman/listinfo/omd-users

Reply via email to