Forge Home

smokeping

SmokePing module for master/slave or single instance

24,412 downloads

6,876 latest version

4.4 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 999.999.999 (latest)
  • 1.7.2
  • 1.7.1
  • 1.7.0
  • 1.6.0
  • 1.5.0
  • 1.0.0
released Feb 18th 2016
This version is compatible with:
This module has been deprecated by its author since May 15th 2020.

The author has suggested puppet-smokeping as its replacement.

Start using this module

Documentation

tobru/smokeping — version 1.7.2 Feb 18th 2016

SmokePing Puppet module

Puppet module to completely manage a SmokePing installation. Includes managing of Master/Slave installation and the menu hierarchy.

Some background information can be found here: Puppet module to manage SmokePing

Features

  • Master/Slave/Standalone SmokePing configuration possible
  • Menu hierarchy implemented
  • Define Probes and Alert patterns
  • Config files managed with templates
  • Uses exported resources to configure Slaves on the Master (tag: smokeping-slave)
  • Automatically generates a shared secret for Master/Slave configuration (tag: smokeping-slave-secret)

Supported Platforms

Fully supported:

  • Ubuntu (Tested on 12.04, 14.04)

Standalone Only (no master/slave support yet):

  • Fedora 22+
  • CentOS 7+ (Note: requires third party repository to provide smokeping package).

Dependencies

Example

Standalone SmokePing instance

# install a standalone instance on a server with default values (see init.pp for 
# parameter documentation
class { '::smokeping':
    mode => 'standalone',
}

Master SmokePing instance

# install a master instance on a server with default values (see init.pp for 
# parameter documentation. You must have a slave, or this will not work!
class { '::smokeping':
    mode => 'master',
}

Slave SmokePing instance

class { '::smokeping':
    mode           => 'slave',
    slave_name     => $::hostname,
    master_url     => 'http://myserver.tld/smokeping/smokeping.cgi',
    slave_location => 'zurich',
}

This configures the server as slaves and adds the slave definition automatically to the master using exported resources.

Probes

$probes = [
    { name => 'FPing', binary => '/usr/bin/fping' },
    { name => 'FPing6', binary => '/usr/bin/fping6' },
]
Class['::smokeping'] {
  probes => $probes
}

Alerts

$alerts = [ {
  { name    => 'bigloss',
  type    => 'loss',
  pattern => '==0%,==0%,==0%,==0%,>0%,>0%,>0%',
  comment => 'suddenly there is packet loss' },

  { name    => 'startloss',
  type    => 'loss',
  pattern => '==S,>0%,>0%,>0%',
  comment => 'loss at startup' },

  { name    => 'noloss',
  type    => 'loss',
  pattern => '>0%,>0%,>0%,==0%,==0%,==0%,==0%',
  comment => 'there was loss and now its reachable again' },
] }
Class['::smokeping'] {
  alerts => $alerts
}

Targets

# Top Level
smokeping::target { 'World':
    menu      => 'World',
    pagetitle => 'Connection to the World',
    alerts    => [ 'bigloss', 'noloss' ]
}

smokeping::target { 'GoogleCH':
    hierarchy_parent => 'World',
    hierarchy_level  => 2,
    menu             => 'google.ch',
    pagetitle        => 'Google',
}
smokeping::target { 'GoogleCHIPv4':
    hierarchy_parent => 'GoogleCH',
    hierarchy_level  => 3,
    menu             => 'google.ch IPv4',
    host             => 'google.ch',
    slaves           => ['slave1'],
}
smokeping::target { 'GoogleCHIPv6':
    hierarchy_parent => 'GoogleCH',
    hierarchy_level  => 3,
    menu             => 'google.ch IPv6',
    host             => 'google.ch',
    probe            => 'FPing6'
    slaves           => ['slave1'],
}
smokeping::target { 'GoogleCHCurl':
    hierarchy_parent => 'GoogleCH',
    hierarchy_level  => 3,
    menu             => 'google.ch Curl',
    host             => 'google.ch',
    probe            => 'Curl',
    options          => {
      urlformat => 'http://%host%/',
    }
}

License / Author

The module is written by

Licensed under Apache License, Version 2.0, Copyright 2015 by Tobias Brunner

Contibutors

See: Github Contributors