NRPE nagios sendmail mailbox

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
360crm
Posts: 8
Joined: Wed Feb 20, 2013 2:36 pm

NRPE nagios sendmail mailbox

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

Re: NRPE nagios sendmail mailbox

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
360crm
Posts: 8
Joined: Wed Feb 20, 2013 2:36 pm

Re: NRPE nagios sendmail mailbox

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRPE nagios sendmail mailbox

Post by slansing »

Great, let us know how it works out for you!
360crm
Posts: 8
Joined: Wed Feb 20, 2013 2:36 pm

Re: NRPE nagios sendmail mailbox

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE nagios sendmail mailbox

Post by abrist »

Try:

Code: Select all

*/1 * * * * /usr/local/nrdp/clients/nrds/nrds.pl -H sip5 > /dev/null 2>&1
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
360crm
Posts: 8
Joined: Wed Feb 20, 2013 2:36 pm

Re: NRPE nagios sendmail mailbox

Post by 360crm »

That is looking good thanks abrist
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE nagios sendmail mailbox

Post by abrist »

Great! Locking thread. Open a new one if you have new issues. Cheers.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked