SmokePing integrate with Observium

Observium is a low-maintenance auto-discovering network monitoring platform supporting a wide range of device types, platforms and operating systems including Cisco, Windows, Linux, HP, Juniper, Dell, FreeBSD, Brocade, Netscaler, NetApp and many more. Observium focuses on providing a beautiful and powerful yet simple and intuitive interface to the health and status of your network.

SmokePing keeps track of your network latency:

  • Best of breed latency visualisation.
  • Interactive graph explorer.
  • Wide range of latency measurement plugins.
  • Master/Slave System for distributed measurement.
  • Highly configurable alerting system.
  • Live Latency Charts with the most 'interesting' graphs.
  • Free and OpenSource Software written in Perl written by Tobi Oetiker, the creator of MRTG and RRDtool

1. Install SmokePing.


$ sudo apt-get install smokeping


# yum install smokeping

2. Open with a text editor (joe,nano,pico…) the file:


and add the path to the location where rdd files will be created
$config['smokeping']['dir']     = "/var/lib/smokeping/Observium/";

3. Generate smokeping config for all the host in Observium

php /opt/observium/scripts/generate-smokeping.php > /etc/smokeping/config.d/Targets

If you don't have generate-smokeping.php you can download from here:

On some configurations i get error running the above script and i replace:

foreach (dbFetchRows("SELECT hostname FROM `devices` WHERE `ignore` = 0 AND `disabled` = 0 ORDER BY hostname") as $device){
    echo("++ " . str_replace('.', $config['smokeping']['split_char'], $device['hostname']) . PHP_EOL);
    echo("host = " . $device['hostname'] . PHP_EOL . PHP_EOL);

with :

while($devices = mysql_fetch_assoc($result)){
     echo("++ " . str_replace('.', "_", $devices['hostname']) . PHP_EOL);
     echo("host = " . $devices['hostname'] . PHP_EOL . PHP_EOL); >

4. Restart smokeping

sudo /etc/init.d/smokeping restart

service smokeping restart

If all goes well you'll see a new entry Ping (between Ports and Inventory) in menu in device page.

If you want to see default smokeping page go to http://your_observium/smokeping/smokeping.cgi.
Because this page is not protected you must configure your apache server to allow access from localhost or other ip's or remove smokeping configuration from apache conf.d.


Postări populare de pe acest blog