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.
Send MRTG messages somewhere besides root mailbox?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Send MRTG messages somewhere besides root mailbox?
Here the easiest thing to do, append the following to the line in /etc/cron.d/mrtg
this will just keep the output from the last run in /tmp/mrtg.log
Code: Select all
> /tmp/mrtg.log 2>&1