stats van CPU/HD/Load/etc op site

Pagina: 1
Acties:

  • Ankh
  • Registratie: Mei 2001
  • Laatst online: 17:45
ik wil dus allemaal stats op mijn site hebben, ik heb een red hat 7.2 versie als linux :) met apache webserver. (ik heb quicknet jammer genoeg dus de poorten onder de 1024 zitten dicht :'( )

het is een router, met als uitbreiding de software van een Clarkconnect 0.9.1 versie :) (die is dus gebasseerd op red hat 7.2) hierbij ( bij CC) zit ook al zoiets.. enkel dat is alleen voor de mensen in het internal netwerk en niet buiten het netwerk :)
is er een package die dus stats genereerd? het staat namelijk wel leuk :P

  • stiena
  • Registratie: Juni 2000
  • Laatst online: 14-08 09:03
phpSysInfo (zie freshmeat)


zie ook sig phpServerInfo is een voorbeeld hoe het eruit ziet.

moet je wel php voor hebben

  • Sihaya
  • Registratie: Juni 2001
  • Niet online

Sihaya

Pasfoto:

Ja MRTG en als je het wat moeilijker wilt RRDtool. Werkt via snmp.
Je kunt met deze 2 eigenlijk alles graphen.

Wat voor stats eigenlijk?

signature has expired


  • flat
  • Registratie: Mei 2000
  • Niet online
phpsysinfo is wel aardig:
http://phpsysinfo.sourceforge.net/

ook MRTG wordt veel gebruikt:
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg.html

en voor de stats van je webserver kan je webalizer gebruiken:
http://www.mrunix.net/webalizer/

"Happiness is a way of travel, not a destination."
--Roy Goodman


  • Ankh
  • Registratie: Mei 2001
  • Laatst online: 17:45
dat phpsysinfo ziet er zeer leuk uit :) ik ga er nog wat mee stoeien :) misschien dat ik er wel meerder bij elkaar ga zetten

thnx alvast en als je nog wat leuke stats hebt :)

  • Ankh
  • Registratie: Mei 2001
  • Laatst online: 17:45
bij CC wordt er al auto gebruik van gemaakt MRTG, is ook zeer handig :) maar zal het uit maken als ik er nog 1 install van mrtg inzet?

Verwijderd

en zo kan mrtg er uit zien

ook heel anders eigenlijk wel

  • Ankh
  • Registratie: Mei 2001
  • Laatst online: 17:45
code:
1
2
3
4
5
6
7
8
9
10
11
12
checking for gdImagePng_jpg_ft in -lgd... no
checking for gd.h... no
 
** The GD library is required for rateup to compile.
   Get it from http://www.boutell.com, compile it and
   use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify
   its location. You might also have to use --with-z-inc, --with-z-lib
   and --with-png-inc, --with-png-lib for gd versions 1.6 and higher.
   Check config.log for more information on the problem. If your system
   has libgd installed, you probably mis the gd.h header file.
 
   Consider following the instructions in doc/unix-guide.txt

dat kreeg ik bij installen van mrtg.
ik dus die dingen doen zoals ze staan bij de unix-guide
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
LIBRARY COMPILATION

In this section I will give you step by step instructions on how to compile the various libraries required for the compilation of mrtg. Note that these libaries may already be installed if you have a *BSD or Linux system so that you can skip recompiling them. The wget programm used below is a simple web downloader you can also enter the address into your netscape if you don't have wget available.

First lets create a directory for the compilation. Note that this may already exist on your system. No Problem just use it.

 mkdir -p /usr/local/src
 cd /usr/local/src

If you do not have zlib installed:

 wget ftp://sunsite.cnlab-switch.ch/mirror/infozip/zlib/zlib.tar.gz
 gunzip -c zlib.tar.gz | tar xf -
 mv zlib-?.?.?/ zlib
 cd zlib
 ./configure
 make
 cd ..

If you don't have libpng installed

 wget http://www.libpng.org/pub/png/src/libpng-1.0.12.tar.gz
 gunzip -c libpng-*.tar.gz |tar xf -
 rm libpng-*.tar.gz
 mv libpng-* libpng
 cd libpng
 make -f scripts/makefile.std CC=gcc ZLIBLIB=../zlib ZLIBINC=../zlib
 rm *.so.* *.so
 cd ..

And now you can compile gd

 wget http://www.boutell.com/gd/http/gd-1.8.3.tar.gz
 gunzip -c gd-1.8.3.tar.gz |tar xf -
 mv gd-1.8.3 gd
 cd gd

The \ characters at the end of the following lines mean that all the following material should actually be written on a single line.

 make INCLUDEDIRS="-I. -I../zlib -I../libpng" \
    LIBDIRS="-L../zlib -L. -L../libpng" \
    LIBS="-lgd -lpng -lz -lm"
 cd ..

maar de dingen bij make werken dus niet..

help...

  • stiena
  • Registratie: Juni 2000
  • Laatst online: 14-08 09:03
Op woensdag 26 december 2001 17:16 schreef RaMMSTeiN het volgende:
..........
make INCLUDEDIRS="-I. -I../zlib -I../libpng" \

bij die puntjes moet je je dir van je libpng en zlib (die je net geinstalleerd hebt) zetten. Volgens mij gewoon de source's dir....

  • Ankh
  • Registratie: Mei 2001
  • Laatst online: 17:45
maar bij
code:
1
2
./configure
make

deze make wilt ook niet werken

  • stiena
  • Registratie: Juni 2000
  • Laatst online: 14-08 09:03
Op woensdag 26 december 2001 17:29 schreef RaMMSTeiN het volgende:
maar bij
code:
1
2
./configure
make

deze make wilt ook niet werken
./configure en als dat klaar is make werkt niet?

wat is de foutmelding daar dan?

  • Ankh
  • Registratie: Mei 2001
  • Laatst online: 17:45
code:
1
2
3
4
5
6
7
8
9
[root@Atlantis zlib]# ./configure
Checking for gcc...
Building static library libz.a version 1.1.3 with gcc.
Checking for unistd.h... Yes.
Checking for errno.h...  Yes.
Checking for mmap support... Yes.
[root@Atlantis zlib]# make
bash: make: command not found
[root@Atlantis zlib]#

  • Sihaya
  • Registratie: Juni 2001
  • Niet online

Sihaya

Pasfoto:

Denk dat je GNU make nog moet installeren. Hier vandaan te halen

signature has expired


  • Ankh
  • Registratie: Mei 2001
  • Laatst online: 17:45
ok.

ik heb hem nu zo voor dat ik hem moet instellen... enkel ik heb geen idee hoe en wat ik moet doen.. (het staat er zo cryptisch voor iemand met dyslexie :'( )
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
[root@Atlantis bin]# cfgmaker --global 'WorkDir: /home/httpd/mrtg'  --global 'Op
tions[_]: bits,growright' --output /var/www/html/mrtg/mrtg.cfg    community@rammstein.pointclark.net
--base: Get Device Info on community@rammstein.pointclark.net:
SNMP Error:
no response received
SNMPv1_Session (remote host: "rammstein.pointclark.net" [212.58.180.88].161)
            community: "community"
             request ID: 235124221
            PDU bufsize: 8000 bytes
              timeout: 2s
              retries: 5
              backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for sysDescr sysContact sysName sysLocation sysObjectID on community@rammstein.pointclark.net:
 at /usr/bin/cfgmaker line 657
--base: Vendor Id: 
--base: Populating confcache
--snpo: Skipping ifName scanning because community@rammstein.pointclark.net: does not seem to support it
--snpo: Skipping ifDescr scanning because community@rammstein.pointclark.net: does not seem to support it
--snpo: Skipping ipAdEntIfIndex scanning because community@rammstein.pointclark.net: does not seem to support it
--snpo: Skipping ifType scanning because community@rammstein.pointclark.net: does not seem to support it
--snpo: Skipping ifPhysAddress scanning because community@rammstein.pointclark.net: does not seem to support it
--base: Get Interface Info
--base: Walking ifIndex
SNMP Error:
no response received
SNMPv1_Session (remote host: "rammstein.pointclark.net" [212.58.180.88].161)
            community: "community"
             request ID: 235124227
            PDU bufsize: 8000 bytes
              timeout: 2s
              retries: 5
              backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.1 on community@rammstein.pointclark.net:
 at /usr/bin/cfgmaker line 107
--base: Walking ifType
SNMP Error:
no response received
SNMPv1_Session (remote host: "rammstein.pointclark.net" [212.58.180.88].161)
            community: "community"
             request ID: 235124228
            PDU bufsize: 8000 bytes
              timeout: 2s
              retries: 5
              backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.3 on community@rammstein.pointclark.net:
 at /usr/bin/cfgmaker line 107
--base: Walking ifSpeed
SNMP Error:
no response received
SNMPv1_Session (remote host: "rammstein.pointclark.net" [212.58.180.88].161)
            community: "community"
             request ID: 235124229
            PDU bufsize: 8000 bytes
              timeout: 2s
              retries: 5
              backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.5 on community@rammstein.pointclark.net:
 at /usr/bin/cfgmaker line 107
--base: Walking ifAdminStatus
SNMP Error:
no response received
SNMPv1_Session (remote host: "rammstein.pointclark.net" [212.58.180.88].161)
            community: "community"
             request ID: 235124230
            PDU bufsize: 8000 bytes
              timeout: 2s
              retries: 5
              backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.7 on community@rammstein.pointclark.net:
 at /usr/bin/cfgmaker line 107
--base: Walking ifOperStatus
SNMP Error:
no response received
SNMPv1_Session (remote host: "rammstein.pointclark.net" [212.58.180.88].161)
            community: "community"
             request ID: 235124231
            PDU bufsize: 8000 bytes
              timeout: 2s
              retries: 5
              backoff: 1)
stein.pointclark.netight' --output /var/www/html/mrtg/mrtg.cfg    community@ramms
--base: Get Device Info on community@rammstein.pointclark.net:
SNMP Error:
no response receivedight' --output /var/www/html/mrtg/mrtg.cfg    community@ramms
SNMPv1_Session (remote host: "rammstein.pointclark.net" [212.58.180.88].161)
            community: "community"
             request ID: 419531323
            PDU bufsize: 8000 bytes
              timeout: 2s
              retries: 5
              backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for sysDescr sysContact sysName sysLocation sysObjectID on community@rammstein.pointclark.net:
 at /usr/bin/cfgmaker line 657
--base: Vendor Id: 
--base: Populating confcache
--snpo: Skipping ifName scanning because community@rammstein.pointclark.net: does not seem to support it
--snpo: Skipping ifDescr scanning because community@rammstein.pointclark.net: does not seem to support it
--snpo: Skipping ipAdEntIfIndex scanning because community@rammstein.pointclark.net: does not seem to support it
--snpo: Skipping ifType scanning because community@rammstein.pointclark.net: does not seem to support it
--snpo: Skipping ifPhysAddress scanning because community@rammstein.pointclark.net: does not seem to support it
--base: Get Interface Info
--base: Walking ifIndex
SNMP Error:
no response received
SNMPv1_Session (remote host: "rammstein.pointclark.net" [212.58.180.88].161)
            community: "community"
             request ID: 419531329
            PDU bufsize: 8000 bytes
              timeout: 2s
              retries: 5
              backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.1 on community@rammstein.pointclark.net:
 at /usr/bin/cfgmaker line 107
--base: Walking ifType
SNMP Error:
no response received
SNMPv1_Session (remote host: "rammstein.pointclark.net" [212.58.180.88].161)
            community: "community"
             request ID: 419531330
            PDU bufsize: 8000 bytes
              timeout: 2s
              retries: 5
              backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.3 on community@rammstein.pointclark.net:
 at /usr/bin/cfgmaker line 107
--base: Walking ifSpeed
SNMP Error:
no response received
SNMPv1_Session (remote host: "rammstein.pointclark.net" [212.58.180.88].161)
            community: "community"
             request ID: 419531331
            PDU bufsize: 8000 bytes
              timeout: 2s
              retries: 5
              backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.5 on community@rammstein.pointclark.net:
 at /usr/bin/cfgmaker line 107
--base: Walking ifAdminStatus
SNMP Error:
no response received
SNMPv1_Session (remote host: "rammstein.pointclark.net" [212.58.180.88].161)
            community: "community"
             request ID: 419531332
            PDU bufsize: 8000 bytes
              timeout: 2s
              retries: 5
              backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.7 on community@rammstein.pointclark.net:
 at /usr/bin/cfgmaker line 107
--base: Walking ifOperStatus
SNMP Error:
no response received
SNMPv1_Session (remote host: "rammstein.pointclark.net" [212.58.180.88].161)
            community: "community"
             request ID: 419531333
            PDU bufsize: 8000 bytes
              timeout: 2s
              retries: 5
              backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.8 on community@rammstein.pointclark.net:
 at /usr/bin/cfgmaker line 107
--base: Writing /var/www/html/mrtg/mrtg.cfg
[root@Atlantis bin]#

ik heb het gevoel dat home/httpd/ ofzo niet klopt.. maar ik heb geen idee hoe het dan wel moet

sorry voor deze lap tekst :+

  • Sihaya
  • Registratie: Juni 2001
  • Niet online

Sihaya

Pasfoto:

Staat snmpd aan?
Kijk met netstat -a naar snmp

signature has expired


  • Ankh
  • Registratie: Mei 2001
  • Laatst online: 17:45
nope staat niet aan, moet ik die dan eerst installeren?

  • Sihaya
  • Registratie: Juni 2001
  • Niet online

Sihaya

Pasfoto:

Ja, maar je zou het ook met cban kunnen proberen. Hier te vinden

signature has expired


Verwijderd

Op woensdag 26 december 2001 21:37 schreef RaMMSTeiN het volgende:
nope staat niet aan, moet ik die dan eerst installeren?
Mjah, lijkt me wel handig ja ;)
Waarschijnlijk staat snmpd er al gewoon op hoor.

Daarna moet je nog de community toegankelijk maken (Read of Read/Write) in snmpd.conf.

Je kan dit met snmpwalk daarna testen.

  • Ankh
  • Registratie: Mei 2001
  • Laatst online: 17:45
Op woensdag 26 december 2001 21:39 schreef Sihaya het volgende:
Ja, maar je zou het ook met cban kunnen proberen. Hier te vinden
vaag.. nou laat maar hoor.. want het wilt niet werken dit cban werkt ook niet
bij alles wat ik heb gekeken zit niet eens een fatsoenlijke manual bij (of ligt dat aan mij :? )

  • Steije
  • Registratie: Juni 2000
  • Laatst online: 06-07 10:53

Some people manage by the book, even though they don't know who wrote the book or even what book.


  • Ankh
  • Registratie: Mei 2001
  • Laatst online: 17:45
Op donderdag 27 december 2001 09:24 schreef steije het volgende:
http://mrtg-pme.sourceforge.net/
http://sourceforge.net/projects/mrtg-eth/

Werken allebei zonder SNMP :)
thnx zal eens kijken vanavond.. :)

  • Ankh
  • Registratie: Mei 2001
  • Laatst online: 17:45
Op donderdag 27 december 2001 09:24 schreef steije het volgende:
http://mrtg-pme.sourceforge.net/
http://sourceforge.net/projects/mrtg-eth/

Werken allebei zonder SNMP :)
ik ben bezig met die PME, enkel tis weer lekker vaag :'(

  • Ankh
  • Registratie: Mei 2001
  • Laatst online: 17:45
http://mrtg-pme.sourceforge.net/PME.html

ik ben bij chapter IV (for linux)
maar hoe in hemelsnaam kan ik nou gaan kijken hoe het is?? dat staat er volgens mij niet.. :? iemand help plz

  • Ankh
  • Registratie: Mei 2001
  • Laatst online: 17:45
* Rammstein snapt er de balle van.. :?
ik ga maar slapen.. niet dat het veel helpt..

Verwijderd

zo ziet de mijne eruit :)

http://www.l4sh3r.net/~lasher/mrtg/

voor de config: http://www.l4sh3r.net/~lasher/mrtg/mrtg.cfg
alle scriptjes staan ook in die dire namen kan je uit de cfg halen

zo installeer ik dat: http://tweakers.net/~kees/mrtg.html url's in het scriptje werken wel niet :) en voor red hat 7.2 (thx 2 kees voor die tekst :))

  • Zynth
  • Registratie: September 2001
  • Laatst online: 29-07 15:30
Check de link in mijn signature maar eens.
Is een verzameling van zelfgeschreven c/php/bash-programmaatjes.

(nix gejat, maar wel geinspireerd door phpsysinfo :P)
de waardes zijn trouwens 100% variabel, dwz, ik heb nix 'vast' ingesteld ofzow.

  • Ankh
  • Registratie: Mei 2001
  • Laatst online: 17:45
Op vrijdag 28 december 2001 01:50 schreef Zynth het volgende:
Check de link in mijn signature maar eens.
Is een verzameling van zelfgeschreven c/php/bash-programmaatjes.

(nix gejat, maar wel geinspireerd door phpsysinfo :P)
de waardes zijn trouwens 100% variabel, dwz, ik heb nix 'vast' ingesteld ofzow.
wat bedoel jij ??
:?
[edit]
sorry ben nog neit wakker :P ziet er leuk uit :)
enkel ik wil namelijk zo'n bandtwith meter zoal mrtg erbij hebben :)
Pagina: 1