-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Enhanced ping monitor with advanced options (count, timeout, numeric) #5588
base: master
Are you sure you want to change the base?
Conversation
…vior: - ping_count: number of packets to send - ping_deadline: maximum total duration - ping_timeout: time to wait for each response - ping_numeric: output IP addresses instead of hostnames
Added MIN/MAX/DEFAULT constants for: - ping count - ping deadline - ping timeout - and packet size, too.
…dation using ping MIN/MAX constants in monitor
- Added advanced parameters (count, deadline, timeout) - Updated parameter names for clarity - Used constants for default values - Improved method and parameter documentation
Added form fields to configure: - packet count - timeout - deadline - numeric output option in monitor creation/edit view
Hi @louislam and other mainteiners! Just checking in on this PR. All checks are passing and I'm happy to address any feedback or concerns you might have. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a quick glance over the code and commented where things need a bit more work.
Seems overall reasonable to me.
I have not had time to properly test that all code works as advertised ^^.
I don't like how messy the code for EditMonitor
is becoming and that whole verifying parameters 2x and in different places is not great..
This is not your fault and should not be fixed in this PR.
You also stumbled into the big old_migrations
pit.. sorry for that
Does this pr have the ability to satisfuy this feature request? |
@dredvard This PR maps some advanced options ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still not happy with the third timeout field. This is not something that requires being "special" => let's not be special
@CommanderStorm , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from my side then.
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma
Tick the checkbox if you understand [x]:
Description
This PR enhances ping monitoring capabilities by introducing advanced configuration options that give users more control over ping behavior:
These options match the standard ping command features, making the monitoring system more flexible and suitable for different network scenarios. Each option has been implemented with proper validation boundaries and default values.
This PR is kinda related to issue #5552
Type of change
Checklist
Screenshots (if any)