Barry von Tobel | 13 Sep 2010 03:55

PNG images not showing on Ubuntu 10.04

I'm trying to run smokeping on my 10.04 LTS computer but the images don't show up. Nothing is shown on Firefox, and Chrome only shows the image outline and time axis information. Below is a 'copy url' from Chrome.

http://localhost/cache/smokeping/ima...1283768820.png

here is some output from my apache2 log:

[Mon Sep 06 09:58:19 2010] [error] [client 192.168.1.54] File does not exist: /var/www/cache, referer: http://192.168.1.50/cgi-bin/smokepin...t=Local.Router

[Mon Sep 06 09:58:19 2010] [error] [client 192.168.1.54] File does not exist: /var/www/cache, referer: http://192.168.1.50/cgi-bin/smokepin...t=Local.Router

I've played around with the 'pathnames' file in /ect/smokeping, but that didn't seem to work. I browsed from another machine and get the same results. I also re-installed it.  I"m using the smokeping version available from apt-get sources, and version is 2.3.6-5

Any ideas?

thanks,
Barry
_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Calvin Park | 13 Sep 2010 09:27

minimum install for slave mode

Hello Smokeping users ~

I only need to install smokeping-2.3.6 for slave mode, by the way
there are so many library required.

For example....
usr/lib/libpng12.so
lib/libpng12.so.0.42.0
usr/lib/libpangocairo-1.0.so.0.2800.0
usr/lib/libpango-1.0.so.0.2800.0
usr/lib/libcairo.so.2.10800.10
usr/lib/libgobject-2.0.so.0.2400.1
usr/lib/libgmodule-2.0.so.0.2400.1
usr/lib/libgthread-2.0.so.0.2400.1
lib/libglib-2.0.so.0.2400.1
usr/lib/libpangoft2-1.0.so.0.2800.0
usr/lib/libfreetype.so.6.3.22
usr/lib/libfontconfig.so.1.4.4
usr/lib/libpixman-1.so.0.16.4

And more... there are few Megabyte size.
As you know, slave mode don't work about painting graph, updating RRD, etc

How can I do reduce size of smokeping?

Thanks.

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

G.W. Haywood | 13 Sep 2010 10:02
Picon
Favicon

Re: minimum install for slave mode

Hi there,

On Mon, 13 Sep 2010, Calvin Park wrote:

> ...
> there are so many library required.

:(

> How can I reduce size of smokeping?

Not easily.

On a slave, I install smokeping in a user's directory.  Then I use a
script to start it like this:

8<--------------------------------------------------------------------
mail4:~$ >>> cat start_smokeping.sh
#!/bin/bash

/home/ged/src/net/smokeping/bin/smokeping \
 --master-url=http://tornado.local.jubileegroup.co.uk/cgi-bin/smokeping.cgi \
 --cache-dir=/home/ged/smokeping/ \
 --shared-secret=/home/ged/smokeping/smokeping_id

8<--------------------------------------------------------------------

Then I only install enough libraries to get it to run.  That's still
quite a lot of software.  Smokeping will always be resource hungry as
it's largely written in Perl, which is, well, large and inefficient.
That doesn't mean I don't like it. :)

G.W. Haywood | 13 Sep 2010 09:51
Picon
Favicon

Re: PNG images not showing on Ubuntu 10.04

Hi there,

On Sun, 12 Sep 2010, Barry von Tobel wrote:

> I'm trying to run smokeping on my 10.04 LTS computer but the images
> don't show up. Nothing is shown on Firefox, and Chrome only shows the
> image outline and time axis information. Below is a 'copy url' from Chrome.
>
> http://localhost/cache/smokeping/ima...1283768820.png

You're new to this, aren't you? :)  We've all been there, and it's very
confusing until you start to get everything in all the right pigeonholes.
The URI you sent is no good to anyone except you.  It's a path on your
local machine, and that path/image won't exist on anyone else's machine.
You need to put the image file where we can get at it.  Photobucket?

There are two ways to install most packages.  The way provided by the
author of the package, and the way provided by your particular Linux
distribution's package manager.  Your Linux distribution is Ubuntu,
but you haven't said if you used the Ubuntu package manager or not.
I guess you did.

Unfortunately people take religious views about where things should go
in the filesystem.  That means that the author of a package might use
use one "filesystem hierarchy standard" (FHS) and the distributions's
package manager might use another.  If, for example, the author says
in his documentation after installing the package according to *his*
instructions you must edit the file

/usr/bin/smokeping

but the package manager for your distribution puts smokeping in

/usr/sbin/

then things can get a bit confusing.

I don't use Ubuntu, so I don't know what the package management system and
the installer will have done.  I'd have thought that they ought to have set
up everything correctly for you but it seems like they haven't.  Probably
there are some things you still need to do that the installer can't know
how to do, and probably those things are documented in some sensible place
such as at a wild guess

/usr/share/doc/smokeping/

You need to find out where the documentation is normally expected to
be found after you install a package using Ubuntu's package manager,
so you can always read it when you need to answer questions like this.

"Playing around with pathnames" will not work, and will usually just
get you deeper in the mire.

Have you done what it says you need to do in the docs?  If you don't
know what I'm talking about, take some time off and read them:

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

In a vanilla installation (i.e. if you downloaded the package from the
Smokeping Website and installed it yourself, not using the Ubuntu
package manager to download and install an Ubuntu-packaged version)
you would have to set up a couple of paths in the file

.../smokeping

unfortunately I don't know the full path to .../smokeping on Ubuntu,
someone on the list almost certainly will.  Try logging in as root and type

which smokeping

At another wild guess this will give you something like

/usr/sbin/smokeping

so then type

perldoc /usr/sbin/smokeping

and read the instructions about editing that file which are given in the file.
Save a copy of anything you edit, I would usually copy and edit it like so:

cd /path/to/smokeping
cp -p smokeping smokeping.original
chmod a-w smokeping.original
chattr +i smokeping.original
emacs smokeping

Obviously you will want to use your favourite editor, not mine. :)

If all else fails you might try Google to search the Ubuntu users'
mailing list archives for information about Smokeping, I'm sure that
this will have come up before.

Niko Tyni | 13 Sep 2010 13:00
Picon
Picon

Re: PNG images not showing on Ubuntu 10.04

On Sun, Sep 12, 2010 at 08:55:27PM -0500, Barry von Tobel wrote:
> I'm trying to run smokeping on my 10.04 LTS computer but the images
> don't show up. Nothing is shown on Firefox, and Chrome only shows
> the image outline and time axis information. Below is a 'copy url'
> from Chrome.

Was this a new installation of the smokeping package or an upgrade from
an earlier version?

I put quite a bit of effort into getting this right in the package,
and I'd love to find out what went wrong for you.

> [Mon Sep 06 09:58:19 2010] [error] [client 192.168.1.54] File does
> not exist: /var/www/cache, referer:

I have no idea where this is coming from. Please include your 
/etc/smokeping/apache2.conf and /etc/smokeping/config.d/pathnames.

Some background: earlier versions of the package installed the web
side in /var/www, but as this was a violation of the Debian policy
(and the Filesystem Hierarchy Standard) they now (as of 2.3.6-4) go in
/usr/share/smokeping and /var/cache/smokeping/images.

The Apache configuration snippet in /etc/smokeping/apache2.conf (which
should be symlinked into /etc/apache2/conf.d) makes Apache look in the
right place, and upgrades from earlier versions also add a few symlinks
in /var/www to try and keep things working.

> I've played around with the 'pathnames' file in /ect/smokeping, but
> that didn't seem to work. I browsed from another machine and get the
> same results. I also re-installed it.  I"m using the smokeping
> version available from apt-get sources, and version is 2.3.6-5

Reinstalling it probably doesn't change anything. If you're prepared to
lose the measurement data, you might want to try 'dpkg --purge smokeping'
(which removes all the config files and data) and reinstalling afterwards.

HTH,
--

-- 
Niko Tyni   ntyni <at> debian.org

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

Barry von Tobel | 13 Sep 2010 16:36

Re: PNG images not showing on Ubuntu 10.04

Hello Niko,
Comments embedded below

On 09/13/2010 06:00 AM, Niko Tyni wrote:
> On Sun, Sep 12, 2010 at 08:55:27PM -0500, Barry von Tobel wrote:
>    
>> I'm trying to run smokeping on my 10.04 LTS computer but the images
>> don't show up. Nothing is shown on Firefox, and Chrome only shows
>> the image outline and time axis information. Below is a 'copy url'
>> from Chrome.
>>      
> Was this a new installation of the smokeping package or an upgrade from
> an earlier version?
>
>    
I upgraded to 10.04 LTS from previous versions
> I put quite a bit of effort into getting this right in the package,
> and I'd love to find out what went wrong for you.
>
>    
>> [Mon Sep 06 09:58:19 2010] [error] [client 192.168.1.54] File does
>> not exist: /var/www/cache, referer:
>>      
> I have no idea where this is coming from. Please include your
> /etc/smokeping/apache2.conf and /etc/smokeping/config.d/pathnames.
>    
I attached the two files.  I played around with the pathnames, but 
before I did that, I made a copy, so this 'should' be the original.
> Some background: earlier versions of the package installed the web
> side in /var/www, but as this was a violation of the Debian policy
> (and the Filesystem Hierarchy Standard) they now (as of 2.3.6-4) go in
> /usr/share/smokeping and /var/cache/smokeping/images.
>
> The Apache configuration snippet in /etc/smokeping/apache2.conf (which
> should be symlinked into /etc/apache2/conf.d) makes Apache look in the
> right place, and upgrades from earlier versions also add a few symlinks
> in /var/www to try and keep things working.
>
>    
>> I've played around with the 'pathnames' file in /ect/smokeping, but
>> that didn't seem to work. I browsed from another machine and get the
>> same results. I also re-installed it.  I"m using the smokeping
>> version available from apt-get sources, and version is 2.3.6-5
>>      
> Reinstalling it probably doesn't change anything. If you're prepared to
> lose the measurement data, you might want to try 'dpkg --purge smokeping'
> (which removes all the config files and data) and reinstalling afterwards.
>    
> HTH,
>    
Barry

ScriptAlias /smokeping/smokeping.cgi /usr/share/smokeping/cgi-bin/smokeping.cgi
Alias /smokeping /usr/share/smokeping/www

<Directory "/usr/share/smokeping/www">
    Options FollowSymLinks
</Directory>

sendmail = /usr/sbin/sendmail
imgcache = /var/cache/smokeping/images
imgurl   = ../smokeping/images
datadir  = /var/lib/smokeping
dyndir   = /var/lib/smokeping/__cgi
piddir   = /var/run/smokeping
smokemail = /etc/smokeping/smokemail
tmail    = /etc/smokeping/tmail
precreateperms = 2775
_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Rob Tanner | 16 Sep 2010 18:27
Favicon

Upgrading from v2.0.9 to v2.4.2

Hi,

I downloaded the v2.4.2 tarball and read through the upgrade documentation.  My concern is that it says nothing about how to move history data into the newer version.  Are the RRD files compatible?  Do I simply move the ./var hierarchy over to the new install?



Rob Tanner
UNIX Services Manager
Linfield College, McMinnville Oregon

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Seth Lyons | 20 Sep 2010 22:22
Favicon

hping probe

I recently began having an issue with the hping probe.  When running smokeping --debug everything works as expected, but when running as a daemon the probe doesn’t run and I get the following message in my smokeping log:

 

HPing: WARNING: /usr/local/sbin/hping -d 0 -p 80 -S -c 5 www.yahoo.com was not happy: [open_sockraw] socket(): Operation not permitted [main] can't open raw socket

 

Any help is greatly appreciated.

 

FreeBSD 8.1-RELEASE amd64

hping-2.0.0r3

smokeping-2.4.2_6

 

Thanks.

 

Seth

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Seth Lyons | 20 Sep 2010 23:09
Favicon

Re: hping probe

Smokeping runs as smokeping/smokeping.  I am debugging as the root user.  I thought that running debug ran
the program with output to stdout as it normally runs, but apparently not.

I know that hping in general needs to be run as root (and that it doesn't run properly when it's setuid'd).  I'm
hoping for a solution that is _not_ running smokeping as root.

-----Original Message-----
From: Josh Luthman [mailto:josh <at> imaginenetworksllc.com] 
Sent: Monday, September 20, 2010 5:05 PM
To: Seth Lyons
Cc: smokeping-users <at> lists.oetiker.ch
Subject: Re: [smokeping-users] hping probe

What user/group does smokeping run as a daemon?  Are you debugging as root?

Looks like a permission issue with hping, what's ls -l /usr/local/sbin/hping say?

Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373

On Mon, Sep 20, 2010 at 4:22 PM, Seth Lyons <slyons <at> fxcm.com> wrote:
> I recently began having an issue with the hping probe.  When running 
> smokeping --debug everything works as expected, but when running as a 
> daemon the probe doesn't run and I get the following message in my smokeping log:
>
>
>
> HPing: WARNING: /usr/local/sbin/hping -d 0 -p 80 -S -c 5 www.yahoo.com 
> was not happy: [open_sockraw] socket(): Operation not permitted [main] 
> can't open raw socket
>
>
>
> Any help is greatly appreciated.
>
>
>
> FreeBSD 8.1-RELEASE amd64
>
> hping-2.0.0r3
>
> smokeping-2.4.2_6
>
>
>
> Thanks.
>
>
>
> Seth
>
> _______________________________________________
> 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

Rob Tanner | 20 Sep 2010 23:12
Favicon

Cropper not running

Hi,

I’m trying to get zoom all configured but see in the logs that cropper is failing.  Here is a sample of the apache error_log for just a single target:


[Mon Sep 20 13:56:45 2010] [error] [client 10.110.8.91] (8)Exec format error: exec of '/var/www/cgi-bin/cropper/lib/prototype.js' failed, referer: http://sirius.linfield.edu/cgi-bin/smokeping.cgi?displaymode=n;start=2010-09-10%2013:26;end=now;target=Linfield.DNS.dns7
[Mon Sep 20 13:56:45 2010] [error] [client 10.110.8.91] (8)Exec format error: exec of '/var/www/cgi-bin/cropper/lib/scriptaculous.js' failed, referer: http://sirius.linfield.edu/cgi-bin/smokeping.cgi?displaymode=n;start=2010-09-10%2013:26;end=now;target=Linfield.DNS.dns7
[Mon Sep 20 13:56:45 2010] [error] [client 10.110.8.91] (8)Exec format error: exec of '/var/www/cgi-bin/cropper/smokeping-zoom.js' failed, referer: http://sirius.linfield.edu/cgi-bin/smokeping.cgi?displaymode=n;start=2010-09-10%2013:26;end=now;target=Linfield.DNS.dns7
[Mon Sep 20 13:56:45 2010] [error] [client 10.110.8.91] (8)Exec format error: exec of '/var/www/cgi-bin/cropper/cropper.js' failed, referer: http://sirius.linfield.edu/cgi-bin/smokeping.cgi?displaymode=n;start=2010-09-10%2013:26;end=now;target=Linfield.DNS.dns7
[Mon Sep 20 13:56:45 2010] [error] [client 10.110.8.91] Premature end of script headers: prototype.js, referer: http://sirius.linfield.edu/cgi-bin/smokeping.cgi?displaymode=n;start=2010-09-10%2013:26;end=now;target=Linfield.DNS.dns7
[Mon Sep 20 13:56:45 2010] [error] [client 10.110.8.91] Premature end of script headers: scriptaculous.js, referer: http://sirius.linfield.edu/cgi-bin/smokeping.cgi?displaymode=n;start=2010-09-10%2013:26;end=now;target=Linfield.DNS.dns7
[Mon Sep 20 13:56:45 2010] [error] [client 10.110.8.91] Premature end of script headers: smokeping-zoom.js, referer: http://sirius.linfield.edu/cgi-bin/smokeping.cgi?displaymode=n;start=2010-09-10%2013:26;end=now;target=Linfield.DNS.dns7
[Mon Sep 20 13:56:45 2010] [error] [client 10.110.8.91] Premature end of script headers: cropper.js, referer: http://sirius.linfield.edu/cgi-bin/smokeping.cgi?displaymode=n;start=2010-09-10%2013:26;end=now;target=Linfield.DNS.dns7


The paths are correct in basepage.html and I didn’t see any special instructions for configuring the javascript.  Any idea what’s going on?



Thanks,
Rob



Rob Tanner
UNIX Services Manager
Linfield College, McMinnville Oregon

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

Gmane