[smokeping-users] New to SmokePing and having issues with configuring it

ITheodoridis at bankofgreece.gr ITheodoridis at bankofgreece.gr
Wed Nov 4 09:26:54 CET 2015


Just taking the opportunity to say hi to Greg. Nice to see you still active here buddy, I 'll try and help as much as I can from now on.
I need some help myself, when I get time I will post my issue..
Good morning everybody (it's 10:26 am here), a very sunny day in Athens Greece.

From: Gregory Sloop [mailto:gregs at sloop.net]
Sent: Wednesday, November 04, 2015 12:32 AM
To: Ben Wright
Cc: smokeping-users at lists.oetiker.ch
Subject: Re: [smokeping-users] New to SmokePing and having issues with configuring it

So, I still have almost none of information I asked for:

Given what you've said, I *assume* you didn't install using apt-get [i.e. a package.]

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.]

12.04 or 14.04 have fairly current versions of SP. [I use both, and have SP running on several installations in both versions.]

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.

--
1) A debug log would be good. :)
2) We'd also like to know what distribution and version, and how you installed SP. [Sources or packages?]
3) Perhaps strip the log-file to minimums - and if it doesn't work, post the [minimum] config.

We've got #1, but not #2 or #3.

---

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.]

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.

Good luck. I'm glad to try to keep helping - but I only have so much time/energy.

-Greg


I'm most certain it's not a problem with smokeping itself, just my lack of comprehension on the FAQ which I did read.

This is on Ubuntu 10.04 LTS, I know I should have included that in the first message.

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.

Log:


### Compiling alert detector pattern 'someloss'
### >0%,*12*,>0%,*12*,>0%
sub {
   my $d = shift;
   my $y = $d->{loss};
   for(1){
       my $imax2 = min(@$y - 3, 12);
       my $imax1 = min(@$y - 3, 12);
       my $minlength = 3;
       my $maxlength = 27;
       next if scalar @$y < $minlength ;
       my $i1;
       for($i1=0; $i1 < min($maxlength,$imax1); $i1++){
           my $i2;
           for($i2=0; $i2 < min($maxlength-$i1,$imax2); $i2++){
               next unless defined $y->[-3-$i1-$i2]
                               and $y->[-3-$i1-$i2] =~ /^\d/
                               and $y->[-3-$i1-$i2] > 0
                                    ;                last;
           }
           return 0 if $i2 >= min($maxlength-$i1-$i2,$imax2);
           next unless defined $y->[-2-$i1]
                           and $y->[-2-$i1] =~ /^\d/
                           and $y->[-2-$i1] > 0
                                ;            last;
       }
       return 0 if $i1 >= min($maxlength-$i1,$imax1);
       next unless defined $y->[-1]
                       and $y->[-1] =~ /^\d/
                       and $y->[-1] > 0
                            ;        return 1;
   }
   return 0;
}



ERROR: mkdir /opt/smokeping/data/Test: Permission denied




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'


From: Gregory Sloop [mailto:gregs at sloop.net]
Sent: Tuesday, November 03, 2015 3:43 PM
To: Ben Wright <benw at coriumintl.com<mailto:benw at coriumintl.com>>
Cc: smokeping-users at lists.oetiker.ch<mailto:smokeping-users at lists.oetiker.ch>
Subject: Re: [smokeping-users] New to SmokePing and having issues with configuring it

See the FAQ. Honestly, it solves like 90% of the questions.
https://github.com/oetiker/SmokePing/wiki/FAQ

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.

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 /opt/smokeping/data/test)? If not, then it's a permissions problem, not a smokeping problem.

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.]


1) A debug log would be good. :)
2) We'd also like to know what distribution and version, and how you installed SP. [Sources or packages?]
3) Perhaps strip the log-file to minimums - and if it doesn't work, post the [minimum] config.
[You'll have to provide a lot more detail than you've done for us to help you.]

-Greg

I left out that I'm using Ubuntu 10.04 LTS.

From: smokeping-users [mailto:smokeping-users-bounces+benw=coriumintl.com at lists.oetiker.ch] On Behalf Of Ben Wright
Sent: Tuesday, November 03, 2015 3:26 PM
To: smokeping-users at lists.oetiker.ch<mailto:smokeping-users at lists.oetiker.ch>
Subject: [smokeping-users] New to SmokePing and having issues with configuring it

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.

I'm also confused on what needs to happen to get the web interface working.

Looking forward to using this product, once I get it configured correctly.


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.

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.




--
Gregory Sloop, Principal: Sloop Network & Computer Consulting
Voice: 503.251.0452 x82
EMail: gregs at sloop.net<mailto:gregs at sloop.net>
http://www.sloop.net
---


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.



--
Gregory Sloop, Principal: Sloop Network & Computer Consulting
Voice: 503.251.0452 x82
EMail: gregs at sloop.net<mailto:gregs at sloop.net>
http://www.sloop.net
---
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20151104/b324c0d2/attachment-0001.html>
-------------- next part --------------
==============================================================================================================
?? ??? ????????? ?????? ??????? ??????????? ???. ???? ?????? ???????????? ???????????? ??? ??? ??????? ??? ??????? (???) ???????????? ????????? ???? ??? ?? ???????? ???? ??????????? ?? ?? ?????????? ? ???????? ????????? ? ???? ???????? ??? ???.

?? ?????? ???????????? ???????????? ??????????? ???? ???????????? ????? ??? ????????, ??? ?????? ? ????????? ??????????? ???? ??????????? ??? ?????????. ? ?????????? ??? ? ??? ??? ???????????? ?????? ?????? ??? ???????????, ????????? ??? ????????????, ??????? ? ????????????? ????????? ??? ?????????, ??? ???????, ??????? ? ?????????? ??? ????????? ? ??? ????????? ????? ??? ??? ???? ?? ????? ??? ????? ??????? ? ????? ?????? ??? ??? ??? ????? ???????????? ??????.

??? ?????? ???? ????? ?? ????? ?????? ???????????? ????????????, ??????????? ?? ???????????? ?????? ???? ???????????? ???????????? ??? ????????? ??? ?? ?????????? ?? ??????. ??????????? ??????????, ??????? ? ????? ?????? ? ????????? ??? ????????? ????? ????? ???????????? ??????? ??? ?????? ?? ???????? ??????? ??? ?????? ??????.


Any e-mail message from the Bank of Greece (BoG) is sent in good faith but shall neither be binding nor construed as constituting or affecting a contractual arrangement or other commitment by the BoG.

The e-mail is intended for the exclusive use of the person whose e-mail address appears in caption as recipient. The sender and the BoG decline liability for inaccuracy, breach of integrity, loss or delayed delivery of the message, for any failure in, interruption to or degradation of either the service or the message, as well as for any loss or damage sustained thereof to the fullest extent provided by law.

If this e-mail was not intended for you, please notify the sender immediately via e-mail and delete it at once. Any unauthorized disclosure, dissemination or use, either in whole or in part is strictly prohibited and may give rise to both criminal and civil liability. All rights reserved.
==============================================================================================================




More information about the smokeping-users mailing list