<html><head><title>Re: [smokeping-users] New to SmokePing and having issues with configuring it</title>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
</head>
<body>
<span style=" font-family:'Courier New'; font-size: 9pt;">Yeah. It won't state any of that on the SP page. It's dependent on whatever distro's maintainers, if they'll include it or not, and/or what version they'll include. [You'd have to document a whole ton of distro's and different versions etc. And for everyone but the real newbies [no offense intended] it will be completely expected that everyone would know and know how to check.<br>
<br>
'apt-get install smokeping' [It will also take care of dependencies etc - which can be a real pain, esp for things with a lot of perl modules.]<br>
<br>
'apt-cache search some-search-term' or even 'apt-cache search some-search-term | grep some-additional-search-term' can help find things.<br>
<br>
-Greg<br>
<br>
<br>
</span><table>
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><span style=" font-family:'times new roman'; font-size: 11pt; color: #1f497d;">So, there’s an apt-get package? The installation page didn’t indicate that as I was following the install guide from there.<br>
 <br>
I started with getting the 2.6.11 tarball, but I’m leaving that behind for use of the apt-get package.<br>
 <br>
Thanks for taking the time out of your busy day.<br>
 <br>
<span style=" color: #000000;"><b>From:</b> Gregory Sloop [mailto:gregs@sloop.net] <br>
<b>Sent:</b> Tuesday, November 03, 2015 5:32 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<br>
 <br>
<span style=" font-size: 9pt;">So, I still have almost none of information I asked for:<br>
<br>
Given what you've said, I *assume* you didn't install using apt-get [i.e. a package.]<br>
<br>
If you didn't, you don't get ANY of the helps that a package does - like creating the users and groups - like the "smokeping" user/group. [So you'll have to do it yourself.] This is also a good reason to stay fairly current in your distro. [Is 10.04 still supported? I guess it might be - but the version of SP on 10.04 is going to be pretty old.]<br>
<br>
12.04 or 14.04 have fairly current versions of SP. [I use both, and have SP running on several installations in both versions.]<br>
<br>
The daemon [when in debug mode], will be running as whomever you are logged in as. I'd assume you're not running as root, so it's likely you won't have permissions.<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>
<br>
We've got #1, but not #2 or #3.<br>
<br>
---<br>
<br>
As noted in a post I just made - this really looks like a "lack of experience" problem. While I really do sympathize - there's not a lot I can do to ease the pain of learning. [Short of a *lot* of hand-holding - which I don't have time to do, and which is pretty costly in terms of lost time/earnings for me.]<br>
<br>
Get a good linux book. Do a bunch of googling - it's just going to take a lot of time and effort. A good in-person class _might_ be helpful - but those can be dicey.<br>
<br>
Good luck. I'm glad to try to keep helping - but I only have so much time/energy.<br>
<br>
-Greg<br>
<br>
</span></span></span><table>
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><span style=" font-family:'times new roman'; font-size: 11pt; 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.<br>
<br>
This is on Ubuntu 10.04 LTS, I know I should have included that in the first message.<br>
<br>
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.<br>
<br>
Log:<br>
<br>
<br>
### Compiling alert detector pattern 'someloss'<br>
### >0%,*12*,>0%,*12*,>0%<br>
sub {<br>
   my $d = shift;<br>
   my $y = $d->{loss};<br>
   for(1){<br>
       my $imax2 = min(@$y - 3, 12);<br>
       my $imax1 = min(@$y - 3, 12);<br>
       my $minlength = 3;<br>
       my $maxlength = 27;<br>
       next if scalar @$y < $minlength ;<br>
       my $i1;<br>
       for($i1=0; $i1 < min($maxlength,$imax1); $i1++){<br>
           my $i2;<br>
           for($i2=0; $i2 < min($maxlength-$i1,$imax2); $i2++){<br>
               next unless defined $y->[-3-$i1-$i2]<br>
                               and $y->[-3-$i1-$i2] =~ /^\d/<br>
                               and $y->[-3-$i1-$i2] > 0<br>
                                    ;                last;<br>
           }<br>
           return 0 if $i2 >= min($maxlength-$i1-$i2,$imax2);<br>
           next unless defined $y->[-2-$i1]<br>
                           and $y->[-2-$i1] =~ /^\d/<br>
                           and $y->[-2-$i1] > 0<br>
                                ;            last;<br>
       }<br>
       return 0 if $i1 >= min($maxlength-$i1,$imax1);<br>
       next unless defined $y->[-1]<br>
                       and $y->[-1] =~ /^\d/<br>
                       and $y->[-1] > 0<br>
                            ;        return 1;<br>
   }<br>
   return 0;<br>
}<br>
<br>
<br>
<br>
ERROR: mkdir /opt/smokeping/data/Test: Permission denied<br>
<br>
<br>
<br>
<br>
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’<br>
<br>
<br>
<span style=" color: #000000;"><b>From:</b> Gregory Sloop [</span></span><a style=" font-family:'times new roman'; font-size: 11pt;" href="mailto:gregs@sloop.net">mailto:gregs@sloop.net</a><span style=" font-family:'times new roman'; font-size: 11pt;">] <br>
<b>Sent:</b> Tuesday, November 03, 2015 3:43 PM<br>
<b>To:</b> Ben Wright <</span><a style=" font-family:'times new roman'; font-size: 11pt;" href="mailto:benw@coriumintl.com">benw@coriumintl.com</a><span style=" font-family:'times new roman'; font-size: 11pt;">><br>
<b>Cc: </b></span><a style=" font-family:'times new roman'; font-size: 11pt;" href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><br>
<span style=" font-family:'times new roman'; font-size: 11pt;"><b>Subject:</b> Re: [smokeping-users] New to SmokePing and having issues with configuring it<br>
<br>
<span style=" font-size: 9pt;">See the FAQ. Honestly, it solves like 90% of the questions.<br>
</span></span><a style=" font-family:'times new roman'; font-size: 9pt;" href="https://github.com/oetiker/SmokePing/wiki/FAQ">https://github.com/oetiker/SmokePing/wiki/FAQ</a> <br>
<br>
<span style=" font-family:'times new roman'; font-size: 9pt;">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 style=" font-size: 11pt;">/opt/smokeping/data/test)<span style=" font-size: 9pt;">? 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>
</span></span></span><table>
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><span style=" font-family:'times new roman'; font-size: 11pt; color: #1f497d;">I left out that I’m using Ubuntu 10.04 LTS.<br>
<br>
<span style=" color: #000000;"><b>From:</b> smokeping-users [</span></span><a style=" font-family:'times new roman'; font-size: 11pt;" href="mailto:smokeping-users-bounces+benw=coriumintl.com@lists.oetiker.ch">mailto:smokeping-users-bounces+benw=coriumintl.com@lists.oetiker.ch</a><span style=" font-family:'times new roman'; font-size: 11pt;">] <b>On Behalf Of </b>Ben Wright<br>
<b>Sent:</b> Tuesday, November 03, 2015 3:26 PM<br>
<b>To: </b></span><a style=" font-family:'times new roman'; font-size: 11pt;" href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><br>
<span style=" font-family:'times new roman'; font-size: 11pt;"><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 style=" font-size: 10pt;">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.</td>
</tr>
</table>
<br><br>
<br>
<br>
<span style=" font-family:'times new roman'; font-size: 12pt; color: #c0c0c0;"><i>-- <br>
Gregory Sloop, Principal: Sloop Network & Computer Consulting<br>
Voice: 503.251.0452 x82<br>
EMail: </i></span><a style=" font-family:'times new roman'; font-size: 12pt;" href="mailto:gregs@sloop.net">gregs@sloop.net</a><br>
<a style=" font-family:'times new roman'; font-size: 12pt;" href="http://www.sloop.net">http://www.sloop.net</a><br>
<span style=" font-family:'times new roman'; font-size: 12pt; color: #c0c0c0;"><i>---<br>
<br>
<br>
</i><span style=" font-size: 9pt; color: #000000;">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.</td>
</tr>
</table>
<br><br>
<br>
<span style=" font-family:'times new roman'; font-size: 12pt; color: #c0c0c0;"><i>-- <br>
Gregory Sloop, Principal: Sloop Network & Computer Consulting<br>
Voice: 503.251.0452 x82<br>
EMail: </i></span><a style=" font-family:'times new roman'; font-size: 12pt;" href="mailto:gregs@sloop.net">gregs@sloop.net</a><br>
<a style=" font-family:'times new roman'; font-size: 12pt;" href="http://www.sloop.net">http://www.sloop.net</a><br>
<span style=" font-family:'times new roman'; font-size: 12pt; color: #c0c0c0;"><i>---<br>
<br>
<br>
</i><span style=" font-family:'courier new'; font-size: 9pt; color: #000000;">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.</td>
</tr>
</table>
<br><br>
<span style=" font-family:'arial'; color: #c0c0c0;"><i>-- <br>
Gregory Sloop, Principal: Sloop Network & Computer Consulting<br>
Voice: 503.251.0452 x82<br>
EMail: </i></span><a style=" font-family:'arial';" href="mailto:gregs@sloop.net">gregs@sloop.net</a><br>
<a style=" font-family:'arial';" href="http://www.sloop.net">http://www.sloop.net</a><br>
<span style=" font-family:'arial'; color: #c0c0c0;"><i>---</body></html>