Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Sep 2007 22:42:19 +0200
From:      Mel <fbsd.questions@rachie.is-a-geek.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Smokeping HELP
Message-ID:  <200709062242.19418.fbsd.questions@rachie.is-a-geek.net>
In-Reply-To: <000601c7f0c1$dd63d450$180ca8c0@arm.synisys.com>
References:  <000001c7f0b9$b1abc9b0$180ca8c0@arm.synisys.com> <200709062143.46322.fbsd.questions@rachie.is-a-geek.net> <000601c7f0c1$dd63d450$180ca8c0@arm.synisys.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 06 September 2007 22:09:39 Narek Gharibyan wrote:

> It is a outgoing connection monitoring soft for FreeBSD (as I understood
> :)) Uptime/delay/loss/avg and plus it keep all info in a database, do
> mailing, has a web interface with cgi support. Cool port.

Sounds cool indeed. And it's in ports (good to know).

> I couldn't configure it because I am a newbie in Apache, and never install
> such soft in FreeBSD.

Good to know too. Makes it easier to help you, when we know what you're 
familiar with.

> I tried to configure but the structure of .conf file 
> confused me plus it wont start without any error (I didn't change anything
> after install).

OK, I just installed it, pkg-message said:
NOTE: A set of sample configuration files have been installed:

  /usr/local/etc/smokeping/config
  /usr/local/etc/smokeping/smokemail
  /usr/local/etc/smokeping/basepage.html
  /usr/local/etc/smokeping/tmail

You *MUST* edit these to suit your requirements. Please read the
manpages 'smokeping_install' and 'smokeping_config' for further
details on installation and configuration.

Looking at that by man smokeping_install it looks very detailed, but if you've 
never set up anything with apache can be quite hard.

A quick glance tells me that the port took care of most of the installation 
already. The only thing that's left is configuration of above mentioned 
files, which only you can do.

To get it working fast:
in /usr/local/etc/smokeping/config, change line:
cgiurl   = http://people.ee.ethz.ch/~oetiker/smokeping/smokeping.cgi
to:
cgiurl   = http://your.web.server/cgi/smokeping.cgi

Then edit /usr/local/etc/apache/httpd.conf:
Add the following line:
ScriptAlias /cgi/smokeping.cgi /usr/local/smokeping/htdocs/smokeping.cgi

(There's another ScriptAlias line in the default httpd.conf, so you can put 
this line right below or above that).

Now things *should* work. If not, read the manpage smokeping_config carefully 
or report any errors you get to the list.
-- 
Mel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709062242.19418.fbsd.questions>