Article View: fj.net.ip
Article #90Re: MRTG$B$N%(%i!<;~%a!<%kAwIU@h(B
From: Takuro Hagiwara
Date: Thu, 01 Feb 2001 03:21
Date: Thu, 01 Feb 2001 03:21
40 lines
1910 bytes
1910 bytes
$B855-;v$NEj9F<T$G$9!#(B
$B<!$N$h$&$J%9%/%j%W%H$r:n@.$7!"$3$N%9%/%j%W%H$r(Bcrontab$B$G<B9T$9$k$3$H$G(B
MRTG$B$G%(%i!<$,H/@8$7$?:]$KG$0U$N%"%I%l%9$K%a!<%k$9$k$3$H$r$G$-$k$h$&$K(B
$B$7$^$7$?!#(B
--------------------------------------
#!/bin/sh
TEMP=/tmp/mrtg.tmp
TITLE=MRTG_ERROR
ADDR=****@****.****.jp
# delete temp file
#
if [ -s $TEMP ] ; then
rm $TEMP
fi
/usr/local/mrtg/mrtg /usr/local/mrtg/mrtg.cfg > $TEMP 2>&1
# mail MRTG error
#
if [ -s $TEMP ] ; then
/usr/bin/mailx -s $TITLE $ADDR < $TEMP
fi
# delete temp file
#
rm $TEMP
$BIpB"9)6HBg3X(B $B>pJs%a%G%#%"%;%s%?(B
VineLinux2.1$B!?Gk86!!BsO:(B
http://www.yc.musashi-tech.ac.jp/~takuro
Technical Details
Message-ID:
<95akn0$jbm$1@sol5c.yc.musashi-tech.ac.jp>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!newsfeed.mesh.ad.jp!newsfeed.media.kyoto-u.ac.jp!onodera-news!onion.ish.org!honnetnews!fiasapnews!fiaskry!topic.ad.jp!news-sv.sinet!netsun4!news2.yc.musashi-tech.ac.jp!takuroReferences:
<93tg80$n0u$1@sol5c.yc.musashi-tech.ac.jp>Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS X-Google-Thread: 10636f,cb60ca4bb7204238 X-Google-Attributes: gid10636f,public X-Google-ArrivalTime: 2001-01-31 19:25:07 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!newsfeed.mesh.ad.jp!newsfeed.media.kyoto-u.ac.jp!onodera-news!onion.ish.org!honnetnews!fiasapnews!fiaskry!topic.ad.jp!news-sv.sinet!netsun4!news2.yc.musashi-tech.ac.jp!takuro From: takuro@lark.yc.musashi-tech.ac.jp (Takuro Hagiwara) Newsgroups: fj.net.ip Subject: Re: MRTG$B$N%(%i!<;~%a!<%kAwIU@h(B Date: 1 Feb 2001 03:21:04 GMT Organization: Musashi Institute of Technology, Faculty of Environmental and Infomation Studies Lines: 40 Message-ID: <95akn0$jbm$1@sol5c.yc.musashi-tech.ac.jp> References: <93tg80$n0u$1@sol5c.yc.musashi-tech.ac.jp> NNTP-Posting-Host: ostrich.yc.musashi-tech.ac.jp X-Trace: sol5c.yc.musashi-tech.ac.jp 980997664 19830 133.78.111.23 (1 Feb 2001 03:21:04 GMT) X-Complaints-To: abuse@yc.musashi-tech.ac.jp NNTP-Posting-Date: 1 Feb 2001 03:21:04 GMT X-Newsreader: mnews [version 1.22PL1] 2000-02/15(Tue)