Si Kecil Hasna

Desember 15, 2011

Install Smokepi…

Filed under: Tak terkategori — pilalilis @ 9:42 am

Install Smokeping on FreeBSD

SmokePing is a latency logging and graphing system. It consists of a daemon process which organizes the latency measurements and a CGI which presents the graphs. With SmokePing you can measure latency and packet loss in your network. SmokePing uses RRDtool to maintain a longterm datastore and to draw pretty graphs giving up to the minute information on the state of each network connection.

This page contains information that has been adapted and referenced from the official Smokeping website found here, and also from linux dictionary found here.

Requirements

  • Apache Webserver
  • Perl
  • RRDtool
  • FPing
  • SpeedyCGI
  • CGI::Carp
  • EchoPing (Optional)
  • Curl (Optional)
  • dig (Optional)
  • SSH (Optional)
  • Various Perl modules (Most of these are optional)
  1. libwww-perl
  2. Socket6 0.11-1
  3. Net::Telnet
  4. Net::DNS
  5. Net::LDAP
  6. IO::Socket::SSL
  7. Authen::Radius

The installation details of the Apache Webserver package are found on the Nagios on FreeBSD® 7.2 page.

The installation details of the Perl package are found on the FreeBSD 7.2 page.

The installation details of the RRDtool package are found on the Cacti on FreeBSD® 7.2 page.

The FPing package was installed by default during the installation of nagios found on the Nagios on FreeBSD® 7.2 page.

Installation

Install smokeping using the following commands:

cd /usr/ports/net-mgmt/smokeping/

make install clean


fig.1
Select the defaults in the configurations options menu that appears for smokeping.


fig.2
Select the defaults in the configurations options menu that appears for p5-CGI-SpeedyCGI.


fig.3


fig.4

Configuration

config file

The Smokeping configuration files are found at the /usr/local/etc/smokeping/ directory. We will configure the Smokeping install by editing the /usr/local/etc/smokeping/config file. Open the /usr/local/etc/smokeping/config file using the following command.

ee /usr/local/etc/smokeping/config

fig.5

General Section

In the General section, edit the entries to suit your configuration or as shown. The main entries to edit are:

  • owner
  • contact
  • mailhost
  • sendmailcgiurl


fig.6

Alerts Section

In the Alerts section, edit the to and from entries to suit your configuration or as shown.