<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<title>Re: [smokeping-users] New to SmokePing and having issues with configuring it</title>
<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:12.0pt;
font-family:"Times New Roman",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;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></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]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">I’m most certain it’s not a problem with smokeping itself, just my lack of comprehension on the FAQ which I did read.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">This is on Ubuntu 10.04 LTS, I know I should have included that in the first message.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">The following is what happens when I try and start it in debug mode. Apparently I need to change the owner of the /opt/smokeping folder to something so that the
daemon can write in there? I’m not clear on what the daemon runs as.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Log:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">### Compiling alert detector pattern 'someloss'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">### >0%,*12*,>0%,*12*,>0%<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">sub {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> my $d = shift;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> my $y = $d->{loss};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> for(1){<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> my $imax2 = min(@$y - 3, 12);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> my $imax1 = min(@$y - 3, 12);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> my $minlength = 3;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> my $maxlength = 27;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> next if scalar @$y < $minlength ;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> my $i1;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> for($i1=0; $i1 < min($maxlength,$imax1); $i1++){<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> my $i2;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> for($i2=0; $i2 < min($maxlength-$i1,$imax2); $i2++){<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> next unless defined $y->[-3-$i1-$i2]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> and $y->[-3-$i1-$i2] =~ /^\d/<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> and $y->[-3-$i1-$i2] > 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> ; last;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> return 0 if $i2 >= min($maxlength-$i1-$i2,$imax2);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> next unless defined $y->[-2-$i1]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> and $y->[-2-$i1] =~ /^\d/<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> and $y->[-2-$i1] > 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> ; last;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> return 0 if $i1 >= min($maxlength-$i1,$imax1);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> next unless defined $y->[-1]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> and $y->[-1] =~ /^\d/<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> and $y->[-1] > 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> ; return 1;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> return 0;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">ERROR: mkdir /opt/smokeping/data/Test: Permission denied<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">When I try to change ownership with chown for the /opt/smokeping/data folder to smokeping:www-data I get invalid user ‘smokeping:www-data’<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Gregory Sloop [mailto:gregs@sloop.net]
<br>
<b>Sent:</b> Tuesday, November 03, 2015 3:43 PM<br>
<b>To:</b> Ben Wright <benw@coriumintl.com><br>
<b>Cc:</b> smokeping-users@lists.oetiker.ch<br>
<b>Subject:</b> Re: [smokeping-users] New to SmokePing and having issues with configuring it<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:9.0pt;font-family:"Courier New"">See the FAQ. Honestly, it solves like 90% of the questions.<br>
</span><a href="https://github.com/oetiker/SmokePing/wiki/FAQ"><span style="font-size:9.0pt;font-family:"Courier New"">https://github.com/oetiker/SmokePing/wiki/FAQ</span></a>
<br>
<br>
<span style="font-size:9.0pt;font-family:"Courier New"">Also, selinux and/or the Ubuntu/debian equivalent. [I can't ever remember the name] They can cause lots of problems. Set them as permissive, or completely disable them. Once you've got a working setup,
you can turn them back on and tweak as needed.<br>
<br>
As an feeble attempt to offer a suggestion, given the paucity of data from you: Can the user who started SP in debug mode create these directories/files from a manual command line (i.e. mkdir -p
</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">/opt/smokeping/data/test)</span><span style="font-size:9.0pt;font-family:"Courier New"">? If not, then it's a permissions problem, not a smokeping problem.<br>
<br>
If the above doesn't help: [But really, follow the docs and the FAQ. Do a search on the mailing list archives. You'll almost certainly find a similar situation and fix there.]<br>
<br>
<br>
1) A debug log would be good. :)<br>
2) We'd also like to know what distribution and version, and how you installed SP. [Sources or packages?]<br>
3) Perhaps strip the log-file to minimums - and if it doesn't work, post the [minimum] config.<br>
[You'll have to provide a lot more detail than you've done for us to help you.]<br>
<br>
-Greg<br>
<br>
</span><o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td width="2" style="width:1.5pt;background:blue;padding:.75pt .75pt .75pt .75pt">
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">I left out that I’m using Ubuntu 10.04 LTS.<br>
<br>
</span><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> smokeping-users [<a href="mailto:smokeping-users-bounces+benw=coriumintl.com@lists.oetiker.ch">mailto:smokeping-users-bounces+benw=coriumintl.com@lists.oetiker.ch</a>]
<b>On Behalf Of </b>Ben Wright<br>
<b>Sent:</b> Tuesday, November 03, 2015 3:26 PM<br>
<b>To:</b> <a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><br>
<b>Subject:</b> [smokeping-users] New to SmokePing and having issues with configuring it<br>
<br>
I’m stuck with permissions and whichever folders. So far I’ve got it compiled and all modules included, but when I go to start the daemon in debug mode, it stops at the point where it is trying to make the /opt/smokeping/data/test directory with a permission
denied notice.<br>
<br>
I’m also confused on what needs to happen to get the web interface working.<br>
<br>
Looking forward to using this product, once I get it configured correctly.<br>
<br>
<br>
</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">CONFIDENTIALITY NOTICE: This e-mail transmission, and any attachments, is intended only for the use of the individual<br>
<br>
or entity named above and may contain information that is confidential, privileged and exempt from disclosure under<br>
<br>
applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution<br>
<br>
or use of any of the information contained in this transmission is strictly PROHIBITED.<br>
<br>
CONFIDENTIALITY NOTICE: This e-mail transmission, and any attachments, is intended only for the use of the individual<br>
<br>
or entity named above and may contain information that is confidential, privileged and exempt from disclosure under<br>
<br>
applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution<br>
<br>
or use of any of the information contained in this transmission is strictly PROHIBITED.</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><br>
<br>
<i><span style="font-family:"Arial",sans-serif;color:silver">-- <br>
Gregory Sloop, Principal: Sloop Network & Computer Consulting<br>
Voice: 503.251.0452 x82<br>
EMail: </span></i><a href="mailto:gregs@sloop.net"><span style="font-family:"Arial",sans-serif">gregs@sloop.net</span></a><br>
<a href="http://www.sloop.net"><span style="font-family:"Arial",sans-serif">http://www.sloop.net</span></a><br>
<i><span style="font-family:"Arial",sans-serif;color:silver">---</span></i><o:p></o:p></p>
</div>
</body>
</html>
<pre>
CONFIDENTIALITY NOTICE: This e-mail transmission, and any attachments, is intended only for the use of the individual
or entity named above and may contain information that is confidential, privileged and exempt from disclosure under
applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution
or use of any of the information contained in this transmission is strictly PROHIBITED.</pre>