[smokeping-users] New User and Trying to setup a Master/Slave topology

staticsafe me at staticsafe.ca
Wed Apr 10 23:19:19 CEST 2013


On 4/10/2013 17:10, Trash NMICHEL wrote:
> Hey guys.
> 
> I am a new member that discovered this AWESOME tool today. I m going to use
> it at every customer that I ll visit for sure because it gives so much
> visibility on the network.
> I am a network engineer located in Switzerland and specialized into
> Routing/Switching , Security and also VoIP. I have very small experience
> with Linux so please forgive me for that :)
> 
> 
> I have been running Smokeping on Ubuntu server 12.04 LTS 64 bit today and I
> would like to implement the Master/Slave topology
> 
> I understood from the documentation that the slave will get his
> configuration from the master here is what I did :
> 
> 
> - Install Smokeping on both server: I got graphs working to the localhost
> so hence the RDD is OK
> - MASTER
> 
> Created */etc/smokeping/slavesecrets.conf *and /etc/smokeping/slave-secrets
> 
> did a vim on slavesecrets and added the key : test
> did a vim on slave-secret and added the text : ubuntu.local:test
> 
> Modified the /etc/smokeping/Slave to have the
> +slave
> display_names=ubuntu text.
> color=blablabla
> 
> Modified the Target in order to push the config to the slave :
> ++ Site 1
> menu = Corp
> title = CORP - slave1.test.com
> host = X.X.X.X
> slaves =  ubuntu
> 
> 
> 
> 
> 
> - SLAVE
> 
> /etc/default/smokeping: Startup configuration for smokeping(1)
> #
> # select master or slave mode
> MODE=slave
> # in master mode, the rest of the configuration is in
> # /etc/smokeping/config
> #
> # in slave mode, uncomment and set the following variables too
> # see smokeping(1)
> #
> # Mandatory configuration
> MASTER_URL=http://x.x.x.x/cgi-bin/smokeping.cgi
> SHARED_SECRET=/etc/smokeping/slavesecrets.conf
> #
> # Optional configuration
> SLAVE_NAME=ubuntu
> 
> 
> *touch and vim /etc/smokeping/slavesecrets.conf in order to have the same
> secretkey : test
> *
> 
> 
> 
> *Now it is clearly not working and I have no idea why ... can someone
> provide some insights and let me know what they think ?
> 
> Thanks a lot for the help provided
> 
> Nicolas

It is not working because you specified the name of the slave wrong in
/etc/smokeping/Slave.

You put "slave" as the name of the slave. Here is an example of a slave
from my config:

+ferrovax
display_name=ferrovax (LA, USA)
color=b95de6
location=LA,CA,USA

The first line in that excerpt defines the name of the slave you put in
/etc/defaults/smokeping on the slave host. So in your case it would be
"+ubuntu".


-- 
staticsafe
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Please don't top post - http://goo.gl/YrmAb
Don't CC me! I'm subscribed to whatever list I just posted on.



More information about the smokeping-users mailing list