|
SmokePing - Configuration |
|
|
|
|
Écrit par Christophe Charles
|
|
17-01-2008 |
|
Voici un exemple de configuration : # cat /etc/smokeping/config
# Note that all IP addresses in this file are false, to prevent some # machine falling uder a deadly DOS storm because all users keep # the same addresses in their config.
*** General ***
owner = Joe Random contact =
Cet e-mail est protégé contre les robots collecteurs de mails, votre navigateur doit accepter le Javascript pour le voir
mailhost = smtp.mailhost.abc sendmail = /usr/lib/sendmail imgcache = /var/www/html/smokeping/data/.simg imgurl = ../.simg datadir = /var/www/html/smokeping/data piddir = /var/run cgiurl = http://127.0.0.1/cgi-bin/smokeping.cgi smokemail = /etc/smokeping/smokemail # specify this to get syslog logging syslogfacility = local0
*** Database ***
step = 300 # Le temps en secondes entre chaque test pings = 20 # Le nombre de tests lancé à chaque fois
# consfn mrhb steps total
AVERAGE 0.5 1 1008 AVERAGE 0.5 12 4320 MIN 0.5 12 4320 MAX 0.5 12 4320 AVERAGE 0.5 144 720 MAX 0.5 144 720 MIN 0.5 144 720
*** Presentation ***
template = /etc/smokeping/basepage.html
+ overview
width = 600 height = 50 range = 10h
+ detail
width = 600 height = 200 unison_tolerance = 2
"Last 3 Hours" 3h "Last 30 Hours" 30h "Last 10 Days" 10d "Last 400 Days" 400d
*** Probes ***
+ FPing
binary = /usr/local/sbin/fping
+ EchoPing # uses TCP or UDP echo (port 7) + EchoPingHttp # HTTP (80/tcp) for web servers and caches + EchoPingHttps # HTTPS (443/tcp) for web servers + EchoPingSmtp # SMTP (25/tcp) for mail servers
*** Alerts ***
to =
Cet e-mail est protégé contre les robots collecteurs de mails, votre navigateur doit accepter le Javascript pour le voir
from =
Cet e-mail est protégé contre les robots collecteurs de mails, votre navigateur doit accepter le Javascript pour le voir
+lossdetect type = loss # in percent pattern = ==0%,==0%,==0%,==0%,>20%,>20%,>20% comment = suddenly there is packet loss
+rttdetect type = rtt # in milli seconds pattern = <10,<10,<10,<10,<10,<100,>100,>100,>100 comment = routing mesed up again ?
*** Targets ***
probe = FPing
menu = Top title = Network Latency Grapher remark = Welcome to the SmokePing website of Linux Company. \ Here you will learn all about the latency of our network.
+ Machine1
menu = Machine1 title = Titre Machine1 host = Machine1.com
+ Machine2
menu = Machine2 title = Titre Machine2
++ icmp menu = icmp title = Icmp Server probe = EchoPing alerts = lossdetect host = Machine2
++ http menu = http title = Web Server (www-server) / HTTP probe = EchoPingHttp alerts = lossdetect host = www.Machine2.com
++ https menu = https title = Https Server probe = EchoPingHttps alerts = lossdetect host = www.Machine2.com
++ smtp menu = smtp title = Smtp Server probe = EchoPingSmtp alerts = lossdetect host = smtp.Machine2.com
|