[smokeping-users] Smoke isnt build website stats ? :(
Jim Long
smokeping at museum.rain.com
Tue Sep 6 22:46:02 CEST 2011
On Tue, Sep 06, 2011 at 10:30:29PM +0200, Ton Muller wrote:
> rrd is building DB files.
> but smoke isnt making its stats in htdocs..
I'm still stuck on the chroot option in Apache.
In my smokeping.cgi, on line 9 there is an explicit reference to
the smokeping config file:
9 Smokeping::cgi("/usr/home/smokeping/etc/smokeping/config");
Does your smokeping.cgi have something similar to that also?
What is the exact path in the smokeping.cgi, and the exact path
to your smokeping config? Is it inside of /var/www/ or outside?
If outside, there's your problem (or at least one of your
problems). You'll need to either remove the chroot from your
Apache setup, or else move your smokeping config to someplace
underneath /var/www/.
Just for the sake of information, click your browser on the URL
http://192.168.0.240/../smokeping/cgi-bin/smokeping.cgi
and then show us the resulting Apache log entries. Check for
both access_log entries and error_log entries.
Jim
>
> tony.
>
> On 6-9-2011 22:10, Greg Sloop <gregs at sloop.net> wrote:
> > Sorry if this seems really obvious, but did you try smokeping --debug?
> >
> > It should let you know if it finds problems with the config etc...
> >
> > -Greg
> >
> > On Tue, Sep 6, 2011 at 12:15 PM, Ton Muller <spatieman at online.nl> wrote:
> >> Hello.
> >>
> >> results..
> >> # ps -auxww | grep "[s]moke"
> >> _smokeping 31627 0.0 0.5 11920 5264 ?? Is 5:43PM 0:00.70
> >> perl: /usr/local/bin/smokeping [FPing] (perl)
> >> you have mail in /var/mail/root
> >> #
> >>
> >> 2nd.
> >> # ps -auxww | grep "[h]ttp"
> >> www 27021 0.0 0.2 1272 2400 ?? Ss 4:54PM 0:00.29 httpd:
> >> parent [chroot /var/www] (httpd)
> >> www 17660 0.0 0.2 1276 1848 ?? I 4:55PM 0:00.02 httpd:
> >> child (httpd)
> >> www 4155 0.0 0.2 1276 1852 ?? I 4:55PM 0:00.03 httpd:
> >> child (httpd)
> >> www 15314 0.0 0.2 1276 1848 ?? I 4:55PM 0:00.03 httpd:
> >> child (httpd)
> >> www 30267 0.0 0.2 1300 1868 ?? I 4:55PM 0:00.03 httpd:
> >> child (httpd)
> >> www 30841 0.0 0.2 1276 1864 ?? I 4:55PM 0:00.03 httpd:
> >> child (httpd)
> >> www 21725 0.0 0.2 1276 1804 ?? I 5:50PM 0:00.02 httpd:
> >> child (httpd)
> >> www 29482 0.0 0.2 1276 1864 ?? I 5:50PM 0:00.02 httpd:
> >> child (httpd)
> >> www 3385 0.0 0.2 1276 1868 ?? I 5:50PM 0:00.02 httpd:
> >> child (httpd)
> >> www 14873 0.0 0.2 1276 1804 ?? I 6:55PM 0:00.02 httpd:
> >> child (httpd)
> >> www 14707 0.0 0.2 1276 1876 ?? I 6:55PM 0:00.02 httpd:
> >> child (httpd)
> >> #
> >>
> >> 3th..
> >> # ls -ld /var/www /var/www/htdocs /var/www/htdocs/smokeping
> >> /var/www/htdocs/smokeping/img /var/db/smokeping
> >> drwxr-xr-x 3 _smokeping _smokeping 512 Sep 6 14:53 /var/db/smokeping
> >> drwxr-xr-x 11 root daemon 512 Sep 5 22:29 /var/www
> >> drwxr-xr-x 6 root daemon 512 Sep 6 17:46 /var/www/htdocs
> >> drwxr-xr-x 4 _smokeping _smokeping 512 Sep 5 22:12
> >> /var/www/htdocs/smokeping
> >> drwxr-xr-x 2 www daemon 512 Sep 5 22:12
> >> /var/www/htdocs/smokeping/img
> >> #
> >>
> >> than.
> >>
> >> # ls -l /var/www/htdocs/smokeping/index.html
> >> ls: /var/www/htdocs/smokeping/index.html: No such file or directory
> >> #
> >> (smoke isnt making index files as sayed)
> >>
> >>
> >> and !
> >> # ls -l /var/www/htdocs/smokeping/index.html
> >> ls: /var/www/htdocs/smokeping/index.html: No such file or directory
> >> # echo "<html>hello, world.</html>" > /var/www/htdocs/smokeping/test.html
> >> # ls -l /var/www/htdocs/smokeping/test.html
> >> -rw-r--r-- 1 root _smokeping 27 Sep 6 21:13
> >> /var/www/htdocs/smokeping/test.html
> >> #
> >>
> >> so yes, write able.
> >>
> >> http://192.168.0.240/smokeping/test.html
> >> says hello world.
> >>
> >> Regards.
> >> Ton.
> >> ... Feel the power of my shell !!
> >>
> >> On 6-9-2011 20:31, Jim Long wrote:
> >>> Hi, Ton. I didn't notice that you were running BSD. I run smokeping
> >>> on FreeBSD, so perhaps I'll jump in here.
> >>>
> >>> Gregory's line of inquiry is good. Please show the output of:
> >>>
> >>> ps -auxww | grep "[s]moke"
> >>>
> >>> and
> >>>
> >>> ps -auxww | grep "[h]ttp"
> >>>
> >>> and
> >>>
> >>> ls -ld /var/www /var/www/htdocs /var/www/htdocs/smokeping /var/www/htdocs/smokeping/img /var/db/smokeping
> >>>
> >>> Also, check your Apache setup to make sure it's relatively sound.
> >>> What is the output of ls -l /var/www/htdocs/smokeping/index.html ?
> >>> If there is an index.html file there, can you view it with a web
> >>> browser pointed at the correct URL? If there is NOT an index.html
> >>> file there, try:
> >>>
> >>> echo "<html>hello, world.</html>" > /var/www/htdocs/smokeping/test.html
> >>>
> >>> Then please show:
> >>>
> >>> ls -l /var/www/htdocs/smokeping/test.html
> >>>
> >>> and report the success of:
> >>>
> >>> http://192.168.0.240/smokeping/test.html
> >>>
> >>>
> >>>
> >>> On Tue, Sep 06, 2011 at 08:18:13PM +0200, Ton Muller wrote:
> >>>> Hello Greg.
> >>>>
> >>>> Well, lets see.
> >>>> files in /var/db/smokeling are ok.
> >>>> 755 _smokeping _smokeping, so DB files are ok.
> >>>>
> >>>> message log says ...nothing....
> >>>> smokeping CGI directory 755 root deamon, inc cgi and smokeping.cgi
> >>>> and no error in error.log, so i guess its working.
> >>>>
> >>>> pagedir for smokeping in htdocs 755 was root deamon :/ ,is now
> >>>> _smokeping _smokeping. but after 15 minutes still no result
> >>>> no files written in it.
> >>>> apache cant serv if smoke isnt writing in it ,hehe..
> >>>> with the new settings i still can access the smokeping over http.
> >>>>
> >>>> Regards.
> >>>>
> >>>>
> >>>> On 6-9-2011 18:24, Gregory Sloop wrote:
> >>>>> If I were guessing, I'd probably say it's a permission problem with
> >>>>> TM> imgcache = /var/www/htdocs/smokeping/img
> >>>>> and
> >>>>> TM> pagedir = /var/www/htdocs/smokeping
> >>>>>
> >>>>> Does the user smokeping is running as have rights there?
> >>>>>
> >>>>> Are the files not getting built, or will apache refuse to serve them?
> >>>>>
> >>>>> If the latter, then the apache logs will tell you. If the former, the
> >>>>> message log should say, _I think._
> >>>>>
> >>>>> Just a start. I'm hope someone more knowledgeable will hop in, since
> >>>>> I'm not the best guy for helping tshoot this kind of thing, esp on
> >>>>> BSD.
> >>>>>
> >>>>> -Greg
> >>>>>
> >>>>> TM> Greeting.
> >>>>> TM> I got finaly smokeping running on my openBSD box (4.9)
> >>>>> TM> after strugeling with the conf files, i manage to run smokeping.
> >>>>> TM> i see the data in the DB directory.
> >>>>> TM> but smokeping is refusing to build the website in htdocs/smokeping.
> >>>>>
> >>>>> TM> any advice??
> >>>>>
> >>>>> TM> Below my config
> >>>>> TM> i use smokeping on LAN webserver only.
> >>>>>
> >>>>> TM> *** General ***
> >>>>>
> >>>>> TM> owner = Ton Muller
> >>>>> TM> contact = admin@<domain>
> >>>>> TM> mailhost = mail.<domain>
> >>>>> TM> sendmail = /usr/sbin/sendmail
> >>>>> TM> imgcache = /var/www/htdocs/smokeping/img
> >>>>> TM> imgurl = http://192.168.0.240/smokeping/img
> >>>>> TM> pagedir = /var/www/htdocs/smokeping
> >>>>> TM> datadir = /var/db/smokeping
> >>>>> TM> piddir = /var/run/smokeping
> >>>>> TM> cgiurl = http://192.168.0.240/../smokeping/cgi-bin/smokeping.cgi
> >>>>> TM> smokemail = /etc/smokeping/smokemail
> >>>>> TM> tmail = /etc/smokeping/tmail
> >>>>> TM> # specify this to get syslog logging
> >>>>> TM> syslogfacility = local0
> >>>>> TM> # each probe is now run in its own process
> >>>>> TM> # disable this to revert to the old behaviour
> >>>>> TM> # concurrentprobes = no
> >>>>>
> >>>>>
> >>>>
> >>>> _______________________________________________
> >>>> 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
> >>
> >
>
> _______________________________________________
> smokeping-users mailing list
> smokeping-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
More information about the smokeping-users
mailing list