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

Enhanced ping monitor with advanced options (count, timeout, numeric) #5588

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

filippolauria
Copy link

⚠️⚠️⚠️ Since we do not accept all types of pull requests and do not want to waste your time. Please be sure that you have read pull request rules:
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]:

  • I have read and understand the pull request rules.

Description

This PR enhances ping monitoring capabilities by introducing advanced configuration options that give users more control over ping behavior:

  • Max Packets (count): Specify how many packets to send before stopping
  • Maximum Duration (deadline): Set total time limit for the ping operation
  • Response Timeout (timeout): Control how long to wait for each packet response
  • Numeric Output (numeric): Choose between IP addresses or hostnames in ping output

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

  • User interface (UI)
  • New feature (non-breaking change which adds functionality)

Checklist

  • My code follows the style guidelines of this project
  • I ran ESLint and other linters for modified files
  • I have performed a self-review of my own code and tested it
  • I have commented my code, particularly in hard-to-understand areas (including JSDoc for methods)
  • My changes generates no new warnings
  • My code needed automated testing. I have added them (this is optional task)

Screenshots (if any)

image

filippolauria and others added 9 commits January 31, 2025 13:51
…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
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

Successfully merging this pull request may close these issues.

1 participant