0.1 Installing SmokePing as a Slave

Instructions tested on Ubuntu 8.10 Server ONLY

Run all commands as root ($ sudo -s, then run all commands)

  1. SLAVE Setup Instructions

Setup Smokeping

# apt-get install smokeping

Create a file containing a password to be used as a shared secret

#  pico /etc/smokeping/slave_secret

Set appropriate permissions on this file

# chmod 600 /etc/smokeping/slave_secret
# chown smokeping:root /etc/smokeping/slave_secret

Create the cache directory and set appropriate persmissions

# mkdir /var/smokeping
# chown smokeping:root /var/smokeping

Modify the init.d Daemon script so /etc/init.d/smokeping start | stop | restart works

# pico /etc/init.d/smokeping

Change "MODE=master" to "MODE=slave" Change DAEMON_ARGS="" to "DAEMON_ARGS="--master-url=http:///" --cache-dir=/var/smokeping/ --shared-secret=/etc/smokeping/slave-secret"

Restart SmokePing

# /etc/init.d/smokeping restart
  1. MASTER Setup Instructions

Create a file containing the password to be used as a shared secret

# pico /etc/smokeping/master_secrets

Set appropriate permisssions on this file

# chmod 640 /etc/smokeping/master_secrets
# chown www-data:root /etc/smokeping/master_secrets

Modify the SmokePing Slaves configuration file

# pico /etc/smokeping/config.d/Slaves

+myhostname display_name=myhostname color=0000ff ------

Modify the SmokePint Targets configuration file

# pico /etc/smokeping/config.d/Targets

Restart SmokePing

# /etc/init.d/smokeping stop
# /etc/init.d/smokeping start