LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-30-2005, 06:04 AM   #1
sti2envy
Member
 
Registered: Sep 2004
Posts: 43

Rep: Reputation: 15
Stop MRTG Emails


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.
 
Old 10-01-2005, 03:08 PM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Re: Stop MRTG Emails

Quote:
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
 
Old 12-28-2005, 01:57 AM   #3
sulee
LQ Newbie
 
Registered: Jul 2005
Location: Bangkok
Distribution: Slackware
Posts: 20

Rep: Reputation: 0
wrong entry

Ups, got here by mistake. Sorry.

Last edited by sulee; 12-28-2005 at 01:59 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I stop services from restarting after I stop them? M$ISBS Linux - Software 3 10-27-2005 08:13 PM
convert html emails to plain text emails andredude Linux - General 6 03-20-2005 12:33 PM
How do I stop MRTG? dani81 Linux - Networking 4 09-03-2004 04:17 AM
rrd mrtg & mrtg-rrd.cgi ducati620 Linux - Newbie 0 06-03-2004 07:29 PM
can I use mrtg for this? ziggie216 Linux - Software 1 04-14-2004 01:34 PM


All times are GMT -5. The time now is 10:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration