Freesco, NND, CDN, EOS

http://www.freesco.pl
Dzisiaj jest sobota, 2 sierpnia 2025, 01:05

Strefa czasowa UTC+2godz.




Nowy temat Odpowiedz w temacie  [ Posty: 30 ]  Przejdź na stronę Poprzednia  1, 2
Autor Wiadomość
 Tytuł:
Post: piątek, 25 lutego 2005, 23:36 
Offline
Użytkownik

Rejestracja: niedziela, 25 lipca 2004, 15:22
Posty: 185
Lokalizacja: BAGILLT
po uruchomieniu serwa mrtg zliczac ci nie bedzie co sie na sieci dzieje...
musisz dodac regulke w rc.local lub dodac wpis do sekcji deamons w rc.conf

PS. ja mrtg tez mam z dodatkowymi statystykami a obciazenie procka mam miedzy 40-50% wiec chyba nie ejst tak tragicznie biorac pod uwage ze mam tylko pentiaka 233MHz :D
szukam jeszcze jakisch dodatkowych statystyk ktore beda pokazywaly temperature i jakies inne przydatne informacje ale poki co znalesc nei mgoe tylko widzialem u kogos :)

_________________
NND z 10 lipca | DSL=1024/256kb | Pentium II - 233MHz | 128MB RAM | HDD 2,1GB | 15 kompów | in Poland
NND 0.2 | DSL=2048/512kb | Pentium III - 400MHz | 64MB RAM | HDD 4,8GB | 3 kompy | in UK


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: piątek, 25 lutego 2005, 23:48 
Offline
Użytkownik

Rejestracja: środa, 12 lutego 2003, 08:48
Posty: 392
Lokalizacja: LG k/Tarnowa
aby mrtg ladnie generowal staty po skonfigurowaniu go wrzucasz do rc.conf do modules wpis
mrtg
i ma dzialac, a zeby nie uruchamiac ponownie routera to:
/etc/rc.d/mrtg start
i ma chodzic

_________________
RoUteR NND [ C333 | 128MB RAM | 13GB HDD | DSL 2Mb]


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: sobota, 26 lutego 2005, 17:12 
Offline
Użytkownik

Rejestracja: niedziela, 25 lipca 2004, 15:22
Posty: 185
Lokalizacja: BAGILLT
hmmm wlasnie zauwazylem ze moje mrtg zle zlicza uzytkownikow online... caly czas wykres pokazuje ze wszyscy sa w sieci... czego to moze byc wina i jak mozna to naprawic???

_________________
NND z 10 lipca | DSL=1024/256kb | Pentium II - 233MHz | 128MB RAM | HDD 2,1GB | 15 kompów | in Poland
NND 0.2 | DSL=2048/512kb | Pentium III - 400MHz | 64MB RAM | HDD 4,8GB | 3 kompy | in UK


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: piątek, 18 marca 2005, 14:22 
Offline

Rejestracja: czwartek, 13 stycznia 2005, 10:53
Posty: 85
Mi ostatnio przestało chodzić mrtg. Po deinstalacji i ponownej instalacji nie rusza. Jak zrobię:
: [/] [] ()
mrtg /etc/mrtg/mrtg.conf

to wywala mi:
: [/] [] ()
Rateup WARNING: /usr/bin/rateup Can't remove eth0.old updating log file
Rateup WARNING: /usr/bin/rateup Can't remove eth1.old updating log file
Rateup WARNING: /usr/bin/rateup Can't remove ppp0.old updating log file
Rateup WARNING: /usr/bin/rateup Can't remove 10.0.1.8.old updating log file
Rateup WARNING: /usr/bin/rateup Can't remove 10.0.1.14.old updating log file
Rateup WARNING: /usr/bin/rateup Can't remove hosty.old updating log file
Rateup WARNING: /usr/bin/rateup Can't remove cpu.old updating log file
Rateup WARNING: /usr/bin/rateup Can't remove hda1.old updating log file
Rateup WARNING: /usr/bin/rateup Can't remove swap.old updating log file
Rateup WARNING: /usr/bin/rateup Can't remove mem.old updating log file
Rateup WARNING: /usr/bin/rateup Can't remove procesy.old updating log file


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: piątek, 18 marca 2005, 20:43 
Offline

Rejestracja: piątek, 26 listopada 2004, 15:24
Posty: 33
Lokalizacja: Bytów
Szpakos pisze:
hmmm wlasnie zauwazylem ze moje mrtg zle zlicza uzytkownikow online... caly czas wykres pokazuje ze wszyscy sa w sieci... czego to moze byc wina i jak mozna to naprawic???


Witam
a spróbuj tego
u mnie działa
: [/] [] ()
#!/bin/sh

for x in `seq 2 5`;

do arping -w 1 -c1 -I eth0 10.0.0.$x |awk '/Received/ {print $2}';
done > /etc/mrtg/wyniki.hosty
all=5;
hosty=`cat /etc/mrtg/wyniki.hosty | grep 1|wc -l|awk '{print $1}' `;
let hosts-=2
echo "$hosty";
echo "$all";
uptime | sed -e 's/^.*up *//g' -e 's/, *[0-9] *u.*$//g'
hostname


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 20 marca 2005, 00:45 
Offline

Rejestracja: piątek, 3 września 2004, 09:57
Posty: 96
Lokalizacja: Sulechów
A ja niemoge wogole odpalic stronki z MRTG :/
stram sie wszedie
http://192.168.0.1/mrtg
http://192.168.0.1:82/mrtg

nic
(katalog z MRTG jest standatrdowo w /var/www/mrtg) :/
Nie wiem dlaczego moze to przez thttpd ktore musialem zainstalowac by uruchomic Statmat? ( statmat mam na http://192.168.0.1:82/stat.htm)

_________________
Matek


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: poniedziałek, 21 marca 2005, 16:20 
Offline

Rejestracja: czwartek, 13 stycznia 2005, 10:53
Posty: 85
teraz po wpisaniu
: [/] [] ()
mrtg /etc/mrtg/mrtg.conf
wywala:
Cytuj:
iptables: Table does not exist (do you need to insmod?)
iptables: Table does not exist (do you need to insmod?)
WARNING: Problem with Externale get '/etc/mrtg/mrtg.ip 10.0.1.8':
Expected a Number for 'out' but got 'router_nnd'

iptables: Table does not exist (do you need to insmod?)
iptables: Table does not exist (do you need to insmod?)
WARNING: Problem with Externale get '/etc/mrtg/mrtg.ip 10.0.1.14':
Expected a Number for 'out' but got 'router_nnd'

ERROR: Target[10.0.1.8][_IN_] ' $target->[3]{$mode} ' evaluated to 'NaN' instead of a number
ERROR: Target[10.0.1.8][_OUT_] ' $target->[3]{$mode} ' did not eval into defined data
ERROR: Target[10.0.1.14][_IN_] ' $target->[4]{$mode} ' evaluated to 'NaN' instead of a number
ERROR: Target[10.0.1.14][_OUT_] ' $target->[4]{$mode} ' did not eval into defined data
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1168.
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1168.
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1177.
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1177.
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1168.
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1168.
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1177.
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1177.
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1168.
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1168.
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1177.
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1177.


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: wtorek, 22 marca 2005, 02:24 
Offline
MODERATOR

Rejestracja: poniedziałek, 27 stycznia 2003, 23:39
Posty: 3065
Lokalizacja: Kraków/Częstochowa
wyraźnie napisane, że nie zainicjalizowana tablica iptables licząca ruch. Uruchom /etc/rc.d/mrtg start

a potem możesz sobie wpisać to polecenie.


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: wtorek, 22 marca 2005, 10:32 
Offline

Rejestracja: czwartek, 13 stycznia 2005, 10:53
Posty: 85
no to jak tak zrobię to mam:
Cytuj:
Rateup WARNING: /usr/bin/rateup could not read the primary log file for eth0
Rateup WARNING: /usr/bin/rateup The backup log file for eth0 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove eth0.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename eth0.log to eth0.old updating log filenat_ftp ip_nat_irc ip_tables iptable_nat mrtg)
Rateup WARNING: /usr/bin/rateup could not read the primary log file for eth1
Rateup WARNING: /usr/bin/rateup The backup log file for eth1 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove eth1.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename eth1.log to eth1.old updating log fileoprzedzenie nazwy wykrzyknikiem (!) spowoduję że dana usługa
Rateup WARNING: /usr/bin/rateup could not read the primary log file for ppp0
Rateup WARNING: /usr/bin/rateup The backup log file for ppp0 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove ppp0.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename ppp0.log to ppp0.old updating log fileMONS=(syslogd klogd crond sshd lan internet iptables niceshaper mysqld !xinetRateup WARNING: /usr/bin/rateup could not read the primary log file for 10.0.1.8
Rateup WARNING: /usr/bin/rateup The backup log file for 10.0.1.8 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 10.0.1.8.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 10.0.1.8.log to 10.0.1.8.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for 10.0.1.14
Rateup WARNING: /usr/bin/rateup The backup log file for 10.0.1.14 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove 10.0.1.14.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename 10.0.1.14.log to 10.0.1.14.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for hosty
Rateup WARNING: /usr/bin/rateup The backup log file for hosty was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove hosty.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename hosty.log to hosty.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for cpu
Rateup WARNING: /usr/bin/rateup The backup log file for cpu was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove cpu.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename cpu.log to cpu.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for hda1
Rateup WARNING: /usr/bin/rateup The backup log file for hda1 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove hda1.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename hda1.log to hda1.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for swap
Rateup WARNING: /usr/bin/rateup The backup log file for swap was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove swap.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename swap.log to swap.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for mem
Rateup WARNING: /usr/bin/rateup The backup log file for mem was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove mem.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename mem.log to mem.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for procesy
Rateup WARNING: /usr/bin/rateup The backup log file for procesy was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove procesy.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename procesy.log to procesy.old updating log file

a katalog /var/log/mrtg jest pusty i chyba zawsze był pusty, nawet jak mtrg działało
edit:
zrobiłem
: [/] [] ()
chmod 777 /var/log/mrtg
i teraz jak wpiszę
: [/] [] ()
mrtg /etc/mrtg/mrtg.conf
to wykonuje bardzo długo polecenie bez żadnego rezultatu
edit2:
odinstalowałem mrtg i usunąłem wszystkie pliki z nazwą mrtg, zainstalowałem od nowa i ruszyło, zobaczymy jak długo pochodzi


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: sobota, 24 grudnia 2005, 01:09 
Offline

Rejestracja: wtorek, 29 listopada 2005, 16:31
Posty: 88
Lokalizacja: Poznań
a ja zauważyłem że MRTG startuje jakies10 minut po starcie systemu - tzn od tego momentu dopiero statystyki są uaktualniane na wykresach pozdrawiam!


Na górę
 Wyświetl profil  
 
Wyświetl posty nie starsze niż:  Sortuj wg  
Nowy temat Odpowiedz w temacie  [ Posty: 30 ]  Przejdź na stronę Poprzednia  1, 2

Strefa czasowa UTC+2godz.


Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 3 gości


Nie możesz tworzyć nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz dodawać załączników

Szukaj:
Przejdź do:  
cron
Technologię dostarcza phpBB® Forum Software © phpBB Group
Hosting: Compus-Net
RobertKonik.pl