Jonte Regnéll | 2 Feb 05:34 2009

Re: Installing and getting Smokeping to run on Fedora 10

Hi Everyone,

I email this directly to Guy cause I have in the past I have failed to
join the list, today the join worked so here is what I sent. I have
included what I sent him at the bottom of this post.

I would like to do a few more observations while I'm at it. First off 'Hi'
to everyone. I'm one of those annoying people that like Redhat and it's
derivatives like CentOS.

Fedora 10 come with SElinux which is great at keeping security. While
outside of the scope of this list please make sure that it's not
interfering with other 'permissions' on the system.
"/usr/sbin/sestatus" should tell how your system looks. If you go with the
RPM listed below it should make the necessary changes for everything to
work smoothly, if you use the tgz you are on your own and should probably
turn off SElinux at least while your testing "/usr/sbin/setenforce 0" but
doing so will make your system "more" vulnerable then it with SElinux
enabled, it's your call.

If you still looking for your RRDs.pm you probably want to make sure you
have the rrdtool-perl rpm installed "rpm -qi rrdtool-perl" should show you
if it's on your system. "rpm -ql rrdtool-perl|grep RRDs.pm" should tell
you where it got installed by the rpm. But more to the point if you use
yum to install the smokeping rpm, or that don't work in Fedora 10 you can
always pull that rpm to your system and do an "yum --localinstall
smokeping-2.4.2-7.fc10.noarch.rpm" and yum will take care of all
dependency.

Last but not least this all works great for CentOS too, I use the above
(Continue reading)

Guy Lajeunesse | 3 Feb 04:35 2009
Picon

Re: Smokeping on fedora10

Thanks Jonte!!  It's practically working! :)
 
I'm just having problems with permissions on the folder that keeps the data.  Also, the images that appear on the smokeping page (counter) all I get are x's where the pictures(graphs) should be... I checked the apache error logs... gonna have to work on that.
 
My _chartscache is located here:  /var/www/html/smokeping/img  when I put a test html file, I get error 403.. so I know it's a permission problem.
 
If anyone has some recommendations, I'd be glad to hear them... but I'll be trying to figure it all out anyways...
 
Thanks for all your help... the rpm was nice and easy :)  I started to manually install, ./configure etc.. man.. way too many dependencies, then more dependencies to get other dependencies to work!! wtf! :P  he he..
 
Guy :)

On Sun, Feb 1, 2009 at 7:32 PM, Jonte Regnéll <jonte.regnell <at> yojimbo.org> wrote:

Hi Guy,

sorry to email you directly but for some reason I can't join the smokeping
list.

Smokeping is available for Fedora 10 as an RPM, please use that instead of
the old 2.0.9 that sits in Tobies contrib.

http://download.fedora.redhat.com/pub/fedora/linux/releases/10/Everything/i386/os/Packages/smokeping-2.4.2-7.fc10.noarch.rpm

Hope that's helpful, enjoy and good luck.

Regards,
  Jonte.

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Jonte Regnéll | 3 Feb 06:48 2009

Re: Smokeping on fedora10

Hi Guy,

> Thanks Jonte!!  It's practically working! :)

Excellent.

> I'm just having problems with permissions on the folder that keeps the
> data.  Also, the images that appear on the smokeping page (counter) all I
> get are x's where the pictures(graphs) should be... I checked the apache
> error logs... gonna have to work on that.
>
> My _chartscache is located here:  /var/www/html/smokeping/img  when I put
> a test html file, I get error 403.. so I know it's a permission problem.
>
> If anyone has some recommendations, I'd be glad to hear them... but I'll
> be trying to figure it all out anyways...
>
> Thanks for all your help... the rpm was nice and easy :)  I started to
> manually install, ./configure etc.. man.. way too many dependencies, then
> more dependencies to get other dependencies to work!! wtf! :P  he he..

  Good to hear you found the RPM useful. I do think you have a slightly
mixed configuration at the moment. Your "_chartscache_", which I presume
is the "_imgcache_" variable in your config, makes me think you haven't
given up your old hand rolled attempt completely.

  The location you list above would on a normal server end up as
http://localhost/smokeping/img assuming your webroot is /var/www/html.
When you installed the RPM you get an apache application config file
installed into /etc/httpd/conf.d called smokeping. It will configure
your apache server how to work with the installed smokeping setup.
Unless you have edited this file, and I will for the time being assume
that you haven't, there is an Alias that point /smokeping to
/usr/share/smokeping/htdocs and there is no img folder in there which is
why you see the 403 error.
You prob want to create the proper fqdn URL to the last two redirect
statements here, but it's really more of old legacy support.

Try starting over from scratch and rename all the *.rpmnew files to there
original name, it should start working easily after you provide the basic
changes to this like the actual fqdn part of the cgiurl, Owner and contact
etc.

When you are done the URL for your installation should be
http://your.fqdn.goes.here.com/smokeping/sm.cgi

Please remember that smokeping works in two steps. You have the collector
which does all the work, it stores it in rrdtool databases. The last and
final step is the web interface which just creates the graphs you are
asking it for.

You might want to enable the process to launch on startup
"/sbin/chkconfig smokeping on" And to test to launch it once you changed
your config to what you think it should be "/sbin/services smokeping
start"
as the sm.cgi script reads the config file too and starting the service is
a good way to make sure the syntax is of the file is correct.

BTW another issue, you might want to speed up the page with mod_perl.
Just "yum install mod_perl" and you've done the hard part. Then in the
conf.d/smokeping file you need to add this to the "<Directory
"/usr/share/smokeping" >" declaration.

---
  SetHandler perl-script
  PerlResponseHandler ModPerl::Registry
  PerlOptions +ParseHeaders
---

Please notice that with mod_perl (as for any cgi speedup process) you will
need to restart the webserver (as well as the normal need to restart
smokeping) before any changes to your "config" file takes effect. So apply
it only once your done making changes to your smokeping setup.

YMMV but I hope that someone finds this helpful, enjoy and good luck.

Regards,
  Jonte.

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Guy Lajeunesse | 3 Feb 19:33 2009
Picon

Re: Smokeping on fedora10

See >> below...

On 2/3/09, Jonte Regnéll <jonte+smokeping <at> yojimbo.org> wrote:
Hi Guy,

> Thanks Jonte!!  It's practically working! :)

Excellent.

> I'm just having problems with permissions on the folder that keeps the
> data.  Also, the images that appear on the smokeping page (counter) all I
> get are x's where the pictures(graphs) should be... I checked the apache
> error logs... gonna have to work on that.
>
> My _chartscache is located here:  /var/www/html/smokeping/img  when I put
> a test html file, I get error 403.. so I know it's a permission problem.
>
> If anyone has some recommendations, I'd be glad to hear them... but I'll
> be trying to figure it all out anyways...
>
> Thanks for all your help... the rpm was nice and easy :)  I started to
> manually install, ./configure etc.. man.. way too many dependencies, then
> more dependencies to get other dependencies to work!! wtf! :P  he he..

Good to hear you found the RPM useful. I do think you have a slightly
mixed configuration at the moment. Your "_chartscache_", which I presume
is the "_imgcache_" variable in your config, makes me think you haven't
given up your old hand rolled attempt completely.

The location you list above would on a normal server end up as
http://localhost/smokeping/img assuming your webroot is /var/www/html.
When you installed the RPM you get an apache application config file
installed into /etc/httpd/conf.d called smokeping. It will configure
your apache server how to work with the installed smokeping setup.
Unless you have edited this file, and I will for the time being assume
that you haven't, there is an Alias that point /smokeping to
/usr/share/smokeping/htdocs and there is no img folder in there which is
why you see the 403 error.
You prob want to create the proper fqdn URL to the last two redirect
statements here, but it's really more of old legacy support.

Try starting over from scratch and rename all the *.rpmnew files to there
original name, it should start working easily after you provide the basic
changes to this like the actual fqdn part of the cgiurl, Owner and contact
etc.

When you are done the URL for your installation should be
http://your.fqdn.goes.here.com/smokeping/sm.cgi

Please remember that smokeping works in two steps. You have the collector
which does all the work, it stores it in rrdtool databases. The last and
final step is the web interface which just creates the graphs you are
asking it for.

You might want to enable the process to launch on startup
"/sbin/chkconfig smokeping on" And to test to launch it once you changed
your config to what you think it should be "/sbin/services smokeping
start"
as the sm.cgi script reads the config file too and starting the service is
a good way to make sure the syntax is of the file is correct.
 
 
>> I try to put what you typed below into the smokeping.conf file, but then I can't get to the page.
 
>>Where exactly does it go?  Between <Directory "/usr/share/smokeping"> and </Directory> ?
 
>>Can you give me an example?  Otherwise, everything looks great right now :)

BTW another issue, you might want to speed up the page with mod_perl.
Just "yum install mod_perl" and you've done the hard part. Then in the
conf.d/smokeping file you need to add this to the "<Directory
"/usr/share/smokeping" >" declaration.

---
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
---

Please notice that with mod_perl (as for any cgi speedup process) you will
need to restart the webserver (as well as the normal need to restart
smokeping) before any changes to your "config" file takes effect. So apply
it only once your done making changes to your smokeping setup.

YMMV but I hope that someone finds this helpful, enjoy and good luck.

Regards,
Jonte.

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Guy Lajeunesse | 3 Feb 20:48 2009
Picon

Re: Smokeping on fedora10

new problem...  I can view the smokeping page perfectly from localhost, but from the internet, I get:

Forbidden

You don't have permission to access /smokeping/sm.cgi on this server.

If I check the apache error log, I get: Client denied by server configuration: /usr/share/smokeping/htdocs/smokeping.cgi
 
Is this a permission issue?  How do I get it to work from the internet?
 
Thanks! :)
 
Guy

 
On 2/3/09, Guy Lajeunesse <glajeunesse <at> gmail.com> wrote:
See >> below...

On 2/3/09, Jonte Regnéll <jonte+smokeping <at> yojimbo.org> wrote:
Hi Guy,

> Thanks Jonte!!  It's practically working! :)

Excellent.

> I'm just having problems with permissions on the folder that keeps the
> data.  Also, the images that appear on the smokeping page (counter) all I
> get are x's where the pictures(graphs) should be... I checked the apache
> error logs... gonna have to work on that.
>
> My _chartscache is located here:  /var/www/html/smokeping/img  when I put
> a test html file, I get error 403.. so I know it's a permission problem.
>
> If anyone has some recommendations, I'd be glad to hear them... but I'll
> be trying to figure it all out anyways...
>
> Thanks for all your help... the rpm was nice and easy :)  I started to
> manually install, ./configure etc.. man.. way too many dependencies, then
> more dependencies to get other dependencies to work!! wtf! :P  he he..

Good to hear you found the RPM useful. I do think you have a slightly
mixed configuration at the moment. Your "_chartscache_", which I presume
is the "_imgcache_" variable in your config, makes me think you haven't
given up your old hand rolled attempt completely.

The location you list above would on a normal server end up as
http://localhost/smokeping/img assuming your webroot is /var/www/html.
When you installed the RPM you get an apache application config file
installed into /etc/httpd/conf.d called smokeping. It will configure
your apache server how to work with the installed smokeping setup.
Unless you have edited this file, and I will for the time being assume
that you haven't, there is an Alias that point /smokeping to
/usr/share/smokeping/htdocs and there is no img folder in there which is
why you see the 403 error.
You prob want to create the proper fqdn URL to the last two redirect
statements here, but it's really more of old legacy support.

Try starting over from scratch and rename all the *.rpmnew files to there
original name, it should start working easily after you provide the basic
changes to this like the actual fqdn part of the cgiurl, Owner and contact
etc.

When you are done the URL for your installation should be
http://your.fqdn.goes.here.com/smokeping/sm.cgi

Please remember that smokeping works in two steps. You have the collector
which does all the work, it stores it in rrdtool databases. The last and
final step is the web interface which just creates the graphs you are
asking it for.

You might want to enable the process to launch on startup
"/sbin/chkconfig smokeping on" And to test to launch it once you changed
your config to what you think it should be "/sbin/services smokeping
start"
as the sm.cgi script reads the config file too and starting the service is
a good way to make sure the syntax is of the file is correct.
 
 
>> I try to put what you typed below into the smokeping.conf file, but then I can't get to the page.
 
>>Where exactly does it go?  Between <Directory "/usr/share/smokeping"> and </Directory> ?
 
>>Can you give me an example?  Otherwise, everything looks great right now :)

BTW another issue, you might want to speed up the page with mod_perl.
Just "yum install mod_perl" and you've done the hard part. Then in the
conf.d/smokeping file you need to add this to the "<Directory
"/usr/share/smokeping" >" declaration.

---
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
---

Please notice that with mod_perl (as for any cgi speedup process) you will
need to restart the webserver (as well as the normal need to restart
smokeping) before any changes to your "config" file takes effect. So apply
it only once your done making changes to your smokeping setup.

YMMV but I hope that someone finds this helpful, enjoy and good luck.

Regards,
Jonte.

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users


_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Jonte Regnéll | 4 Feb 01:43 2009

Re: Smokeping on fedora10

> See >> below...
[removed excessive quote]
>>> I try to put what you typed below into the smokeping.conf file, but
>>> then I can't get to the page.
As I said, this adds complexity and should only be added once everything
else is working. I will now assume that you have a otherwise working setup
of smokeping and that you want to go for the extra credit.

>>>Where exactly does it go?  Between <Directory "/usr/share/smokeping">
>>>and </Directory> ?
Yes, anywhere, but for readability I normally place it at the top.

>>>Can you give me an example?  Otherwise, everything looks great right now
> :)

<Directory "/usr/share/smokeping" >
  SetHandler perl-script
  PerlResponseHandler ModPerl::Registry
  PerlOptions +ParseHeaders
  Options ExecCGI
  Order deny,allow
  Deny from all
  Allow from <your IP and/or your domainname.tla goes here>
</Directory>

> new problem...  I can view the smokeping page perfectly from localhost,
> but from the internet, I get: Forbidden

Yes, you need to add your preferred list address ranges and or domains to
the allow statement above. For more in depth understanding of how to
configure this see http://httpd.apache.org/docs/2.2/howto/access.html

Please note that the three first lines in the "Directory" declaration are
only relevant if you use "mod_perl"

Regards,
  Jonte.

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Guy Lajeunesse | 4 Feb 04:55 2009
Picon

Clear smokeping data

Hi,
 
I'm working on getting my smokeping installation working perfectly, so far so good, thanks to this mailing list.
 
Because I'm still configuring things, I end up restarting smokeping alot, leaving gapsin my graphs.
 
Is there a way to clear all of the data and start from scratch?  I see some .png files in my rdd folder, but I don't want to delete them incase I make a mess of things...
 
How do I reset the graph data?
 
Guy :)
_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Jonte Regnéll | 4 Feb 06:14 2009

Re: Clear smokeping data

> Hi,
>
> I'm working on getting my smokeping installation working perfectly, so far
> so good, thanks to this mailing list.
>
> Because I'm still configuring things, I end up restarting smokeping alot,
> leaving gapsin my graphs.
>
> Is there a way to clear all of the data and start from scratch?  I see
> some
> .png files in my rdd folder, but I don't want to delete them incase I make
> a
> mess of things...
>
> How do I reset the graph data?

Hi Guy,

1) No, you should have no .png images in /var/lib/smokeping/rrd. You
probably want to check when they where created as graphs are generated
when you request to view them and if they are not resent just delete them.
(unless you specified your datadir and imgcache to share the same folder,
but I'll assume that your using the RPM config tweaked to fit your site)

2) We (or at least I don't) worry to much about gaps, as any data is
better then no data. The short and sweet solution is just delete the
relevant rrd file.  The long solution is read up on how to do it via
rrdtool
http://oss.oetiker.ch/rrdtool/ but that's a different mailinglist.
Your two top graphs will clear up if you just leave things for 30 hours so
I would say it's not worth the hassle. YMMV.

Regards,
  Jonte.

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Guy Lajeunesse | 4 Feb 16:38 2009
Picon

SmokeTrace setup

Hi, it's me again...

I notice that on the Smokeping website, there's a demo.  And in that demo, there are asterix's * that you can click on to get traceroutes to the servers.

I'm reading up on how to do it, but I have one question:  the instructions keep referring to $web and copying files to your smokeping web directory(NOT the cgi-bin directory)

Umm... how do I find my smokeping web directory?  What/where is it?

I think I can figure out the rest, I just don't know where to copy the files they ask me to copy.

Also... I don't know if I can ask this here - if not, I'll try to figure it out myself...  I want to password protect my smokeping page, I was reading up on some basic security (which is all I need) with .htaccess and .htpasswd files.  Can I do this?  I tried a few, but I don't know if it will work.  Can I use .htaccess for a .cgi script?  If yes, what folder do I need to place the .htaccess and .htpasswd files into?  I played around with it for a while last night, but never got it working.  Not important, but if someone knows, maybe they can help.

Thanks!

Guy :)

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Eric Chatham | 5 Feb 00:34 2009
Picon

Slave Server stops polling

To Smokeping group:

 

I have a problem with a slave server that just stops responding to the Smokeping program every once in awhile.  I try to restart the Smokeping on the slave server with this command:

 

/usr/bin/killall -9 smokeping; /opt/smokeping/bin/smokeping --master-url=http://<SERVER>/smokeping/smokeping.cgi --shared-secret=/opt/smokeping/secret.txt --cache-dir=/var/tmp/

 

We even have a crontab for this command that runs every 4 hours.  When I try to run this command, it *sometimes* works but *sometimes* doesn’t.  What am I doing wrong?  We have two slave servers (one in Los Angeles and one in New York City) and one master server (located in Dallas).  The other slave server doesn’t have any problems.  It’s just one the LA one having the problems.

 

Thank you,

 

Eric Chatham

 


CONFIDENTIAL. This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient.
_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Gmane