Page 1 of 1

Send MRTG messages somewhere besides root mailbox?

Posted: Thu Sep 06, 2018 9:00 am
by DFaught
In my organization, the team that supports Linux is a different team than the Nagios XI admins. The Linux team does not like all the MRTG messages going to the root mailbox, so they have actually shut off those messages by redirecting them to /dev/null. What is a reasonable and maintainable way to write these messages to a log somewhere else, so that the Nagios XI admins can still see them without the Linux team getting upset with us?

Thank you for any help you can provide.

Re: Send MRTG messages somewhere besides root mailbox?

Posted: Thu Sep 06, 2018 11:10 am
by scottwilkerson
Here the easiest thing to do, append the following to the line in /etc/cron.d/mrtg

Code: Select all

 > /tmp/mrtg.log 2>&1
this will just keep the output from the last run in /tmp/mrtg.log