Hey, I hate to dig up old topics but I'm really hoping to get this one working. When I run /usr/local/nagios/libexec/check_mailq -w 250 -c 500 as root, it comes back correctly. When I run it as nagios, I get
even though I've modified the utils.pm file to reflect the mailq in /opt/zimbra. Does something need to be restarted after that?
Program mode requires special privileges, e.g., root or TrustedUser.
CRITICAL: Error code 78 returned from /usr/bin/mailq
I've appended the sudoers files with:
And ls -la /usr/bin/sudo shows:
nagios ALL=(zimbra) NOPASSWD: /usr/local/nagios/libexec/check_mailq
Just like yours, jummo
---s--x--x 2 root root 140744 Mar 24 18:55 /usr/bin/sudo
What am I missing?