Originally posted by sti2envy
Hi, I got MRTG working nicely but when I turn off my PC, mrtg is unable to poll to it and emails to root account to complain about it. I just want to disable the emailing. Thanks.
Either stop monitoring the system you are tunring off -or- redirect stdout and stderr to devnull by adding ">/dev/null 2>&1" to the end of the mrtg line called in your MRTG script. i.e.
mrtg yada yada mrtg.cfg .... >/dev/null 2>&1
NOTE: If you have all monitored hosts in one file (like all targets in one mrtg.cfg) then all error output is suppressed for every device. So if MRTG is having problems with any of the 7x24 hosts, you will never know. A better approach would be to list all monitored devices in separate .cfg files and redirect stdout/stderr only for the host/device you are turning off. Example:
mrtg .... host1.cfg
mrtg ... host2.cfg
mrtg ... host3.cfg >/dev/null 2>&1