[smokeping-users] FreeBSD 9 x64 + SmokePing 2.6.7 - New targets don't show up
Jim Long
smokeping at museum.rain.com
Tue Nov 6 03:37:34 CET 2012
Hopefully not to muddle things further, but ....
www needs READ access to /usr/local/var/smokeping (and all below)
Seth mentioned write acess -- I don't know of any reason why www
needs WRITE access to /usr/local/var/smokeping. But I could be
ignorant of what the reason is. My FreeBSD smokeping
installation works with www having only read-only access. It
provides a modest security measure also, so that if your www user
gets cracked, they can't damage smokeping's .rrd file data.
Perhaps the simplest way to give www read access to the 'datadir'
heirarchy is:
chown -R smokeping:www /usr/local/var/smokeping
and then make sure that all your files under
/usr/local/var/smokeping are chmod 640 and dirs chmod 750. No
need to mess with groups in /etc/group.
find /usr/local/var/smokeping -type d | xargs chmod 750
find /usr/local/var/smokeping -type f | xargs chmod 640
www does need WRITE access to /usr/local/smokeping/htdocs/img,
because the www creates graphs on-demand when a web client
requests them, and stores the generated graphs under
/usr/local/smokeping/htdocs/img.
I hope this helps! :)
Jim
On Mon, Nov 05, 2012 at 10:48:30PM +0000, Seth Lyons wrote:
> To be more clear, both smokeping and www need write access. On my FreeBSD/smokeping boxes, I add www to the smokeping group.
>
> -----Original Message-----
> From: Joshua M. Andrews [mailto:joshua at qcsitter.com]
> Sent: Monday, November 05, 2012 5:43 PM
> To: Seth Lyons
> Cc: smokeping-users at lists.oetiker.ch
> Subject: Re: [smokeping-users] FreeBSD 9 x64 + SmokePing 2.6.7 - New targets don't show up
>
> When I did that the graphs stopped reporting completely. :( It seems on my FreeBSD box it prefers the owner to be smokeping:smokeping to work.
> Any other suggestions or data I can provide?
>
> - Joshua
>
> On 11/5/2012 3:13 PM, Seth Lyons wrote:
> > Make sure that your www user can write to /usr/local/var/smokeping.
> >
> > -----Original Message-----
> > From: smokeping-users-bounces+slyons=fxcm.com at lists.oetiker.ch
> > [mailto:smokeping-users-bounces+slyons=fxcm.com at lists.oetiker.ch] On
> > Behalf Of Joshua M. Andrews
> > Sent: Monday, November 05, 2012 3:30 PM
> > To: smokeping-users at lists.oetiker.ch
> > Subject: [smokeping-users] FreeBSD 9 x64 + SmokePing 2.6.7 - New
> > targets don't show up
> >
> > Tech Specs:
> > ---------------
> >
> > FreeBSD 9.0-RELEASE
> > SmokePing 2.6.7
> > Apache 2.2
> >
> > Config Excerpt:
> > ---------------------
> >
> > + Network
> > menu = Targets
> >
> > ++ QCSitter
> > menu = QCSitter
> > title = WWW - QCSitter.com
> > host = www.qcsitter.com
> >
> > + Services
> > menu = Services (DNS)
> > title = DNS
> >
> > ++ DNS
> >
> > probe = DNS
> >
> > menu = Latency
> > title = Service latency (DNS)
> >
> > +++ GoogleDNS
> > host = 8.8.8.8
> >
> > That is an excerpt of what I have working properly. So, now I add a new target like this:
> >
> > + Network
> > menu = Targets
> >
> > ++ QCSitter
> > menu = QCSitter
> > title = WWW - QCSitter.com
> > host = www.qcsitter.com
> >
> > ++ TestTarget
> > menu = TestTarget
> > title = Test Target
> > host = 8.8.4.4
> >
> > So then I do: smokeping reload (also tried restart). I then wait 20 minutes and no graphs show up. So I tail the log and get the following:
> >
> > Mon Nov 5 14:16:59 2012 - Reloading configuration.
> > Mon Nov 5 14:16:59 2012 - Got HUP signal, exiting gracefully.
> > Mon Nov 5 14:16:59 2012 - Got HUP signal, exiting gracefully.
> > Mon Nov 5 14:16:59 2012 - Exiting due to HUP signal.
> > Mon Nov 5 14:16:59 2012 - Exiting due to HUP signal.
> > Mon Nov 5 14:16:59 2012 - Waiting for child processes to terminate.
> > Mon Nov 5 14:16:59 2012 - Child processes terminated, restarting with new configuration.
> > Mon Nov 5 14:16:59 2012 - Entering multiprocess mode.
> > Mon Nov 5 14:16:59 2012 - Child process 68606 started for probe FPing.
> > Mon Nov 5 14:16:59 2012 - Child process 68607 started for probe DNS.
> > Mon Nov 5 14:16:59 2012 - FPing: probing 7 targets with step 300 s and offset 239 s.
> > Mon Nov 5 14:16:59 2012 - All probe processes started successfully.
> > Mon Nov 5 14:16:59 2012 - DNS: probing 3 targets with step 300 s and offset 179 s.
> >
> > You can see that it reloaded and then restarted and that all my targets and working fine. There are no other logs to report after that. I then check Apache's logs and find nothing out of the ordinary. It just seems that SmokePing isn't generating the graphs for the new entries, it's only keeping the ones that were already there.
> >
> > What am I missing?
> >
> > - Joshua
> >
> > _______________________________________________
> > 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