Apportez votre aide…
Ceci est une ancienne révision du document !
Smokeping
Outil de surveillance des temps de latence sur votre réseau.
Mise en place
- Installation:
apt-get install smokeping
- Accès à l'interface:
http://localhost/cgi-bin/smokeping.cgi
- Changer l'Alias de redirection:
/etc/smokeping/apache2.conf
- Configuration:
La configuration comporte plusieurs fichiers (possibilité d'avoir tout dans un même fichier):
/etc/smokeping/config.d/
General –> Information de base
Alerts –> Déclarer des alertes (sur mail)
Database –> Déclaration des bases rrdtool
Config du step, par défaut 300 sec (exécution du script toutes les 5 min), et nombre de ping (par défaut 20).
Presentation –> Mise en forme des graphs
Probes –> Déclaration des probes, outils permettant la mesure (fping, httpping, etc.)
Voir les probes disponibles: oss.oetiker.ch
Slaves –> Déclaration en Master/Esclave pour créer des sondes
Targets –> Déclaration des hosts à monitorer
- Mod debug:
/etc/init.d/smokeping stop smokeping --debug
Exemple pour tester temps de réponse HTTP de site web (avec/sans proxy, ntlm, echoping, curl):
- Probe
*** Probes *** + FPing binary = /usr/bin/fping # these expect to find echoping in /usr/bin # if not, you'll have to specify the location separately for each probe # + EchoPing # uses TCP or UDP echo (port 7) # + EchoPingDiscard # uses TCP or UDP discard (port 9) # + EchoPingChargen # uses TCP chargen (port 19) + EchoPingSmtp # SMTP (25/tcp) for mail servers + EchoPingHttps # HTTPS (443/tcp) for web servers + EchoPingHttp # HTTP (80/tcp) for web servers and caches accept_redirects = yes timeout = 5 offset = 50% revalidate_data = no + EchoPingIcp # ICP (3130/udp) for caches # these need at least echoping 6 with the corresponding plugins + EchoPingDNS # DNS (53/udp or tcp) servers + EchoPingLDAP # LDAP (389/tcp) servers + EchoPingWhois # Whois (43/tcp) servers + Curl binary = /usr/bin/curl forks = 5 offset = 50% step = 300 # The following variables can be overridden in each target section agent = User-Agent: Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.6c extrare = / / follow_redirects = yes include_redirects = yes insecure_ssl = 1 interface = eth0 pings = 5 ssl2 = 1 timeout = 20 urlformat = http://%host%/ # mandatory
- Target:
*** Targets *** # default probe probe = EchoPingHttp menu = Top title = Network Latency Grapher remark = Welcome to this SmokePing website. + Mesures Echoping HTTP menu = Mesures title = Mesures # Equip1 (Echoping par proxy) ++ Equip1-google menu = Equip1-google title = Equip1-www.google.fr host = 192.168.0.255 port = 80 url = http://www.google.fr/ + Mesure Curl menu = Mesure Curl ++ NTLM menu = NTLM probe = Curl host = www.google.fr extraargs = --proxy-ntlm --proxy-user "domaine\\user:pass" --proxy http://192.168.0.1:80/ ++ IP probe = Curl menu = IP host = www.google.fr extraargs = --proxy http://192.168.0.1:80/
A continuer.
(N'hésitez pas à me faire part de vos attentes).