Send MRTG messages somewhere besides root mailbox?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
DFaught
Posts: 62
Joined: Tue Sep 26, 2017 12:50 pm

Send MRTG messages somewhere besides root mailbox?

Post 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.
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?

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked