Skip to content

Feature: Ping monitor improvements - #3753

Merged
mergify[bot] merged 17 commits into
mainfrom
feature/ping-monitor-improvements
Nov 29, 2026
Merged

mergify[bot] merged 17 commits into
mainfrom
feature/ping-monitor-improvements

Conversation

@BornToBeRoot

Copy link
Copy Markdown
Owner

Description

See commits

Related issue

#3609

Type of change

  • 🐛 Bug fix
  • ✨ New feature / improvement
  • 📖 Documentation / website
  • 🧹 Refactoring / maintenance (no functional change)

agent and others added 15 commits November 29, 2026 01:33
… host limit

- B2/B12/B10: HostMonitor (Models) replaces the blocking Ping loop
  (Task.Run + sync Send + Thread.Sleep): SendPingAsync + Task.Delay with
  the token, Stopped is raised in finally (also if paused before start),
  Pause is immediate. Probe-agnostic (IHostMonitorProbe, ICMP probe only),
  prepared for TCP / HTTP.
- N1: every state change of a host happens on the UI thread (one
  BeginInvoke per ping as before), late events of a previous run are
  ignored.
- B4: an exception (PingException) counts as lost ping (IPStatus.Unknown)
  with the message as tooltip; the host keeps pinging.
- B7: the known hostname is passed to the monitor, the PTR record is only
  resolved without one.
- R2: removed PingCompleted / PingExceptionArgs; Ping is a static helper.
- B3 + T5: new setting PingMonitor_HistoryHours (default 24, 1-168),
  PingMonitorHistory.Trim removes outdated pings in batches.
- B1: confirmation above 256 hosts, error above 4096.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- T1: PingMonitorStatusTracker (Models) with the threshold logic
  (initial state silent, up / down transitions) + tests.
- B9 + T2: IsPending (IPingMonitorHostStatus): gray pending icon and not
  counted as up / down in the group summary until the status is
  established.
- B5 + T3: TimeText via Ping.TimeToString ("-/-", "<1 ms"), reset on start.
- B8: the chart buffer uses the wait time of the running pings.
- B11: status change with the date if it is not today (tooltip, copy).
- C4: threshold help texts / docs mention status icon and counters.
- C5: packet loss "{0} %" in the header like in Copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eHost

- M1 + T4: PingMonitorHostHelper.SplitAlreadyMonitored skips hosts whose IP
  address is already monitored in the same group (message with the skipped
  hosts, input cleared). Prepared to include method / port later.
- B6: the group set by SetHost (profile) is only used while the input is
  unchanged; the input and group are captured at the start of Start().
- R1: one RemoveHost(view) for close host / close group.
- Changelog / docs for B7 (typed hostname kept, PTR only for IPs).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- C1: hosts report Up / Down (StatusChanged); the Ping Monitor collects the
  changes for 1 s (PingMonitor_NotificationDelay) and shows one
  notification: one host as before, several hosts one per line (max. 3) or
  the counters (XUp / XDown), group or tool as title. A host that changes
  back within the delay is dropped.
- C2: context menu of a host: Pause / Resume, Close, open in Port Scanner,
  Traceroute, DNS Lookup, Remote Desktop, PowerShell, PuTTY, TigerVNC.
- C3: EmptyStateMessage (Radar) instead of a header text block.
- M3: LatencyAccumulator (Models, + tests): min / avg / max / jitter of all
  replies since the start, tooltip of the counters and Copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- F1: search (title, IP address, hostname, group) with SearchDelay.
- F2: status filter All / Up / Down / Paused (PingMonitorHostFilter in
  Models + tests); re-filtered max. every 500 ms after status changes while
  a status filter is set. "Nothing found" empty state.
- F3: expand / collapse the charts of the shown hosts (all / per group).
- F4: group context menu as resource, also on right-click of the group
  header; group expanded state kept across filtering (code-behind).
- F5: summary of all hosts; the group summary counts all hosts of the group
  (not only the filtered ones, converter + test).
- M2: resume / pause / close all (close with confirmation > 1 host).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…losed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Header "Monitored hosts" (like the result header of the other tools):
  Up / Down / Paused check boxes (like the WiFi bands) and search on the
  right, actions for all hosts in a ⋮ menu with text (same pattern as the
  groups) instead of five icon buttons.
- Same summary below the header and in every group header:
  "x Hosts · ● x Up · ● x Down · ● x Paused" with status dots, zeros shown
  (converter: "Hosts", no "PausedVisibility" anymore).
- PingMonitorHostFilter: three flags instead of PingMonitorStatusFilter;
  pending hosts are shown with Up or Down (+ tests).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… found"

- The host search hid ProfileHostViewModelBase.Search (same name), so the
  profile search box and the host search box were bound to the same
  property and the profiles were no longer filtered. Renamed to
  HostsSearch / ApplyHostsSearchCommand.
- "Nothing found!" is a button like in the profiles (FunnelX, Clear filter):
  clears the search and checks Up / Down / Paused, filtered once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rching

The profile search of the host views (ProfileHostViewModelBase,
IProfileHostViewModel, ProfileExpanderPanel) had generic names, so a view
model with its own Search (Ping Monitor hosts) silently hid it and the
profile panel was bound to the wrong property.

- Renamed in the interface, the base class, the panel and the derived view
  models (*_CanExecute, PowerShell).
- New Source/Directory.Build.props: CS0108 / CS0114 (member hides an
  inherited member) are errors, so this can't happen silently again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Several hosts are always listed one per line (the hosts that are down
first). Only if more than six hosts changed, the remaining ones are
summarized per status, e.g. "(+47 more) · Down" (existing PlusXMore
string). New NotificationManager.LimitLines (the other tools keep
FormatChanges).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Performance: status changes no longer re-evaluate the group summaries
  (4 converters per group over all hosts), the counters and the status
  filter on every change - batched every 250 ms (also when hosts are
  added). Adding a /20 caused ~2 x 4096 immediate re-evaluations.
- Notification: a pending change keeps the status at the time of the
  change; it is dropped when the host is paused / started again within the
  delay (could report a host that came up as "Down").
- Pause is immediate (IsRunning = false, the stopping monitor's events are
  ignored), so a Resume right after Pause is no longer swallowed by the
  IsRunning guard of Start().
- Search: filter again when a PTR hostname / title arrives while a search
  is set.
- Status change time gets the date after midnight (long running monitor).
- Doc comment of ActionsButton_Click was above GroupExpander_Loaded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Host limits (confirm > 256, refuse > 4096) are checked on the hosts that
  are really added (after exclusions and already monitored hosts); the
  count of the raw input only guards against huge inputs (IP Scanner
  maximum) before they are resolved.
- Counting error shows a localized message (EnterValidHosts), the
  exception is only logged.
- With a status filter, the list (with the charts) is only rebuilt if a
  status change shows or hides a host, not on every 250 ms update.
- The status change time gets the date after midnight also for paused
  hosts (refreshed when the tooltip / context menu opens).
- Changelog: blank line before the next section headings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Inputs with more than 65,536 hosts before the exclusions
  (PingMonitor_MaxInputHostCount, a /16) are refused before they are
  resolved, instead of the IP Scanner limit (16M): a /9 was expanded and
  resolved (~8M tuples) only to be refused afterwards.
- A host monitor stopped by an unexpected error shows the error
  (HostMonitor.StopErrorMessage -> error icon + tooltip) instead of a
  silent "paused".
- The collapsed state of a group is forgotten when its last host is
  closed, so a group added again with the same name is expanded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
~6 MB per host and day at 1 s wait time; 256 hosts ~0.8 GB with 12 h.
Only new installations get the new default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Intro + info + screenshot, Example inputs (note shortened: groups,
  skipped duplicates and limits), Monitored hosts (header, summary, group
  actions), Host view (status icon states, counters, time, chart
  interaction - was "Chart" + "Statistics"), Context menu, Notifications
  (four short bullets instead of long paragraphs), Run command, Profile,
  Settings, Troubleshooting and limits (without repeated behaviour).
- Fixed: "nothing is scanned" -> "nothing is added", vague "Expand host
  view" description, error / pending status icon not described.
- All anchors linked from other pages are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions github-actions Bot added this to the next-release milestone Nov 29, 2026
Also joins the Ping Monitor blocks into one list each (blank lines
between the entries split them into several lists).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mergify

mergify Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@mergify
mergify Bot merged commit 596f6e0 into main Nov 29, 2026
5 checks passed
@mergify
mergify Bot deleted the feature/ping-monitor-improvements branch November 29, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants