Thank you! it was permissions issue, nrpe user could not execute "find" upon postfix spool directory so I added necessary privileges to /etc/sudoers on remote host and "sudo" prefix to command definition in nrpe.cfg and it started working :)
-- best regards, yuris Duncan Ferguson wrote: > On 16 Jul 2010, at 15:10, yuris wrote: > >> What's wrong with this plugin? If any configs are necessary or something >> I'll provide them. If anyone have any reasonable idea please share. >> > > Always test plugins by running them as nagios (not root) and outside the > directory the script is in > > $ libexec/check_postfixq.sh -w 30000 -c 50000 -p > > as this is how nagios runs them. > > Duncs > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > > > > > Global Headquarters: Unit 69 Suttons Business Park | Reading | Berkshire | > RG6 1AZ | UK > > UK: +44 (0) 845 057 7887 > USA: +1 866 879 9184 > Fax: +44 (0) 1189 074 071 > email: [email protected] > Skype: duncan_j_ferguson > Web: www.opsview.com > > This e-mail is confidential, intended only for the named recipient(s) above > and may contain information that is privileged and confidential. If you > receive this message in error, or are not the named recipient(s), please > notify the sender at the phone number above, do not copy this message, do not > disclose its contents to anyone, and delete this e-mail message from your > computer. Although we routinely screens for viruses, addressees should scan > this e-mail and any attachments for viruses. Opsera makes no representation > or warranty as to the absence of viruses in this e-mail or any attachments. > > ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
