Mailqueue WARNING – query returned no output!

I added this on a server and it working fine on that server. when I tried to check this plugin from the nagios server(remote) i got the following error.

# /usr/local/nagios/libexec/check_nrpe -H IPaddress -c check_eximmailqueue
Mailqueue WARNING – query returned no output!

added in /etc/sudoers file and all. Could anyone please help me.