Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Package: SmokePing #21

Open
rplessl opened this issue Mar 21, 2021 · 9 comments
Open

New Package: SmokePing #21

rplessl opened this issue Mar 21, 2021 · 9 comments

Comments

@rplessl
Copy link

rplessl commented Mar 21, 2021

As a big Smokeping fan I miss this package in the OpnSense distribution (the possibility for probes, not the Apache Head).

I read in your teaser that you would like to add this to your opn-repo. What is the status of this?

I would be happy to support on this as well.

Best Regards, Roman

@mimugmail
Copy link
Owner

Hi, big Smokeping fan here too, but it has endless depedencies, I tried it one time and I had around 50 perl modules and with every I added there were 2 new dependecies for the new ones.

@rplessl
Copy link
Author

rplessl commented Mar 25, 2021

I will create an install script, test that on my build box and will attach that to this issue.
(Not the first time that I create that for smokeping)

@mimugmail
Copy link
Owner

Ok, if you got it working I can have a look :)

@rplessl
Copy link
Author

rplessl commented Mar 29, 2021

Hi Michael,

I got Smokeping running on my opnsense development machine. I made two compilations: one with the source code and tag of Smokeping 2.7.3, and one with the latest state of master (tagged as Smokeping 2.8.0pre).

You will find my compile and run script here on GitHub:

prunux/SmokePing#4

I also tried to shape and build the OpnSense Plugin myself (based on the example of the telegraf plugin):

https://github.com/prunux/plugins/pull/2

and build an FreeBSD ports package for "smokeping-slave" myself (but then stumbled across the pkg build system, which is unknown to me).

https://github.com/prunux/ports/pull/1

Could you be so kind and look at my tests and experiments?

let me know if you want me to do the pull requests against one of your repositories. And if everything could be also add to the main opnsense plugins that would be even better :)

Thanks and Best Regards,
Roman

@mimugmail
Copy link
Owner

Thx for your work Roman. Couple of questions as I never used the slave function.
Is there a separate binary/source for slave-only or is it just an option inside smokeping?
In the plugin I'm missing the templating of configuration? I see you can set the URL and secret but it's nowhere templated inside a config.

Maybe I'll give smokeping a last try as I redesigned my build process to give you every option you need.

@rplessl
Copy link
Author

rplessl commented Mar 30, 2021

Hi @mimugmail,

No there is no separate binary or source for slave-only Smokeping usage.

The only switch to choose this mode will be the startup parameters of Smokeping (master-url and slavesecret).
The Smokeping configuration files are not used even in this mode.
So there is no Config File Option to active the slave mode -> must be done in init startup script.

All template and plugins configuration components I have deliberately not added in the opnsense plugin, because the configuration happens on the master (and that should not or never an OpnSense instance from my point of view) and will be transfered to the slaves / clients.

@mimugmail
Copy link
Owner

pkg install smokeping

Can you work with it no matter if slave or full?

@rplessl
Copy link
Author

rplessl commented Mar 31, 2021

yes that works too (but has as you mentioned a lot of dependencies to p5-* packages)

@mimugmail
Copy link
Owner

It would be the same as with Slave only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants