If you receive this error then your plugin needs patching:
ERROR: is not executable by (uid 0:gid(0 10 6 4 3 2 1 0))
The patch:
--- /usr/lib/nagios/plugins/check_mailq 2007-04-20 23:14:48.000000000 +0300 +++ check_mailq 2007-06-04 11:53:06.000000000 +0300 @@ -40,7 +40,7 @@ sub print_usage (); sub process_arguments (); -$ENV{'PATH'}=''; +$ENV{'PATH'}='/bin:/usr/bin'; $ENV{'BASH_ENV'}=''; $ENV{'ENV'}=''; $PROGNAME = "check_mailq"; @@ -49,6 +49,9 @@ $msg_p = 0 ; $state = $ERRORS{'UNKNOWN'}; +# +$utils::PATH_TO_QMAIL_QSTAT = "/var/qmail/bin/qmail-qstat"; + Getopt::Long::Configure('bundling'); $status = process_arguments(); if ($status){ @@ -63,7 +66,6 @@ alarm($opt_t); # switch based on MTA - if ($mailq eq "sendmail") { ## open mailq