Check_Eximailqueue query returned no output!

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.
Locked
DarwinLH
Posts: 2
Joined: Sun Sep 10, 2017 4:50 am

Check_Eximailqueue query returned no output!

Post 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.
DarwinLH
Posts: 2
Joined: Sun Sep 10, 2017 4:50 am

Re: Check_Eximailqueue query returned no output!

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check_Eximailqueue query returned no output!

Post by scottwilkerson »

Thanks for coming back and reporting the solution to help others!
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked