Add Exim queue checks
authorAlex Dehnert <adehnert@mit.edu>
Mon, 25 Apr 2011 07:47:33 +0000 (03:47 -0400)
committerAlex Dehnert <adehnert@mit.edu>
Mon, 25 Apr 2011 07:47:33 +0000 (03:47 -0400)
Unfortunately, Exim doesn't allow non-admins to see the queues,
which makes it hard to actually use this check.

conf.d/nrpe-commands.cfg
local.d/esp.cfg

index 7e54f04bf4039cf89b471c3a65fab2abbbe3ff97..2b9098ad46d7de9f6b5305c5e86c27b0390b7af4 100644 (file)
@@ -28,6 +28,11 @@ define command {
        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_total_procs
 }
 
+define command {
+       command_name    check_remote_mailq_exim
+       command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_mailq_exim
+}
+
 
 
 
index c98121cfda06f92d055e3640e22e095b5ec7d2ec..7d704e4420aae3acc570c3e23163893cc6e86c84 100644 (file)
@@ -109,3 +109,9 @@ define service {
         service_description    TOTAL-PROC
        check_command           check_remote_total_procs
 }
+
+;define service {
+;      use                     nrpe-esp-service
+;        service_description   EXIM-QUEUE
+;      check_command           check_remote_mailq_exim
+;}