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.
NRPE nagios sendmail mailbox
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NRPE nagios sendmail mailbox
out of curiosity, can you post the output of this from one of the machines with this condition
If it doesn't have something like this on the end you can add it to suppress the cron emails
Code: Select all
crontab -l -u nagiosCode: Select all
>/dev/null 2>&1Re: NRPE nagios sendmail mailbox
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
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
Great, let us know how it works out for you!
Re: NRPE nagios sendmail mailbox
Hi
Just checked this morning and the cron job is still sending emails to the nagios mailbox on the remote machines any other ideas?
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
Try:
Code: Select all
*/1 * * * * /usr/local/nrdp/clients/nrds/nrds.pl -H sip5 > /dev/null 2>&1Former 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.
"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.
Re: NRPE nagios sendmail mailbox
That is looking good thanks abrist
Re: NRPE nagios sendmail mailbox
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.
"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.