getting problem with eximailqueue

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: getting problem with eximailqueue

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: getting problem with eximailqueue

Post by tmcdonald »

rlinux57, please keep us posted.
Former Nagios employee
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: getting problem with eximailqueue

Post by rlinux57 »

Kindly mark this thread as completed.
Locked