Smokeping issues on 5.6

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Smokeping issues on 5.6

Mxher
Hi all,

I'm not able to start Smokeping on my (recently installed) OpenBSD 5.6.

Here is the issue:
# smokeping --debug --nodaemon
Dropping privileges to _smokeping ...
require Smokeping::probes::FPing6 failed: Can't locate
Smokeping/probes/FPing6.pm:   Permission denied at (eval 25) line 2,
<File> line 110.


/etc/smokeping# grep -i fping config

+ FPing
binary = /usr/local/sbin/fping
+ FPing6
binary = /usr/local/sbin/fping6
probe = FPing
probe = FPing6
probe = FPing6
probe = FPing6
probe = FPing6
probe = FPing6
probe = FPing6


# sha1 /usr/local/lib/Smokeping/probes/FPing6.pm
/usr/local/lib/Smokeping/probes/FPing.pm
SHA1 (/usr/local/lib/Smokeping/probes/FPing6.pm) =
cb5012474ab1a04f1a364fcf44accffba4621844
SHA1 (/usr/local/lib/Smokeping/probes/FPing.pm) =
7b0acd7b6afb490398892d4863ebbb4f91b275a4


Am I missing something? Any ideas?

Thanks.

Mxher

Reply | Threaded
Open this post in threaded view
|

Re: Smokeping issues on 5.6

Bryan Irvine
Probably need to setuid root the fping binaries so the _smokeping user can
run it.

On Thu, Nov 13, 2014 at 12:34 PM, Mxher <[hidden email]> wrote:

> Hi all,
>
> I'm not able to start Smokeping on my (recently installed) OpenBSD 5.6.
>
> Here is the issue:
> # smokeping --debug --nodaemon
> Dropping privileges to _smokeping ...
> require Smokeping::probes::FPing6 failed: Can't locate
> Smokeping/probes/FPing6.pm:   Permission denied at (eval 25) line 2,
> <File> line 110.
>
>
> /etc/smokeping# grep -i fping config
>
> + FPing
> binary = /usr/local/sbin/fping
> + FPing6
> binary = /usr/local/sbin/fping6
> probe = FPing
> probe = FPing6
> probe = FPing6
> probe = FPing6
> probe = FPing6
> probe = FPing6
> probe = FPing6
>
>
> # sha1 /usr/local/lib/Smokeping/probes/FPing6.pm
> /usr/local/lib/Smokeping/probes/FPing.pm
> SHA1 (/usr/local/lib/Smokeping/probes/FPing6.pm) =
> cb5012474ab1a04f1a364fcf44accffba4621844
> SHA1 (/usr/local/lib/Smokeping/probes/FPing.pm) =
> 7b0acd7b6afb490398892d4863ebbb4f91b275a4
>
>
> Am I missing something? Any ideas?
>
> Thanks.
>
> Mxher

Reply | Threaded
Open this post in threaded view
|

Re: Smokeping issues on 5.6

Mxher
Le 13/11/2014 21:42, Bryan Irvine a écrit :
> Probably need to setuid root the fping binaries so the _smokeping user can
> run it.
>
It could be a good start, I will look into this.

In the same time I did more tests and it seems to work using cron...
I think that I need a break; I will check this again later.

Thanks.


> On Thu, Nov 13, 2014 at 12:34 PM, Mxher <[hidden email]> wrote:
>
>> Hi all,
>>
>> I'm not able to start Smokeping on my (recently installed) OpenBSD 5.6.
>>
>> Here is the issue:
>> # smokeping --debug --nodaemon
>> Dropping privileges to _smokeping ...
>> require Smokeping::probes::FPing6 failed: Can't locate
>> Smokeping/probes/FPing6.pm:   Permission denied at (eval 25) line 2,
>> <File> line 110.
>>
>>
>> /etc/smokeping# grep -i fping config
>>
>> + FPing
>> binary = /usr/local/sbin/fping
>> + FPing6
>> binary = /usr/local/sbin/fping6
>> probe = FPing
>> probe = FPing6
>> probe = FPing6
>> probe = FPing6
>> probe = FPing6
>> probe = FPing6
>> probe = FPing6
>>
>>
>> # sha1 /usr/local/lib/Smokeping/probes/FPing6.pm
>> /usr/local/lib/Smokeping/probes/FPing.pm
>> SHA1 (/usr/local/lib/Smokeping/probes/FPing6.pm) =
>> cb5012474ab1a04f1a364fcf44accffba4621844
>> SHA1 (/usr/local/lib/Smokeping/probes/FPing.pm) =
>> 7b0acd7b6afb490398892d4863ebbb4f91b275a4
>>
>>
>> Am I missing something? Any ideas?
>>
>> Thanks.
>>
>> Mxher

Reply | Threaded
Open this post in threaded view
|

Re: Smokeping issues on 5.6

Stuart Henderson
In reply to this post by Mxher
On 2014-11-13, Mxher <[hidden email]> wrote:
> Hi all,
>
> I'm not able to start Smokeping on my (recently installed) OpenBSD 5.6.

A similar problem was reported by Lars Hecking a couple of weeks
ago, please try updating your ports tree to OPENBSD_5_6_STABLE and
rebuild the package.

Reply | Threaded
Open this post in threaded view
|

Re: Smokeping issues on 5.6

Mxher
Hello Stuart,

Le 16/11/2014 22:23, Stuart Henderson a écrit :
> On 2014-11-13, Mxher <[hidden email]> wrote:
>> Hi all,
>>
>> I'm not able to start Smokeping on my (recently installed) OpenBSD 5.6.
>
> A similar problem was reported by Lars Hecking a couple of weeks
> ago, please try updating your ports tree to OPENBSD_5_6_STABLE and
> rebuild the package.
>

It's working! I don't need to start smokeping via cron anymore.

I saw the thread started by Lars Hecking but I didn't understand it was
the same issue; I should have tried OPENBSD_5_6_STABLE anyway.

Thanks!