Discussion:
[smokeping-users] Smokeping graphs not showing up
Dago Pacheco
2012-02-17 20:18:25 UTC
Permalink
Hi everybody:

I'm having troubles setting up smokeping. I installed version 2.6.8
from source on a CentOS 5.7 machine. Compilation process finished
without problems and smokeping is started as a daemon correctly (I also
started in debug mode, and there where no errors). The web page is
rendered correctly but graphs doesn't show up. I checked imgcache dir,
and png files are correctly generated.
As I said, I compiled smokeping from sources following official
documentation from
http://oss.oetiker.ch/smokeping/doc/smokeping_install.en.html.

This are my General configuration values

*** General ***

owner = Aministrador Servidores
contact = ***@mail
mailhost = some.mail.host
sendmail = /usr/sbin/sendmail
# NOTE: do not put the Image Cache below cgi-bin
# since all files under cgi-bin will be executed ... this is not
# good for images.
imgcache = /opt/smokeping/cache
imgurl = ../cache
datadir = /opt/smokeping/data
piddir = /opt/smokeping/var
cgiurl = http://smokeping.some.host/smokeping.cgi
smokemail = /opt/smokeping/etc/smokemail
tmail = /opt/smokeping/etc/tmail
# specify this to get syslog logging
syslogfacility = local7
# each probe is now run in its own process
# disable this to revert to the old behaviour
concurrentprobes = yes
changeprocessnames = yes



This is the folder list from /opt/smokeping

[***@isaac:/opt/smokeping]# ll
total 40
drwxr-xr-x 2 root root 4096 feb 17 11:44 bin
drwxr-xr-x 4 apache apache 4096 feb 17 16:04 cache
drwxrwxr-x 4 root root 4096 feb 17 12:53 data
drwxr-xr-x 3 root root 4096 feb 17 16:57 etc
drwxr-xr-x 3 root root 4096 feb 17 12:49 htdocs
drwxr-xr-x 3 root root 4096 feb 17 11:44 lib
drwxr-xr-x 3 root root 4096 feb 17 11:44 share
-rw-r--r-- 1 root root 1153 feb 17 16:16 smoke.log
drwxr-xr-x 6 root root 4096 feb 17 11:41 thirdparty
drwxr-xr-x 2 root root 4096 feb 17 13:04 var



I tried changing permissions and imgcahe and imgurl values, but didn't work.
Don't know what to do. Any advise would be appreciated.
Thanks :)
G.W. Haywood
2012-02-17 21:12:23 UTC
Permalink
Hi there,
Post by Dago Pacheco
I'm having troubles setting up smokeping. I installed version 2.6.8
from source on a CentOS 5.7 machine. Compilation process finished
without problems and smokeping is started as a daemon correctly (I also
started in debug mode, and there where no errors). The web page is
rendered correctly but graphs doesn't show up. I checked imgcache dir,
and png files are correctly generated.
Check the Web server logs?

--

73,
Ged.
m***@interbaun.com
2012-02-17 23:24:23 UTC
Permalink
Check our permissions on /var/lib/smokeping. My chown permissions are:
smokeping:smokeping, except for _cgi where they are
smokeping:www-data. The smokeping user must be able to r/w to the .rrd
files.
Post by Dago Pacheco
I'm having troubles setting up smokeping. I installed version 2.6.8
from source on a CentOS 5.7 machine. Compilation process finished
without problems and smokeping is started as a daemon correctly (I also
started in debug mode, and there where no errors). The web page is
rendered correctly but graphs doesn't show up. I checked imgcache dir,
and png files are correctly generated.
As I said, I compiled smokeping from sources following official
documentation from
http://oss.oetiker.ch/smokeping/doc/smokeping_install.en.html.
This are my General configuration values
*** General ***
owner = Aministrador Servidores
mailhost = some.mail.host
sendmail = /usr/sbin/sendmail
# NOTE: do not put the Image Cache below cgi-bin
# since all files under cgi-bin will be executed ... this is not
# good for images.
imgcache = /opt/smokeping/cache
imgurl = ../cache
datadir = /opt/smokeping/data
piddir = /opt/smokeping/var
cgiurl = http://smokeping.some.host/smokeping.cgi
smokemail = /opt/smokeping/etc/smokemail
tmail = /opt/smokeping/etc/tmail
# specify this to get syslog logging
syslogfacility = local7
# each probe is now run in its own process
# disable this to revert to the old behaviour
concurrentprobes = yes
changeprocessnames = yes
This is the folder list from /opt/smokeping
total 40
drwxr-xr-x 2 root root 4096 feb 17 11:44 bin
drwxr-xr-x 4 apache apache 4096 feb 17 16:04 cache
drwxrwxr-x 4 root root 4096 feb 17 12:53 data
drwxr-xr-x 3 root root 4096 feb 17 16:57 etc
drwxr-xr-x 3 root root 4096 feb 17 12:49 htdocs
drwxr-xr-x 3 root root 4096 feb 17 11:44 lib
drwxr-xr-x 3 root root 4096 feb 17 11:44 share
-rw-r--r-- 1 root root 1153 feb 17 16:16 smoke.log
drwxr-xr-x 6 root root 4096 feb 17 11:41 thirdparty
drwxr-xr-x 2 root root 4096 feb 17 13:04 var
I tried changing permissions and imgcahe and imgurl values, but didn't work.
Don't know what to do. Any advise would be appreciated.
Thanks :)
_______________________________________________
smokeping-users mailing list
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
m***@interbaun.com
2012-02-17 23:24:44 UTC
Permalink
Check your permissions on /var/lib/smokeping. My chown permissions
are: smokeping:smokeping, except for _cgi where they are
smokeping:www-data. The smokeping user must be able to r/w to the .rrd
files.
Post by Dago Pacheco
I'm having troubles setting up smokeping. I installed version 2.6.8
from source on a CentOS 5.7 machine. Compilation process finished
without problems and smokeping is started as a daemon correctly (I also
started in debug mode, and there where no errors). The web page is
rendered correctly but graphs doesn't show up. I checked imgcache dir,
and png files are correctly generated.
As I said, I compiled smokeping from sources following official
documentation from
http://oss.oetiker.ch/smokeping/doc/smokeping_install.en.html.
This are my General configuration values
*** General ***
owner = Aministrador Servidores
mailhost = some.mail.host
sendmail = /usr/sbin/sendmail
# NOTE: do not put the Image Cache below cgi-bin
# since all files under cgi-bin will be executed ... this is not
# good for images.
imgcache = /opt/smokeping/cache
imgurl = ../cache
datadir = /opt/smokeping/data
piddir = /opt/smokeping/var
cgiurl = http://smokeping.some.host/smokeping.cgi
smokemail = /opt/smokeping/etc/smokemail
tmail = /opt/smokeping/etc/tmail
# specify this to get syslog logging
syslogfacility = local7
# each probe is now run in its own process
# disable this to revert to the old behaviour
concurrentprobes = yes
changeprocessnames = yes
This is the folder list from /opt/smokeping
total 40
drwxr-xr-x 2 root root 4096 feb 17 11:44 bin
drwxr-xr-x 4 apache apache 4096 feb 17 16:04 cache
drwxrwxr-x 4 root root 4096 feb 17 12:53 data
drwxr-xr-x 3 root root 4096 feb 17 16:57 etc
drwxr-xr-x 3 root root 4096 feb 17 12:49 htdocs
drwxr-xr-x 3 root root 4096 feb 17 11:44 lib
drwxr-xr-x 3 root root 4096 feb 17 11:44 share
-rw-r--r-- 1 root root 1153 feb 17 16:16 smoke.log
drwxr-xr-x 6 root root 4096 feb 17 11:41 thirdparty
drwxr-xr-x 2 root root 4096 feb 17 13:04 var
I tried changing permissions and imgcahe and imgurl values, but didn't work.
Don't know what to do. Any advise would be appreciated.
Thanks :)
_______________________________________________
smokeping-users mailing list
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Dago Pacheco
2012-02-20 13:05:45 UTC
Permalink
Ok ... I managed to troubleshoot my problem and I get to a solution.
The problem was that "imgurl" config value was incorrectly set. What I
had was "/opt/smokeping/cache/". With this value my web server couldn't
load images, because it was unable to find that dir. What I did to
solve this was to create a symlink from smokeping web root to smokeping
cache dir, like this:

ln -s /opt/smokeping/cache /<webdocs_root>/smokeping/cache


And then set "imgurl" config value to "cache" (which is the relative
path for smokeping.cgi .... absolute value should be
http://smokeping.some.domain/cache). And that's it, graphs start to
show up.

I'd like to point out that official installation instruction are quite
tricky, and can lead confusions and, consequently, unnecessary
troubleshooting situation, like my case. I think that more detailed
instructions which, at least, shows up some default example settings,
would save a lot of time.

Thanks everybody.
Post by m***@interbaun.com
Check your permissions on /var/lib/smokeping. My chown permissions
are: smokeping:smokeping, except for _cgi where they are
smokeping:www-data. The smokeping user must be able to r/w to the .rrd
files.
Post by Dago Pacheco
I'm having troubles setting up smokeping. I installed version 2.6.8
from source on a CentOS 5.7 machine. Compilation process finished
without problems and smokeping is started as a daemon correctly (I also
started in debug mode, and there where no errors). The web page is
rendered correctly but graphs doesn't show up. I checked imgcache dir,
and png files are correctly generated.
As I said, I compiled smokeping from sources following official
documentation from
http://oss.oetiker.ch/smokeping/doc/smokeping_install.en.html.
This are my General configuration values
*** General ***
owner = Aministrador Servidores
mailhost = some.mail.host
sendmail = /usr/sbin/sendmail
# NOTE: do not put the Image Cache below cgi-bin
# since all files under cgi-bin will be executed ... this is not
# good for images.
imgcache = /opt/smokeping/cache
imgurl = ../cache
datadir = /opt/smokeping/data
piddir = /opt/smokeping/var
cgiurl = http://smokeping.some.host/smokeping.cgi
smokemail = /opt/smokeping/etc/smokemail
tmail = /opt/smokeping/etc/tmail
# specify this to get syslog logging
syslogfacility = local7
# each probe is now run in its own process
# disable this to revert to the old behaviour
concurrentprobes = yes
changeprocessnames = yes
This is the folder list from /opt/smokeping
total 40
drwxr-xr-x 2 root root 4096 feb 17 11:44 bin
drwxr-xr-x 4 apache apache 4096 feb 17 16:04 cache
drwxrwxr-x 4 root root 4096 feb 17 12:53 data
drwxr-xr-x 3 root root 4096 feb 17 16:57 etc
drwxr-xr-x 3 root root 4096 feb 17 12:49 htdocs
drwxr-xr-x 3 root root 4096 feb 17 11:44 lib
drwxr-xr-x 3 root root 4096 feb 17 11:44 share
-rw-r--r-- 1 root root 1153 feb 17 16:16 smoke.log
drwxr-xr-x 6 root root 4096 feb 17 11:41 thirdparty
drwxr-xr-x 2 root root 4096 feb 17 13:04 var
I tried changing permissions and imgcahe and imgurl values, but didn't work.
Don't know what to do. Any advise would be appreciated.
Thanks :)
_______________________________________________
smokeping-users mailing list
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
_______________________________________________
smokeping-users mailing list
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Loading...