Forum OVH  

Précédent   Forum OVH > Serveurs dédiés > HOW-TO
S'inscrire FAQ Guides Recherche Messages du jour Marquer les forums comme lus

Réponse
 
Outils de la discussion
Vieux 23/09/2007, 21h36   #1
The Destroyeur
Membre
 
Date d'inscription: octobre 2006
Messages: 778
[Programme Sympathique]

Bonjour à tous,

Voici mes petits coups de coeur de programme que j'aime bien

Monitoring Bande Passante

Iftop:
Description: programme qui listes toutes les connections avec IP, Port, Nom DNS, bande passante IN et OUT
URL: http://www.ex-parrot.com/~pdw/iftop/
Commande Gentoo: emerge iftop

Iptraf:
Description: programme très complet à interface qui list les connections + débits
URL: http://iptraf.seul.org/
Commande Gentoo: emerge iptraf

Ipac-ng:
Description: bande passante utilisée (IN & OUT) sur un laps de temps
URL: http://sourceforge.net/projects/ipac-ng/
Commande Gentoo: emerge /usr/portage/net-analyzer/ipac-ng/ipac-ng-1.31-r2.ebuild

BwBar:
Description: générateur d'image et texte de bande passante utilisée (à intégré sur un site web !)
URL: http://www.kernel.org/pub/software/web/bwbar/
Commande Gentoo: emerge bwbar
The Destroyeur est déconnecté   Réponse avec citation
Vieux 10/08/2008, 14h42   #2
Sebbabas
Membre
 
Date d'inscription: août 2008
Messages: 24
Re : [Programme Sympathique]

Bonjour j aimerais savoir comment mettre bwbar en place car quand je fait
emerge bwbar ,il repond
Citation:
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) net-analyzer/bwbar-1.2.3 to /
* bwbar-1.2.3.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking bwbar-1.2.3.tar.bz2 ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking bwbar-1.2.3.tar.bz2 to /var/tmp/portage/net-analyzer/bwbar-1.2.3/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-analyzer/bwbar-1.2.3/work/bwbar-1.2.3 ...
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking if i686-pc-linux-gnu-gcc accepts -Wall... yes
checking if i686-pc-linux-gnu-gcc accepts -W... yes
checking if i686-pc-linux-gnu-gcc accepts -Wpointer-arith... yes
checking if i686-pc-linux-gnu-gcc accepts -Wbad-function-cast... yes
checking if i686-pc-linux-gnu-gcc accepts -Wcast-equal... no
checking if i686-pc-linux-gnu-gcc accepts -Wstrict-prototypes... yes
checking if i686-pc-linux-gnu-gcc accepts -Wnested-externs... yes
checking if i686-pc-linux-gnu-gcc accepts -Winline... yes
checking if i686-pc-linux-gnu-gcc accepts -Wshadow... yes
checking if i686-pc-linux-gnu-gcc accepts -Wcast-align... yes
checking if i686-pc-linux-gnu-gcc accepts -pipe... yes
checking for library containing pow... -lm
checking for library containing compress2... -lz
checking for library containing png_create_write_struct... -lpng
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating MCONFIG
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Winline -Wshadow -Wcast-align -pipe -o bwbar bwbar.c -lpng -lz -lm
>>> Source compiled.
>>> Test phase [not enabled]: net-analyzer/bwbar-1.2.3

>>> Install bwbar-1.2.3 into /var/tmp/portage/net-analyzer/bwbar-1.2.3/image/ category net-analyzer
>>> Completed installing bwbar-1.2.3 into /var/tmp/portage/net-analyzer/bwbar-1.2.3/image/

strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment
usr/bin/bwbar
* checking 2 files for package collisions
>>> Merging net-analyzer/bwbar-1.2.3 to /
--- /usr/
--- /usr/bin/
>>> /usr/bin/bwbar
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/bwbar-1.2.3/
>>> /usr/share/doc/bwbar-1.2.3/README.bz2
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
--- replaced obj /usr/share/doc/bwbar-1.2.3/README.bz2
--- replaced dir /usr/share/doc/bwbar-1.2.3
--- replaced dir /usr/share/doc
--- replaced dir /usr/share
--- replaced obj /usr/bin/bwbar
--- replaced dir /usr/bin
--- replaced dir /usr
>>> Original instance of package unmerged safely.
>>> net-analyzer/bwbar-1.2.3 merged.

>>> No packages selected for removal by clean
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
Je trouve pas comment le regler je l ai testé sous ubuntu est c est beaucoup plus simple.
Merci
Sebbabas est déconnecté   Réponse avec citation
Vieux 10/08/2008, 23h29   #3
Sebbabas
Membre
 
Date d'inscription: août 2008
Messages: 24
Re : [Programme Sympathique]

J ai trouve il était déjà installé sur le serveur, j ai fais un .sh pour l exécuter: (Gentoo R2)
Citation:
#!/bin/sh
/usr/bin/bwbar eth0 100 --output --interval 1 --text-file /home/utilisateur/www/upload.txt --png-file /home/lutilisateur/www/upload.png --width=144 &
/usr/bin/bwbar eth0 100 --input --interval 1 --text-file /home/utilisateur/www/download.txt --png-file /home/utilisateur/www/download.png --width=144 &
et pour l afficher sur la page index
Citation:
<?php
$fo1 = fopen("/home/utilisateur/www/upload.txt","r");
$fr2 = fread($fo1, "44");
$frt1 = eregi_replace("Current bandwidth utilization","Utilisation de l'upload : ",$fr2);
echo "$frt1<br/><img src='upload.png' alt='Upload utilisý'/>";
fclose ($fo1);
?>
<br/>
<?php
$fo1 = fopen("/home/utilisateur/www/download.txt","r");
$fr2 = fread($fo1, "44");
$frt1 = eregi_replace("Current bandwidth utilization","Utilisation du download : ",$fr2);
echo "$frt1<br/><img src='download.png' alt='Download utilisý'/>";
fclose ($fo1);
?>
Sebbabas est déconnecté   Réponse avec citation
Vieux 16/04/2009, 12h52   #4
its.me
Membre
 
Date d'inscription: mars 2009
Messages: 70
Re : [Programme Sympathique]

Moi perso, le seul problème que j'ai c'est avec bwbar, il ne me sort pas d'images nis de fichiers textes
its.me est déconnecté   Réponse avec citation
Vieux 16/04/2009, 16h38   #5
alexis57
Membre
 
Date d'inscription: juin 2008
Messages: 1 148
Envoyer un message via MSN à alexis57 Envoyer un message via Skype™ à alexis57
Re : [Programme Sympathique]

Salut,
J'ajoute htop qui est comme top mais en mieux
et Jnetttop =)
__________________
Ou sont les vrais serveurs de jeux d'il y a 6ans ? Avec tous les gamins qui ouvrent des serveurs à la pelle, il n'en existe plus aucun stable et durable. Honteux !
alexis57 est déconnecté   Réponse avec citation
Réponse

Outils de la discussion

Règles de messages
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is oui
Les smileys sont activés : oui
La balise [IMG] est activée : non
Le code HTML peut être employé : non



Fuseau horaire GMT +2. Il est actuellement 16h57.


© OVH 1999-2010