[smokeping-users] Smoke isnt build website stats ? :(
Jim Long
smokeping at museum.rain.com
Tue Sep 6 22:51:24 CEST 2011
Once you get the big issues sorted, I strongly suggest you iron
out the logging for smokeping. In FreeBSD, the default log file
is /var/log/smokeping.log. I don't know whether OpenBSD has
adopted FreeBSD/NetBSD conventions for config options to add-on
software like smokeping, but in FreeBSD, I can set the log file
by specifying a "smokeping_logfile" variable in /etc/rc.conf:
smokeping_enable="yes"
smokeping_logfile="/var/log/smokeping.log"
Check your smokeping start-up script to see what hooks it has
to set a logfile name, if any.
Bottom line, get your smokeping logging straightened out once you
get the bigger issues resolved. You definitely want smokeping to
be able to log error conditions and progress indicators.
Jim
On Tue, Sep 06, 2011 at 10:39:05PM +0200, Ton Muller wrote:
> uh??
> smokeping.log ???
> now you mention it..
> there is non there.
> and for the chrooted, not sure.
> i am more a pf guy,hehe..
>
> On 6-9-2011 22:13, Jim Long wrote:
> > Just for good measure, I'd suggest stopping smokeping, and then
> > checking with ps to ensure that all smokeping processes have
> > terminated. Once all smokeping processes have terminated,
> > restart smokeping, to ensure that it is incorporating your latest
> > changes.
> >
> > How is your logging configured in smokeping? Are there any
> > interesting entries in the smokeping log? With the standard
> > FreeBSD port, the default log location is /var/log/smokeping.log,
> > but it could be different on OpenBSD.
> >
> > Permissions look acceptable, although not optimal. The test.html
> > wasn't a writeability test -- EVERYTHING is writable by root! It
> > was a test to ensure your Apache is functional, and also to see
> > what default group ownership files created there would inherit.
> >
> > I note that your Apache is chrooted in /var/www. I've never done
> > that. I don't know smokeping well enough to know whether the cgi
> > script (that runs from the chrooted Apache process) requires
> > access to /var/db/smokeping. If it does, you're hosed, because
> > that's outside the chroot.
> >
> > SUBJECT TO CORRECTION, PLEASE:
> >
> > It is my understanding that the graphic files and html are
> > created by the smokeping daemon, which is not subject to the
> > chrooted Apache configuration, because the smokeping daemon is
> > a separate process which is configured/started/stopped
> > independently of how Apachei runs. But as I said above, if the
> > CGI script ever requires access to anything in /var/db/smokeping
> > (or indeed, anything that is not under /var/www/...), then the
> > chroot option in Apache is going to create problems.
> >
> > While you're checking the smokeping logs, check the Apache logs
> > also to see if the CGI script is logging anything interesting.
> >
> > Jim
> >
> >
> > On Tue, Sep 06, 2011 at 09:15:29PM +0200, Ton Muller 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