I have created the check mail queue in the Icinga Director with the existing mailq command. In addition, I have activated the parameter for sudo. The command is also executed correctly on the server to be checked. Under Inspect I see
So far so good. But the problem is: The check is of course negative, because the sudo fails. I have already tried all possible sudo rules but can’t find the right one. Currently I have:
thanks for your reply. I thought there is a solution to use the -s switch, but this solution is much more easier and for sure it is working like expected.