-
Notifications
You must be signed in to change notification settings - Fork 881
Monit toptalker.php script #9156
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
base: master
Are you sure you want to change the base?
Conversation
Added note about the required Tests
|
It’s probably better to add this as an example to the docs combined with documentation about how people should use your script. our core repository isn’t the right place for examples |
|
Aren't the other scripts in this directory not also 'examples' ? And all of the current 3 examples on https://docs.opnsense.org/manual/monit.html does not use any custom scripts. So if you want to add a 4th example you need to place the sourcecode in the documentation (the wrong place in my opinion). I think it would be a good compromise, to add the file in the repository and write in an Example 4, how to use/enable it in the GUI. For other 3rd party stuff you have the plugin solution, but for such scripts this is not the way to go. |
|
To some degree these are examples, but with little to no maintenance needs as they literally only return a yes/no situation without further content. We imported Monit in core a long time ago, and in all fairness, we shouldn't have done that as the script execution hooks don't fit our standards. If you're using these scripts in your training program, it might be better to host this part of the material on your end with a small instruction for people how to use them. In which case it's also not an issue to add marketing text in the email as is the case in this script (2BSD clause copyright claims are always fine, adding company names and websites and output obviously isn't). In time someone need to document and maintain these scripts as they are technical dept waiting to happen, which we unfortunately can not be responsible for. |
|
I don't want to dispute with you, but ... OPNsense (c) 2014-2025 Deciso B.V. with link is directly on the main page of the GUI. ;) I thought, since users requested such a feature, I make it public for all OPNsense users. So ... |
I don't think I need to explain ownership of OPNsense and it's trademark.
for plugins that's allowed to some extend, usually there's a clear free version of the functionality in question, in some cases the plugin merely points to the place where to register for an account and isn't even maintained by said company.
We're not planning to use it, so feel free to close the PR. |
During a training program a few participants asked for the possibility to get toptalkers via e-mail.
So I searched for an acceptable and easy way to do this.
I'm using Monit, because of the easy SMTP configuration and the possibility of using cron like execution timeplan.
NetFlow with local capture needs to be active.
I think this is a very usefull script and it should be public available.
It would be also nice if someone creates a migration file to create a disabled service entry in Monit, maybe with '1 cycles' as
default poll time. The interface is not needed at the first time, because it is written in the alert that it is needed.
Also running of NetFlow is checked.
Of course you can test it 'by hand': ./toptalker.php vtnet0
Best regards