MRTG cron job mail
Posted: Tue Feb 15, 2022 2:32 pm
We are currently receiving emails from the /etc/cron.d/mrtg cron entry (Debian 10 installation) every few minutes from each of our Nagios machines.
Sample headers:
And the body of the message is a listing mrtg errors, sometimes thousands of lines.
Would it be okay to redirect the output of that cron job to /dev/null, similar to the other Nagios cron jobs we have?
Sample headers:
Code: Select all
From: Cron Daemon <[email protected]>
Subject: Cron <root@host> LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok --user=nagios --group=nagios
Date: Tue, 15 Feb, 22 6:35:11PM
Message-ID: <E1nK2fP-0001lR-KH@host>Would it be okay to redirect the output of that cron job to /dev/null, similar to the other Nagios cron jobs we have?