Page 1 of 1

Check_Eximailqueue query returned no output!

Posted: Sun Sep 10, 2017 4:57 am
by DarwinLH
Moderator Edit: This thread has been split from another - https://support.nagios.com/forum/viewto ... =7&t=37286
In the future, please create a new thread and link to the old one instead of adding on.


Hello,

I am having the same problem, is there a solution for this?

# sudo -u nagios exim -bpc
exim: permission denied

# chage -l nagios
Last password change : Jan 23, 2017
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7

user on etc/passwd is:
nagios:x:1001:1002::/home/nagios:/bin/bash

How can I resolve? I am getting this in a number of servers.

Re: Check_Eximailqueue query returned no output!

Posted: Mon Sep 11, 2017 9:15 am
by DarwinLH
[SOLVED]
I finally found the problem. Still unable to execute exim -bpc but the check_eximmailqueue can.

To fix I Comment out:
Defaults requiretty
In /etc/sudoers

I hope this helps, it took me a while to figure out.

Re: Check_Eximailqueue query returned no output!

Posted: Mon Sep 11, 2017 10:39 am
by scottwilkerson
Thanks for coming back and reporting the solution to help others!