[mrtg] Re: mailing reporting
Manny Ortega
aortega at univ-wea.com
Thu Jul 31 15:59:56 MEST 2003
Yes and No.......
I don't know what you mean by "email reports". MRTG monitors traffic load
and generates HTML pages, that is what it was designed for and it does it
very well.
Now, it does other things too, I have it monitoring temperature, hard drive
space, memory used, users connected etc.....
Do you mean "Can MRTG send me an email if the temperature (or whatever) that
I'm monitoring goes over a certain amount?" Yes it can.
There is a setting in the config file for threshhold checking:
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/config.html#threshold%20chec
king
I'll give you a real example from my config file:
-------------------------------------------------------------------
#### Pike User_Data current usage
Target[pike.user.data]:
.1.3.6.1.4.1.789.1.5.4.1.3.1&.1.3.6.1.4.1.789.1.5.4.1.4.1:XXXXXXX at XXX.XXX.XX
X.XXX
RouterUptime[pike.user.data]: XXXXXXX at XXX.XXX.XXX.XXX
MaxBytes[pike.user.data]: 175366844
Title[pike.user.data]: Pike User_Data current usage
PageTop[pike.user.data]: <H1>Pike User_Data current usage</H1>
<TABLE>
<TR><TD>System:</TD><TD>Pike User_Data current
usage</TD></TR>
<TR><TD>Maintainer:</TD><TD>Manny Ortega</TD></TR>
<TR><TD>Pike User_Data kbytes
total:</TD><TD>1.3.6.1.4.1.789.1.5.4.1.3.1</TD></TR>
<TR><TD>Pike User_Data kbytes
used:</TD><TD>1.3.6.1.4.1.789.1.5.4.1.4.1</TD></TR>
</TABLE>
ShortLegend[pike.user.data]: B
#WithPeak[pike.user.data]: dwmy
kMG[pike.user.data]: k,M,G,T,P
kilo[pike.user.data]: 1024
Unscaled[pike.user.data]: dwmy
YLegend[pike.user.data]: Disk Utilization
Legend1[pike.user.data]: Volume size
Legend2[pike.user.data]: Volume usage
Legend3[pike.user.data]:.
Legend4[pike.user.data]:.
LegendI[pike.user.data]: Total size:
LegendO[pike.user.data]: usage:
Options[pike.user.data]: gauge
ThreshMaxO[pike.user.data]: 131525133
ThreshProgO[pike.user.data]: usrdta.bat
#ThreshProgOKO[pike.user.data]: usrdtaok.bat
# 75% 131525133
----------------------------------------------------------------------------
------------------
The total size of my "Hard Drive" (as it were) is 175366844 bytes which is
about 167 Gb - this is what I get from the first OID, this will never
change.
The second OID is the usage; when this OID goes over 131525133, which os 75%
of the first oid, the program usrdta.bat will be run.
This means that when my "hard drive" usage goes over 75% this program will
be executed:
c:\blat\blat.exe c:\blat\usrdta.txt -s "UWA-MRTG - Space on pike User_Data
is over 75% usage" -t aortega at univ-wea.com
"Blat is a Public Domain Windows 95/NT console utility that sends the
contents of a file in an e-mail message using the SMTP protocol". from this
page: http://www.interlog.com/~tcharron/blat.html
I'm sure you've figured out by now that I use windows but as long as you can
send email from the command line, this will work anywhere.
Hope this helps.
-MannyO
-----Original Message-----
From: pvmc [mailto:pvmc at ifrance.com]
Sent: Thursday, July 31, 2003 2:59 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] mailing reporting
Hi,
Is there any module to 'plug' to mrtg to send email reports
Thank you for your responses.
Pierre
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list