interesanta idee... imi place dar mrtg-ul face mari figuri! adica: din ./mrtg mrtg.cfg rezulta.....
Daemonizing MRTG ... ERROR: Target[mrtg][_IN_] ''/b'' evaluated to '/b' instead of a number ERROR: Target[mrtg][_OUT_] ''/b'' evaluated to '/b' instead of a number WARNING: Skipping Update of mrtg, inlast is not defined WARNING: Skipping Update of mrtg, outlast is not defined in conditiile in care mrtg.cfg arata asa: ----- WorkDir: /var/www/htdocs/db RunAsDaemon: Yes Interval: 5 Refresh: 300 Target[mrtg]: '/b' Title[mrtg]: router PageTop[mrtg]: <H1>test</H1> MaxBytes[mrtg]: 8000 ----- b este evident scriptul acela care mi l-ai sugerat l-am testat inainte si merge... nu inteleg de ce e la sfarsit 'echo gw-2'! >Mihai Tanasescu wrote: > fara snmp poti sa faci ceva de genu > Target[mrtg]:`/usr/local/mrtg-2/bin/getstats.sh` > <asta la target in mrtg.cfg> > unde getstats.sh e un script de genu (care chiar merge in > prezent:PP )-in loc de eth2 poti sa pui $1 si sa-l apelezi cu parametru > pt fiecare interfata sau ca in cazul tau poti sa pui in loc de eth2, > eth1 > #!/bin/bash > #get transmit and receive bytes > # > INFO=`grep eth2 /proc/net/dev | tr -s '''' | cut -d: -f2` > RECEIVE=`echo $INFO | cut -d" " -f1` > TRANSMIT=`echo $INFO | cut -d" " -f9` > #get uptime > # > UPTIME=`uptime | tr -s '''' | cut -d " " -f4-` > #final output to MRTG > # > echo $RECEIVE > echo $TRANSMIT > echo $UPTIME > echo gw-2 >[...] --- Pentru dezabonare, trimiteti mail la [EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'. REGULI, arhive si alte informatii: http://www.lug.ro/mlist/
