How to install Smokeping on pfSense 2.2

Since there’s no available package for Smokeping available in pfSense, you have to install it via CLI/FreeBSD package system.
Here’s the way to go:

# pkg install smokeping

The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y

# pkg install apache24

Add following to /etc/rc.conf.local:
smokeping_enable=“YES“
apache24_enable=“YES“

Then:

# cd /usr/local/etc/rc.d/
# mv apache24 apache24.sh
# mv smokeping smokeping.sh

In /usr/local/etc/apache24/httpd.conf add/edit:
Listen 8080

<Directory „/usr/local/smokeping/htdocs“>
Options Indexes FollowSymLinks ExecCGI
AllowOverride None
Require all granted
</Directory>
ScriptAlias /smokeping.fcgi /usr/local/smokeping/htdocs/smokeping.fcgi
Alias /smokeimg/ /usr/local/smokeping/htdocs/img/
Alias /img/ /usr/local/smokeping/htdocs/img/

AddHandler cgi-script .cgi .fcgi

LoadModule cgi_module libexec/apache24/mod_cgi.so

Finally install Postfix Forwarder via WebGUI.

Via CLI again:

# ln -s /usr/local/sbin/sendmail /usr/sbin/sendmail
# chmod 600 /usr/local/etc/smokeping/smokeping_secrets

Now there’s Apache and Smokeping installed and accessible via:

http://:8080/smokeping.fcgi

 

You have to add more hosts on the CLI .. have fun! 🙂