Page 4 of 4
Re: mail queue error
Posted: Tue Feb 16, 2016 10:32 am
by RubenLatorre
hsmith wrote:That looks all right.
jolson wrote:You may have to restart xinetd to get the new configuration to apply.
After you did this step, did the problem get resolved?
No, now it looks NRPE: UNABLE TO READ OUTPUT.
But it's rare because if i execute on the console the nrpe command manually "/usr/local/nagios/libexec/check_nrpe -H 192.168.9.110" the conection seems good, but if I execute
/usr/local/nagios/libexec/check_nrpe -H 192.168.9.110 -c check_mailq. The console shows on the screen the same than in the web interface.
Do you know why that happens? Because I have defined the command on nagios host and on the 192.168.9.110 host, on /usr/local/nagios/libexec
Re: mail queue error
Posted: Tue Feb 16, 2016 12:15 pm
by rkennedy
On the client machine, what are the permissions for /usr/local/nagios/libexec/check_mailq set to?
Code: Select all
ls -l /usr/local/nagios/libexec/check_mailq
Re: mail queue error
Posted: Tue Feb 16, 2016 12:26 pm
by RubenLatorre
rkennedy wrote:On the client machine, what are the permissions for /usr/local/nagios/libexec/check_mailq set to?
Code: Select all
ls -l /usr/local/nagios/libexec/check_mailq
Re: mail queue error
Posted: Tue Feb 16, 2016 3:15 pm
by rkennedy
Can you try changing the permissions to apache:nagios? This seems to be permission related.
NRPE will run as the nagios user, and because the script check_mailq is root:root on the remote server, it won't be able to execute it.
Re: mail queue error
Posted: Thu Feb 18, 2016 10:40 am
by RubenLatorre
rkennedy wrote:Can you try changing the permissions to apache:nagios? This seems to be permission related.
NRPE will run as the nagios user, and because the script check_mailq is root:root on the remote server, it won't be able to execute it.
I don't have any apache group on the remote host, the nagios user is on de administrator group.
I have changed root:root to nagios:administrators and I have restarted de services, and it looks the same warning: "NRPE: Unable to read output".
Re: mail queue error
Posted: Thu Feb 18, 2016 12:12 pm
by rkennedy
What is the full output of the folder? -
Re: mail queue error
Posted: Mon Feb 22, 2016 12:10 pm
by RubenLatorre
rkennedy wrote:What is the full output of the folder? -
The longer result is about nagios host, and the shorter is about remote host
Re: mail queue error
Posted: Mon Feb 22, 2016 1:48 pm
by rkennedy
I believe the remote host has the wrong permissions for check_mailq. Try running -