check_eximmailqueue not working remotely


#1

Hello there,

I figured out how to setup nagios and nrpe to check almost everything… the only problem i have right now is that I wanted to monitor a remote exim exim mail queue. So, downloaded v. 1.3 from this plugin: exchange.nagios.org/directory/Pl … ue/details

Configured plugin check at Nagios server:

define service{ use generic-service host_name server_hostname service_description Mail_Queue check_command check_nrpe!check_eximmailqueue }

On the remote server that it should check, got this at nrpe.cnf:

command[check_eximmailqueue]=/usr/local/nagios/libexec/check_eximmailqueue -w 20 -c 100

SOME TESTS ***

Nagios server, executing the plugin manually:

[root@server.myserver.net:~]../../libexec/check_nrpe -H 91.121.222.47 -p 5666 -c check_eximmailqueue Mailqueue WARNING - query returned no output!

Exim server, manual check:

[root@exim.mailserver.net:~]/usr/local/nagios/libexec/check_eximmailqueue -w 20 -c 100 audit_log_user_command(): Connection refused Mailqueue OK - 7 messages on queue

The author saids this about the error “Mailqueue WARNING - query returned no output!”:

Exim group, as far as I can tell, is root, so did:

usermod -g root nagios

Am I missing something?

Thanks!