Page 1 of 1

NRPE nagios sendmail mailbox

Posted: Fri Apr 19, 2013 12:26 pm
by 360crm
Evening all

I have configured some nrpe checks on a couple of our remote centos servers using the nrds configuration manager, this has been working grand and as expected.

However we have recently noticed that it has created a sendmail mailbox on the remote machines that just seems to grow and grow.

Firstly why does it need to save messages to the local machine? If it doesn't how can I turn this setting off?

Any help would be mostly appreciated, thanks in advance.

Re: NRPE nagios sendmail mailbox

Posted: Fri Apr 19, 2013 3:02 pm
by scottwilkerson
out of curiosity, can you post the output of this from one of the machines with this condition

Code: Select all

crontab -l -u nagios
If it doesn't have something like this on the end you can add it to suppress the cron emails

Code: Select all

>/dev/null 2>&1

Re: NRPE nagios sendmail mailbox

Posted: Mon Apr 22, 2013 10:12 am
by 360crm
Hi Scott

Thanks for the reply

I just have the following at the end: 2>&1

Message in entirety:

*/1 * * * * /usr/local/nrdp/clients/nrds/nrds.pl -H sip5 2>&1

Will change to your suggestion.

Thanks again

Re: NRPE nagios sendmail mailbox

Posted: Mon Apr 22, 2013 10:24 am
by slansing
Great, let us know how it works out for you!

Re: NRPE nagios sendmail mailbox

Posted: Tue Apr 23, 2013 8:17 am
by 360crm
Hi

Just checked this morning and the cron job is still sending emails to the nagios mailbox on the remote machines any other ideas?

Re: NRPE nagios sendmail mailbox

Posted: Tue Apr 23, 2013 1:44 pm
by abrist
Try:

Code: Select all

*/1 * * * * /usr/local/nrdp/clients/nrds/nrds.pl -H sip5 > /dev/null 2>&1

Re: NRPE nagios sendmail mailbox

Posted: Thu Apr 25, 2013 11:22 am
by 360crm
That is looking good thanks abrist

Re: NRPE nagios sendmail mailbox

Posted: Thu Apr 25, 2013 12:39 pm
by abrist
Great! Locking thread. Open a new one if you have new issues. Cheers.