|
Re: lug-bg: MRTG
- Subject: Re: lug-bg: MRTG
- From: raptor@xxxxxxxxxx (raptor)
- Date: Fri, 14 Feb 2003 12:34:41 -0500
|Àêî ìîæå è àç äà ïîñòíà åäèí âúïðîñ.
|
|Êîå å ïî áúðçî çà èçïúëíåíèå: MRTG èëè RRD.
]- RRD ... takmo preminawam ot mrtg kam RRD... preporychwam go na wseki..i za da wi spestq cheteneto da wi kava kakwo trqbwa da naprawite...
0. instalirate rrdtool (urpmi rrdtool, apt-get rrdtool, emerge rrdtool...)
1. ostawqte si mrtg da si raboti
2. Izkopirwate si wsichki mrtgXXX.cfg failowe w nqkoiq druga direktoriq
3. Redaktirate wsichki izkopirani failowe kato :
- dobawqte "LogFormat: rrdtool"
- promenqte "WorkDir" da sochi drugade (tam ste se generirat saotwetno .rrd failowete)
4. Dublirate wsichki linii w crontab koito imate za mrtg... samo che tozi pyt s nowite config failowe (toest ostawqte nqkakaw opredelen period da rabotqt zaedno pure-mrtg i mrtg-rrd-collector)
Ami pochti ste gotowi... weche trqbwa da wi se generirat danni :"), move da pusnete wednyv rachno towa deto ste dobawili w crontab za da widite dali nqmate nqkakwa greshka...
Tuka zapochwa weche interesnata chast :")...
5. Otiwate na rrdtool.org i si dloadwate mrtg-rdd.cgi i RRgrapher.cgi
6. Kopirate si tezi failowe nqkade kadeto da ima +ExecCGI prawa (primerno /cgi-bin)
7. Redaktirate w nachaloto nqkolko promenliwi i w dwata skripta.. obshto mai bqha 4 vars..
8. Otiwate na http://www.yoursite.org/cgi-bin/mrtg-rrd.cgi/ezwf.html (po systiq nachin po koito sa pod mrtg imenata i.e. x.x.x.x_X.html)
i wivdate absolutno systite grafiki koito ste wivdali i pod mrtg, no weche se generirat ot rrd-baza
9. Otiwate na http://www.yoursite.org/cgi-bin/RRgrapher.cgi , a tuka weche move da si prawite wsqkakwi ekwilibristiki i da smeswate danni.. edin prost primer move da si naprawite grafika koqto da pokazwa wsichkite wi PVC plus total-a na cisco interfeis-a.. na edna grafika za 20 sec... zawisi kolko ste byrzi s mishkata :")
10. sled kato wsichko raboti otiwate na rrdtool.org i chetete mnogo.... sled 1-2 dena weche si prawite grafiki za kakwoto wi um zaide :")
Az sam na stypka 10 weche :") , prawq si primetno skriptche da mi gleda user count na ftp-to (pure-ftp).... wsyshtnost to e elementarno (pure-ftpwho -s | wc -l) ama mai ste probwam RRDs.pm da go naprawq po generalno..
Ta ideqta e da si ostawite mrtg da wi sabira dannite wyw rrd-baza a da polzwate mrtg-rrd.cgi da wi chertae grafikata... a pak kato zadobreete da si prawite i drugi gawri..:")
I dwata skripta imat problemi pod mod_perl, taka che puskaite gi pod chisto CGI..
uspeh...hth
raptor
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|
|
|