Skip to content
Bots!
Bots!
  • About
    • Myself
    • আমার দোয়া
  • Bookmarks
    • Bookmarks
    • My OCI Bookmarks
    • Useful Proxmox Commands & Links
    • Learning Nano
    • Useful Sites
    • Useful Virtualbox Command
    • Useful MySQL Command
    • Useful Linux Command
    • BTT-CAS
  • Resources
    • Webinar on Cloud Adoption for Project Managers
  • Photos
  • Videos
  • Downloads
Bots!

Install SmokePing on CentOS 7

Rumi, August 6, 2021August 7, 2021

This tutorial explains how to install Tobias Oetiker’s Smokeping into /opt/smokeping on a CentOS 7 box.

Features of Smokeping:
– 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 open-source Software written in Perl written by Tobi Oetiker, the creator of MRTG and RRDtool

Install Development Tools

Load the development tools needed to compile smokeping.

# yum groupinstall "Development tools"

There are also dependencies that will install with these tools.

Enable Epel repo

You can install EPEL by running yum install epel-release. The package is included in the CentOS extras repository, enabled by default.

# yum install epel-release

Install packages

Then install the following packages-

# yum install perl httpd httpd-devel mod_fcgid rrdtool perl-CGI-SpeedyCGI fping rrdtool-perl perl-Sys-Syslog

Add a few of the pre packaged CPAN modules

# yum install perl-CPAN perl-local-lib perl-Time-HiRes

Install smokeping

Now download the latest smokeping package available at http://oss.oetiker.ch/smokeping/pub/
The current version at the time of the writing is 2.6.11

# cd /root
# wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.11.tar.gz

then extract it

# tar xfz smokeping-2.6.11.tar.gz

Install perl modules needed by smokeping

# mkdir /opt/smokeping
# cd smokeping-2.6.11/setup
# ./build-perl-modules.sh
# cd ..
# cp -r thirdparty /opt/smokeping/
# ./configure --prefix=/opt/smokeping
# make install

Configure smokeping

Then you will need to configure smokeping. Find below our sample config in form of a screenshot or download a sample config here.

# vi /opt/smokeping/etc/config

Hint: 10.0.1.251 is the IP of the smokeping host himself.

Create your config from the default config delivered with smokeping and/or use our sample config.

# cd /opt/smokeping/etc
# cp config.dist config
# cp /opt/smokeping/etc/basepage.html.dist /opt/smokeping/etc/basepage.html

Create directories used by smokeping, copy some required files into the public web-directory and set rights for apache user if required.

# mkdir /opt/smokeping/data
# mkdir /opt/smokeping/var
# mkdir /var/www/smokeping
# mkdir /var/www/smokeping/cache
# cp -R /opt/smokeping/htdocs/* /var/www/smokeping
# mv /var/www/smokeping/smokeping.fcgi.dist /var/www/smokeping/smokeping.fcgi
# chown -R apache:apache /var/www/smokeping

Add a virtual apache directory by creating a file on /etc/httpd/conf.d/ with the name smokeping.conf. Add following content to it

Alias /smokeping "/var/www/smokeping"

<Directory /var/www/smokeping>
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex smokeping.fcgi
</Directory>

Restart Apache

# service httpd restart

SELinux

This guide expects SELinux has to be disabled, read following article about disabling SELinux. In case you change your SELinux settings: Make sure you have rebooted your machine to apply the changes.
https://www.centos.org/docs/5/html/5.1/Deployment_Guide/sec-sel-enable-disable.html

Run smokeping

To test the installation, execute following command.

# cd /opt/smokeping
# ./bin/smokeping --config=/opt/smokeping/etc/config --debug

To daemonize smokeping, execute following command:

# cd /opt/smokeping
# ./bin/smokeping --config=/opt/smokeping/etc/config --logfile=smoke.log

Browse to: http://<your_ipaddress>/smokeping

For additional resources have a visit at the authors website:
– http://oss.oetiker.ch/smokeping/

Create smokeping systemd file\

vim /usr/lib/systemd/system/smokeping.service
[Unit]
Description=Smokeping Server
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=simple
ExecStart=/opt/smokeping/bin/smokeping --nodaemon --config=/opt/smokeping/etc/config --logfile=/var/log/smokeping.log

[Install]
WantedBy=multi-user.target

Restart Services (even during any updates in the config file- remember to restart both smokeping and httpd services)
systemctl start smokeping && systemctl enable smokeping
systemctl restart httpd

Special Hint:

In case your graphics for the last 3 hours didnt get updated but all the other timeframes are updated normaly, you may experience an error from the compiler. In this case please try to execute smokeping like this:

# perl /opt/smokeping/bin/smokeping --config=/opt/smokeping/etc/config --logfile=smoke.log

Issue while define ‘smokeping_secrets’

# chmod og-rw /usr/src/smokeping-2.3.6/etc/smokeping_secrets

Src:

How to install SmokePing on CentOS 7


https://smokeping-users.oetiker.narkive.com/DmlABgVP/issue-while-define-smokeping-secrets
https://bidhankhatri.com.np/network/smokeping-2.7.3/

Administrations Collected Articles Configurations (Linux) CactiCentOS 7

Post navigation

Previous post
Next post

Comments (3)

  1. Chorn Sam says:
    February 1, 2023 at 3:38 pm

    ./bin/smokeping –config=/opt/smokeping/etc/config –debug
    ERROR: /opt/smokeping/etc/config, line 6: File ‘/usr/sbin/sendmail’ does not exist

    Reply
    1. Rumi says:
      February 6, 2023 at 4:53 pm

      You can comment this out or install postfix to resolve

      Reply
  2. Chorn Sam says:
    February 2, 2023 at 11:02 am

    [root@smp smokeping]# ./bin/smokeping –config=/opt/smokeping/etc/config –debug
    ERROR: /opt/smokeping/etc/config, line 6: File ‘/usr/sbin/sendmail’ does not exist

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Myself…

Hi, I am Hasan T. Emdad Rumi, an IT Project Manager & Consultant, Virtualization & Cloud Savvyfrom Dhaka, Bangladesh. I have prior experience in managing numerous local and international projects in the area of Telco VAS & NMC, National Data Center & PKI Naitonal Root and CA Infrastructure. Also engaged with several Offshore Software Development Team.

Worked with Orascom Telecom-Banglalink, Network Elites as VAS partner, BTRC, BTT (Turkey) , Mango Teleservices Limited and Access to Informaiton (A2I-UNDP)

Currently working at Oracle Corporation as Principal Technology Solution and Cloud Architect.

You can reach me [h.t.emdad at gmail.com] and I will be delighted to exchange my views.

Tags

Apache Bind Cacti CentOS CentOS 6 CentOS 7 Debain Debian Debian 10 Debian 11 Debian 12 DKIM Docker endian icinga iptables Jitsi LAMP Letsencrypt Linux Munin MySQL Nagios Nextcloud NFS nginx pfsense php Postfix powerdns Proxmox RDP squid SSH SSL Ubuntu Ubuntu 16 Ubuntu 18 Ubuntu 20 Varnish virtualbox vpn Webmin XCP-NG zimbra

Topics

Recent Posts

  • Install Jitsi on Ubuntu 22.04 / 22.10 April 30, 2025
  • Key Lessons in life April 26, 2025
  • Create Proxmox Backup Server (PBS) on Debian 12 April 19, 2025
  • Add Physical Drive in Proxmox VM Guest April 19, 2025
  • Mount a drive permanently with fstab in Linux April 16, 2025
  • Proxmox 1:1 NAT routing March 30, 2025
  • Installation steps of WSL – Windows Subsystem for Linux March 8, 2025
  • Enabling Nested Virtualization In Proxmox March 8, 2025
  • How to Modify/Change console/SSH login banner for Proxmox Virtual Environment (Proxmox VE / PVE) March 3, 2025
  • Install Proxmox Backup Server on Debian 12 February 12, 2025

Archives

Top Posts & Pages

  • Install Jitsi on Ubuntu 22.04 / 22.10
©2025 Bots! | WordPress Theme by SuperbThemes