<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
The SmokePing poller typically does not run under the Apache user's
context -- it will typically run under its own account (smokeping,
_smokeping, etc), depending on your particular platform and how you've
configured it.<br>
<br>
You should check what user was created during the port install, and set
that user to be the owner of that directory.<br>
<br>
- Peter<br>
<br>
<br>
Kim Ford wrote:
<blockquote
cite="mid:9BE28B989A4BAB4FABF37F35FBDC7E910A6CB16B8C@aw-exchange-01"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This is my first time trying to install
SmokePing. I
installed using ports on a FreeBSD machine to learn.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m getting the following error trying to start
SmokePing:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Starting smokeping.<o:p></o:p></p>
<p class="MsoNormal">### assuming you are using an fping copy
reporting in
milliseconds<o:p></o:p></p>
<p class="MsoNormal">ERROR: mkdir
/usr/local/etc/smokeping/tmp/data/mysite2:
Permission denied<o:p></o:p></p>
<p class="MsoNormal">/usr/local/etc/rc.d/smokeping: WARNING: failed
to start
smokeping<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I created the tmp directory under
/usr/local/etc/smokeping/
for lack of any documentation I could dig up.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Permissions on this directory are:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[root@freebsd /usr/local/etc/smokeping]# ls -al
tmp<o:p></o:p></p>
<p class="MsoNormal">total 8<o:p></o:p></p>
<p class="MsoNormal">drwxr-xr-x 4 www www 512
Feb 3 00:11 .<o:p></o:p></p>
<p class="MsoNormal">drwxr-xr-x 3 root wheel 512 Feb 3
00:12 ..<o:p></o:p></p>
<p class="MsoNormal">drwxr-xr-x 2 www www 512
Feb 3 00:11 data<o:p></o:p></p>
<p class="MsoNormal">drwxr-xr-x 2 www www 512
Feb 3 00:11 var<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m assuming that smokeping runs under the
Apache www
account. Everything does work if chmod 777 the temp dir, but I don’t
think that’s good practice.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">What’s the proper permission to set here?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks mucho,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kim<o:p></o:p></p>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
smokeping-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a>
<a class="moz-txt-link-freetext" href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users">https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a>
</pre>
</blockquote>
</body>
</html>