[smokeping-users] smokeping config file

G.W. Haywood ged at jubileegroup.co.uk
Fri Oct 15 20:23:18 CEST 2010


Hi there,

On Fri, 15 Oct 2010, Adam Hardy wrote:

> Ceylan, Hasan on 14/10/10 18:49, wrote:
>
> > ... I was able to set up a fping probe, but I would like to be
> > able to set up dns, smtp, curl and some other ones. When I try to
> > edit the config file, the whole thing goes sour.
> >
> > Can somebody send me a config ...
>
> I would be interested in something like this too.

Try something based on this:

----------------------------------------------------------------------
Targets
----------------------------------------------------------------------
*** Targets ***

menu = Top
title = Network Latency Grapher
remark = Our Site

probe  = FPing_00

@include /etc/smokeping/config.d/Targets.Local
@include /etc/smokeping/config.d/Targets.World

----------------------------------------------------------------------
Targets.Local
----------------------------------------------------------------------
+ Local

menu = Local
title = Local Network

@include /etc/smokeping/config.d/Targets.Local.Here
@include /etc/smokeping/config.d/Targets.Local.There
@include /etc/smokeping/config.d/Targets.Local.Everywhere

----------------------------------------------------------------------
Targets.Local.Here
----------------------------------------------------------------------
++ Here
menu = Here
title = Our Network
probe  = FPing_00

+++ BACKUP
menu  =  Backup Server
title = backup.example.com
probe = FPing_22
host  = backup.example.com

+++ FIREWALL 1
menu  = Firewall 1
title = firewall1.example.com
probe = FPing_03
host  = firewall1.example.com

+++ FIREWALL 2
menu  = Firewall 2
title = firewall2.example.com
probe = FPing_04
host  = firewall2.example.com

+++ FIREWALL 3
menu = Firewall 3
title = firewall3.example.com
probe = FPing_05
host =  firewall3.example.com

# etc...

----------------------------------------------------------------------
Targets.World
----------------------------------------------------------------------
+ World
slaves =
menu = World
title = Worldwide Connectivity

++ Europe
menu = Europe
title =European Connectivity

+++ UK
menu = United Kingdom
title = United Kingdom

++++ BBC
menu = BBC
title = BBC News
probe = FPing_30
host = news.bbc.co.uk

++++ GOOGLE
menu = Google
title = Google (UK)
probe = FPing_40
host = www.google.co.uk

++++ Customer
menu = Customer Mailserver
title = Customer mail server (public interface)
probe = FPing_50
host = mail.example.com

++++ Customer_Internet_1
menu = Customer Public IP (1)
title = Customer Internet connection (1)
probe = FPing_60
host = xx.xx.xx.xx

----------------------------------------------------------------------
Probes
----------------------------------------------------------------------
*** Probes ***

+ FPing
binary = /usr/bin/fping

++FPing_00
offset = 0%

++FPing_02
offset = 2%

++FPing_03
offset = 3%

++FPing_04
offset = 4%

++FPing_05
offset = 5%

++FPing_06
offset = 6%

++FPing_07
offset = 7%

++FPing_08
offset = 8%

++FPing_09
offset = 9%

++FPing_10
offset = 10%

++FPing_11
offset = 11%

++FPing_12
offset = 12%
#packetsize = 10240

++FPing_13
offset = 13%

++FPing_14
offset = 14%

++FPing_15
offset = 15%

++FPing_16
offset = 16%

++FPing_17
offset = 17%

++FPing_18
offset = 18%

++FPing_19
offset = 19%

++FPing_20
offset = 20%

++FPing_22
offset = 22%

++FPing_30
offset = 30%

++FPing_40
offset = 40%

++FPing_50
offset = 50%

++FPing_60
offset = 60%

++FPing_88
offset = 88%

++FPing_89
offset = 89%

+Curl

binary = /usr/bin/curl
forks = 5
step = 300

++Curl_66

offset = 66%
# 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
# extraargs = -6 --head --user user:password
extrare = / /
follow_redirects = no
include_redirects = no
insecure_ssl = 0
interface = eth0
pings = 5
ssl2 = 0
timeout = 2
urlformat = http://%host%/ # mandatory

# Just for the Web servers...
+EchoPingHttp

binary = /usr/bin/echoping
forks = 5
offset = 60%
step = 300

++EchoPingHttp_60

# The following variables can be overridden in each target section
accept_redirects = no
# extraopts = -some-letter-the-author-did-not-think-of
ignore_cache = yes
ipversion = 4
pings = 5
port = 80
# priority = 6
revalidate_data = no
timeout = 5
tos = 0
url = /
waittime = 5

++EchoPingHttp_66

offset = 66%

accept_redirects = no

ignore_cache = yes
ipversion = 4
pings = 5
port = 80

revalidate_data = no
timeout = 5
tos = 0
url = /
waittime = 5

# Experimental, ignore or comment out

+TCPPing
binary = /usr/bin/tcpping # mandatory
forks = 5
offset = 50%
step = 300
timeout = 15

# The following variables can be overridden in each target section
pings = 5
port = 80

----------------------------------------------------------------------
Slaves
----------------------------------------------------------------------
*** Slaves ***

secrets = /etc/smokeping/secrets

+ mail4
display_name = slave probe on mail4
location     = Tower1
color        = ff0000

++ override
Probes.FPing.binary = /usr/local/bin/fping
# ...


--

73,
Ged.



More information about the smokeping-users mailing list