Page 2 of 2

Re: getting problem with eximailqueue

Posted: Sun Feb 01, 2015 11:27 pm
by Box293
rlinux57 wrote:When ever i run this command manually or define command, the output does'nt show the number of messages :
/usr/lib64/nagios/plugins/check_nrpe -H IP ADDRESS -c check_eximailqueue

[Output]
Mailqueue WARNING - messages on queue


But when i run on host :
/usr/lib64/nagios/plugins/check_eximailqueue -w 25 -c 29
Mailqueue OK - 0 messages on queue
What sounds like is going on here is when the script is running under NRPE, there are possible some environment variables not being loaded or the command needs an argument to allow it to run in a batch mode.

First thing I would do is:
login to the nrpe host

Code: Select all

su nagios
/usr/lib64/nagios/plugins/check_eximailqueue -w 25 -c 29
What output does this produce?

This is the command that is getting the data:

Code: Select all

/usr/bin/sudo /usr/sbin/exim -bpc
As a test, add this to your nrpe.cfg

Code: Select all

command[my_test]=/usr/bin/sudo /usr/sbin/exim -bpc
Save nrpe.cfg and restart the xinetd service.

Then from your nagios host execute:

Code: Select all

/usr/lib64/nagios/plugins/check_nrpe -H IP ADDRESS -c my_test
Does this give you any output that helps?

Re: getting problem with eximailqueue

Posted: Mon Feb 02, 2015 1:11 pm
by tmcdonald
rlinux57, please keep us posted.

Re: getting problem with eximailqueue

Posted: Sat Oct 03, 2015 7:52 am
by rlinux57
Kindly mark this thread as completed.