LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-15-2013, 06:33 PM   #1
dh2k
Member
 
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 203

Rep: Reputation: 44
smokeping on slackware


Hi forum,

I am creeping slowly into dependency hell with slack' trying to install smokeping.

it looks horribly like I may be forced to use another dist (Ubuntu?) so I can set up a smokeping server and a cgi web interface - any experience/help in getting slackware to support this is appreciated.

I have tried cpan to get modules installed too, to no avail.

http://oss.oetiker.ch/smokeping/doc/...nstall.en.html



Also smokeping homepage
Code:
....
checking checking for gnu make availablility... /usr/bin/gmake is GNU make
checking checking for perl module 'RRDs'... Ok
checking checking for perl module 'FCGI'... Failed
checking checking for perl module 'CGI'... Ok
checking checking for perl module 'CGI::Fast'... Failed
checking checking for perl module 'Config::Grammar'... Failed
checking checking for perl module 'Digest::HMAC_MD5'... Failed
checking checking for perl module 'LWP'... Ok

** Aborting Configure ******************************

   If you know where perl can find the missing modules, set
   the PERL5LIB environment variable accordingly.

   FIRST though, make sure that 'perl' starts the perl
   binary you want to use for SmokePing.

   Now you can install local copies of the missing modules
   by running

     ./setup/build-perl-modules.sh /opt/smokeping/thirdparty

   The RRDs perl module is part of RRDtool. Either use the rrdtool
   package provided by your OS or install rrdtool from source.
   If you install from source, the RRDs module is located
   PREFIX/lib/perl

root@1000H:
 
Old 06-16-2013, 02:01 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 1,991

Rep: Reputation: Disabled
This is not really a Slackware dependency; it's a Perl modules issue.

Installing the necessary Perl modules with CPAN should work:
Code:
~# perl -MCPAN -e shell
Run the above command as root. If you've never used CPAN before, you'll be guided through some configuration steps. The defaults should be fine. One you're done, use the install command to download and install the missing modules:
Code:
install FCGI
install CGI::Fast
install Config::Grammer
install Digest::HMAC_MD5
The above was tested and found to work on Slackware 14.0.

As for RRDTool, the main site is here. It's a (relatively) simple matter of downloading the source and running ./configure && make && make install. This should work (again, you will need to be root to perform the final install step):
Code:
cd /usr/src
wget -q -O - http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.8.tar.gz | tar xzv
cd rrdtool-1.4.8
./configure --prefix=/usr --sysconfdir=/etc && make && make install
(As RRDTool can be considered a shared component, I usually install directly to /usr. A good argument can be made for installing to /usr/local instead, in order to separate it from "native" Slackware components. Others prefer to create a subdirectory under /opt. In any case, just change the --prefix parameter to point to your directory of choice.)
 
Old 06-16-2013, 07:59 AM   #3
Celyr
Member
 
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 314

Rep: Reputation: 77
There is a slackbuild for rrdtool, also you can use sbopkg if you like.
 
Old 06-16-2013, 08:12 AM   #4
dh2k
Member
 
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 203

Original Poster
Rep: Reputation: 44
Thanks for the explain' RE: the difference of dependencies and perl modules. I have built and installed smokeping and now config'ing. Will mark as solved once I have cgi up and tested. Thanks.
 
Old 06-18-2013, 07:55 AM   #5
dh2k
Member
 
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 203

Original Poster
Rep: Reputation: 44
I have config'ed using smokeping homepage guide, then several others via google search etc;

I am getting a 403 forbidden when trying to browse to the url I have added to the apache alias (in this instance, http://127.0.1.1/smokeping)

Any experience on this forum? - searches yield distribution specific threads on other forums but do not work when followed???

even as (web browser) root it fails with 403 forbidden?

Last edited by dh2k; 06-18-2013 at 08:01 AM.
 
Old 06-18-2013, 08:10 AM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 1,991

Rep: Reputation: Disabled
The user starting the web browser is not relevant, as the HTTP request is not authenticated.

The web browser contacts the web server (apache), which in turn tries to access and serve the files from the relevant directory. Apache on Slackware runs as the "apache" user. Does this user have access to the Smokeping files?
 
Old 06-18-2013, 09:30 AM   #7
dh2k
Member
 
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 203

Original Poster
Rep: Reputation: 44
I have 'chown -R apache.apache /path/to/smokeping/data'
and 'chown -R apache.apache /opt/smokeping/'

restarted servers/daemons but still getting the 403

Last edited by dh2k; 06-18-2013 at 09:33 AM.
 
Old 06-18-2013, 11:19 AM   #8
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
Is smokeping (I have never used it) a perl script using apache's mod_perl?
If yes, the latest mod_perl isn't compatible yet with httpd-2.4.x in slackware >= 14.0, supposing you're using that (we talked a little about it here in the forum), so you have to rebuild yourself httpd-2.2.x and then mod_perl.
 
Old 06-19-2013, 10:20 AM   #9
dh2k
Member
 
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 203

Original Poster
Rep: Reputation: 44
smokeping uses (fast)CGI (smokeping_cgi)for its' (SmokePing) webfrontend.
homepage: http://oss.oetiker.ch/smokeping/index.en.html
http://oss.oetiker.ch/smokeping/doc/index.en.html


I'm following the config docs closely but I just cannot begin to understand why I am still getting the 403.

Has anyone manage to config and use smokeping on slack'?
 
Old 09-19-2013, 02:41 AM   #10
dh2k
Member
 
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 203

Original Poster
Rep: Reputation: 44
I have smokeping working; when I make time for it, I will post a quick reference guide, update to follow!
 
Old Today, 08:14 AM   #11
slacktroll
Member
 
Registered: May 2011
Distribution: Slackware 14.0 on Thinkpad X60
Posts: 58

Rep: Reputation: 3
/etc/httpd/httpd.conf
fix this -> LoadModule cgi_module lib/httpd/modules/mod_cgi.so

Alias /smokeping /opt/smokeping-2.6.9/htdocs
<Directory /opt/smokeping-2.6.9/htdocs>
Require all granted
AllowOverride none
Options Indexes FollowSymLinks ExecCGI
AddHandler cgi-script .cgi .fcgi
DirectoryIndex index.html smokeping.fcgi
</Directory>

chown -R apache /opt/smokeping-2.6.9/*

Last edited by slacktroll; Today at 08:17 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Smokeping does not ping different subnets dopisnik Linux - Networking 0 06-13-2010 04:59 AM
smokeping issues lendlice Linux - Server 0 09-08-2008 03:44 AM
smokeping question hb21l6 Linux - Software 1 06-30-2008 04:50 AM
smokeping Can't locate BER.pm in @INC kissfreeman Slackware 2 05-27-2008 12:51 AM
smokeping / cgi error djn3xt Linux - Networking 0 12-09-2005 07:13 AM


All times are GMT -5. The time now is 11:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration