You are right, I forgot them in my previous post.
Adding them doesn't change the output though
running the same command with sudo -u nagios give me the error message:
I don't understand why. The nagios user is the default user for icinga2 when installed on Ubuntu. I also added the user to the icingaweb2 group.