The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Nagios & Exim: check_eximmailqueue not working remotely

Discussion in 'E-mail Discussions' started by sh4ka, Nov 23, 2009.

  1. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    442
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    cPanel Access Level:
    DataCenter Provider
    Hello there,

    I'm running RHEL 5.4 + latest cPanel 11.24 release + Nagios 3.2

    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: Nagios Exchange - check_eximailqueue

    Configured plugin check at Nagios server:

    Code:
    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:

    Code:
    command[check_eximmailqueue]=/usr/local/nagios/libexec/check_eximmailqueue -w 20 -c 100
    
    SOME TESTS ***

    Nagios server, executing the plugin manually:

    Code:
    [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:

    Code:
    [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:

    Code:
    usermod -g root nagios
    
    Am I missing something?

    Thanks!
     
Loading...

Share This Page