[smokeping-users] Smokeping Master/Slave

Tobias Oetiker tobi at oetiker.ch
Mon Mar 10 11:56:37 CET 2008


Hi Shawn,

there were a few fixes to master/slave in the last few days. I have
just pushed 2.3.3 out, so before you try any further, make sure you
got the latest code !

cheers
tobi

Today Shawn Rose wrote:

> Hello,
>
> I'm attempting to get Master/Slave working using the latest version
> 2.003002, debian package.
>
> I have simplified my config to avoid confusion. I took out the domain
> and nameserver info as it is not important, and is correct. Here is
> what I have configured.
>
> Both the master and slave start without error. If I don't set
> masterpoll, the master probes no problem. I should also mention both
> machines are identical ( virtual machines )
>
> I have my slave and master to debug. And I can see that the slave gets
> it config, and in debug mode you can see the pings happening. (I have
> included a snippet of the log at
> the bottom). Also I can see the packets flow, between the two systems
> using tcpdump
>
> The master, appears not to be picking up the slave data, even though
> it is being sent to the master.
>
> Below is my configuration.
>
>
> On the master.
>
> /etc/defaults/smokeping
> ----------------------------------------
> MODE=master
>
>
> Declare my slave
> ----------------------------------------
> Under ***Targets***
>
> slaves = njsmoke
>
>
> Under ***Targets*** declare my menu, and my probe
> ---------------------------------------
>
> + DataCenters
>
> menu = DataCenters
> title = Data Centers
>
>                #
>                ++ Nodes
>
>                menu = Nodes
>                title = Node Monitoring
>                        #
>                        +++ d0org
>
>                        slaves = njsmoke
>                        nomasterpoll = yes
>                        probe = DNS
>                        host = *nameserver*
>                        lookup = www.pir.org
>                        pings = 5
>                        server = *nameserver*
>
>                        +++ bull
>
>                        slaves = njsmoke
>                        nomasterpoll = yes
>                        title = domain
>                        menu = domain
>                        host = domain.ca
>
>                #DNS Node MENU END
>        #NJ MENU END
> #MAIN MENU ENDS
>
> ---------------------------------------------
>
> My Slave Declation
> --------------------------------------------
> *** Slaves ***
> secrets=/etc/smokeping/slavesecrets.conf
>
> +njsmoke
>
> display_name=New Jersey
> location=peer1
> color=ff1100
>
> ++override
>
>
> My slave configuration
>
> On my slave /etc/default/smokeping
> ----------------------------------------------
>
> MODE=slave
> MASTER_URL=http://smokeping/cgi-bin/smokeping.cgi
> SHARED_SECRET=/etc/smokeping/slavesecrets.conf
> SLAVE_NAME=njsmoke
>
>
> My slave log file
> -----------------------------------------------
> Mar  9 07:49:00 njsmoke smokeping[31164]: DNS: forks 5, timeout for
> each target 76
> Mar  9 07:49:00 njsmoke smokeping[31439]: DNS: query=/usr/bin/dig
> @nameserver www.pir.org
> Mar  9 07:49:00 njsmoke smokeping[31164]: DNS: nameserver: got
> 1.7000000000e-02 1.9000000000e-02 2.0000000000e-02 2.0000000000e-02
> 2.1000000000e-02
> Mar  9 07:49:00 njsmoke smokeping[31164]: Sent data to Server. Server said OK
> Mar  9 07:49:00 njsmoke smokeping[31164]: DNS: Sleeping 120 seconds.
> Mar  9 07:49:23 njsmoke smokeping[31163]: FPing: Executing
> /usr/bin/fping -C 20 -q -B1 -r1 -i10 localhost domain.ca
> Mar  9 07:49:42 njsmoke smokeping[31163]: FPing: Got fping output:
> 'localhost   : 0.09 0.06 0.06 0.06 0.08 0.06 0.06 0.06 0.06 0.06 0.05
> 0.06 0.06 0.06 0.06 0.06 0.06 0.06 0.09 0.06'
> Mar  9 07:49:42 njsmoke smokeping[31163]: FPing: Got fping output:
> 'bulldoze.ca : 53.29 56.48 62.58 60.54 56.40 52.98 48.08 54.31 54.54
> 54.59 53.94 56.90 54.49 55.16 53.98 52.80 56.17 43.74 53.46 49.62'
> Mar  9 07:49:42 njsmoke smokeping[31163]: Sent data to Server. Server said OK
>
>
> Any help would be greatly appreciated. If you need any more info
> please let me know.
>
> --
> Check out
>
> http://www.bulldoze.ca
> http://www.dirkadirka.ca
>
> Cheers
> Shawn Rose
>
> _______________________________________________
> smokeping-users mailing list
> smokeping-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi at oetiker.ch ++41 62 213 9902



More information about the smokeping-users mailing list