curldnspingprobe

Smokeping Mixed Probe types in Target Template


I'm attempting to setup Smokeping for my home office to troubleshoot some connectivity issues I've seen lately. Ideally I'd have a mix of FPing, DNS, and Curl monitors. The FPing probes work, however DNS and Curl don't populate and /var/log/messages says "No targets defined for probe X, skipping."

Here are my probe definitions:

*** Probes ***

+ FPing
binary = /usr/bin/fping

+ DNS
binary = /usr/bin/dig
server = resolver.qwest.net
pings = 5
step = 120

+ Curl
binary = /usr/bin/curl
forks = 5
pings = 5
offset = 50%
timeout = 30

And here are my targets:

*** Targets ***

probe = FPing
menu = Top
title = Smokeping - Network Latency
remark = Home Office monitoring.

+ Ping
menu = Ping Monitoring
title = Ping Monitoring

++ LocalMachine
menu = Router (10.0.0.2)
title = Router (10.0.0.2)
host = 10.0.0.2
#alerts = someloss

++ SWCP
menu = members.swcp.com
title = members.swcp.com
host = members.swcp.com

+ DNS
probe = DNS
menu = DNS Monitoring
title = DNS Monitoring

++ Router
menu = Google
title = Google
lookup = www.google.com
server = resolver.qwest.net

Solution

  • The host field is missing

    From your targets file it looks like there aren't any probe = Curl targets specified, and the DNS probe Router does not have a host field specified, instead it uses the server field. I assume this is what's leading to the "No targets defined" error.

    This is an example of a DNS probe & target I have setup in my own smokeping:

    Probe

    + DNS
    binary = /usr/bin/dig
    lookup = google.com
    pings = 5
    step = 300
    

    Target

    + GoogleDNS1
    menu = Google DNS 1
    title = Google DNS 8.8.8.8
    probe = DNS
    host = 8.8.8.8
    

    As you can see, it uses host instead of server.

    Some relevant docs: