Repository navigation
Feature: Ping monitor improvements - #3753
Merged
Merged
Conversation
… 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>
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>
Contributor
|
This pull request is merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
See commits
Related issue
#3609
Type of change