Re: getting problem with eximailqueue
Posted: Sun Feb 01, 2015 11:27 pm
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.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
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 29This is the command that is getting the data:
Code: Select all
/usr/bin/sudo /usr/sbin/exim -bpcCode: Select all
command[my_test]=/usr/bin/sudo /usr/sbin/exim -bpcThen from your nagios host execute:
Code: Select all
/usr/lib64/nagios/plugins/check_nrpe -H IP ADDRESS -c my_test