eping 4.7__tar.gz → 4.10__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eping
3
- Version: 4.7
3
+ Version: 4.10
4
4
  Summary: Continuous ICMP reachability monitor built on fping, with a CSV logfile analyser (epinga)
5
5
  Author-email: Ewald Jeitler <ewald@jeitler.cc>
6
6
  License: GPL-3.0-or-later
@@ -17,7 +17,7 @@ Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
18
  Dynamic: license-file
19
19
 
20
- # eping.py 4.07
20
+ # eping.py 4.10
21
21
 
22
22
  Continuous ICMP reachability monitor built on `fping`. Scans a host list in a loop,
23
23
  reports each host UP/DOWN/NO-DNS, counts state changes. CLI (curses) or web GUI.
@@ -179,7 +179,7 @@ addresses); `ap-lobby-01` has no IP and is ignored.
179
179
 
180
180
  ## CLI mode
181
181
 
182
- Sorted table (IPv4 numerically, then hostnames), 64-column blocks. Green = UP, red =
182
+ Sorted table (IPv4 numerically, then hostnames case-insensitively), 64-column blocks. Green = UP, red =
183
183
  DOWN. Columns: hostname/IP, state, RTT (ms), last-change timestamp, change count.
184
184
 
185
185
  | Key | Action |
@@ -283,12 +283,12 @@ Single self-contained page, no external resources.
283
283
  values are attached. Works with `-wvc` too.
284
284
  - Files can also be dropped anywhere on the page (max 16MB, see *Host file format*).
285
285
  - Commands acknowledge immediately; a click aborts the running round.
286
- - **Host popup**: hovering a host row (after ~350 ms) shows everything known about it:
286
+ - **Host popup**: hovering a hostname (after ~350 ms; only the hostname cell, not the rest of the row) shows everything known about it:
287
287
  state, previous state, RTT, last check, changes, time in the current state, resolved/CSV
288
288
  IP, inventory values (Model, Location, sysLocation, Type, Comment, serial) and its
289
289
  history (last up to 50 state changes, newest first, merged with the log `COMMENT`s
290
290
  by time). The data is fetched per host on demand (`GET /api/host`), the polled status
291
- stays small. A click on the row pins the popup: the text can be selected, `COPY` copies
291
+ stays small. A click on the hostname pins the popup: the text can be selected, `COPY` copies
292
292
  all of it, `DELETE` removes the host immediately (no confirmation; not shown in `-wv`),
293
293
  `×`/ESC/click elsewhere closes it. The history lives in memory only; it is cleared by
294
294
  ZERO CHANGES and CLEAR ALL.
@@ -1,4 +1,4 @@
1
- # eping.py 4.07
1
+ # eping.py 4.10
2
2
 
3
3
  Continuous ICMP reachability monitor built on `fping`. Scans a host list in a loop,
4
4
  reports each host UP/DOWN/NO-DNS, counts state changes. CLI (curses) or web GUI.
@@ -160,7 +160,7 @@ addresses); `ap-lobby-01` has no IP and is ignored.
160
160
 
161
161
  ## CLI mode
162
162
 
163
- Sorted table (IPv4 numerically, then hostnames), 64-column blocks. Green = UP, red =
163
+ Sorted table (IPv4 numerically, then hostnames case-insensitively), 64-column blocks. Green = UP, red =
164
164
  DOWN. Columns: hostname/IP, state, RTT (ms), last-change timestamp, change count.
165
165
 
166
166
  | Key | Action |
@@ -264,12 +264,12 @@ Single self-contained page, no external resources.
264
264
  values are attached. Works with `-wvc` too.
265
265
  - Files can also be dropped anywhere on the page (max 16MB, see *Host file format*).
266
266
  - Commands acknowledge immediately; a click aborts the running round.
267
- - **Host popup**: hovering a host row (after ~350 ms) shows everything known about it:
267
+ - **Host popup**: hovering a hostname (after ~350 ms; only the hostname cell, not the rest of the row) shows everything known about it:
268
268
  state, previous state, RTT, last check, changes, time in the current state, resolved/CSV
269
269
  IP, inventory values (Model, Location, sysLocation, Type, Comment, serial) and its
270
270
  history (last up to 50 state changes, newest first, merged with the log `COMMENT`s
271
271
  by time). The data is fetched per host on demand (`GET /api/host`), the polled status
272
- stays small. A click on the row pins the popup: the text can be selected, `COPY` copies
272
+ stays small. A click on the hostname pins the popup: the text can be selected, `COPY` copies
273
273
  all of it, `DELETE` removes the host immediately (no confirmation; not shown in `-wv`),
274
274
  `×`/ESC/click elsewhere closes it. The history lives in memory only; it is cleared by
275
275
  ZERO CHANGES and CLEAR ALL.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "eping"
7
- version = "4.07"
7
+ version = "4.10"
8
8
  description = "Continuous ICMP reachability monitor built on fping, with a CSV logfile analyser (epinga)"
9
9
  readme = "README.md"
10
10
  license = { text = "GPL-3.0-or-later" }
@@ -7,7 +7,7 @@
7
7
  # I knew how it worked.
8
8
  # Now, only god knows it!
9
9
  # - - - - - - - - - - - - - - - - - - - - - - - -
10
- VERSION = '4.07'
10
+ VERSION = '4.10'
11
11
  version = VERSION # legacy alias (kept for existing references)
12
12
 
13
13
  # --- scaling limits ---
@@ -1723,7 +1723,7 @@ def sort_fping_result_data(fping_result_data):
1723
1723
  else:
1724
1724
  fqdn_rows.append(row)
1725
1725
  ip_rows.sort(key=lambda r: _ip_sort_key(r[0]))
1726
- fqdn_rows.sort(key=lambda r: r[0])
1726
+ fqdn_rows.sort(key=lambda r: (r[0].lower(), r[0])) # case-insensitive, exact name as tie-break
1727
1727
  return ip_rows + fqdn_rows
1728
1728
 
1729
1729
  def now_local(tz_offset):
@@ -5757,8 +5757,8 @@ function tipLoad(name, pin){
5757
5757
  .catch(function(){});
5758
5758
  }
5759
5759
  function tipRowName(e){
5760
- var tr = e.target && e.target.closest ? e.target.closest('#grid tbody tr') : null;
5761
- var td = tr ? tr.querySelector('td.host') : null;
5760
+ // only the hostname cell triggers the popup, not the rest of the row
5761
+ var td = e.target && e.target.closest ? e.target.closest('#grid tbody td.host') : null;
5762
5762
  return td ? td.textContent : '';
5763
5763
  }
5764
5764
  document.addEventListener('mousemove', function(e){
@@ -8135,8 +8135,29 @@ def run_web_mode(original_hosts_list, host_state, args, logfile_file_name,
8135
8135
 
8136
8136
 
8137
8137
  # MAIN MAIN MAIN
8138
+ def _early_interrupt_hook(tp, val, tb):
8139
+ """Ctrl+C before the normal SIGINT handler is installed (startup, ssh setup, ...): leave quietly
8140
+ instead of printing a traceback; restore the terminal if curses is already active."""
8141
+ if issubclass(tp, KeyboardInterrupt):
8142
+ try:
8143
+ curses.endwin()
8144
+ except Exception:
8145
+ pass
8146
+ try:
8147
+ ssh_shutdown()
8148
+ except Exception:
8149
+ pass
8150
+ try:
8151
+ sys.stdout.flush()
8152
+ except Exception:
8153
+ pass
8154
+ os._exit(130)
8155
+ sys.__excepthook__(tp, val, tb)
8156
+
8138
8157
  if __name__=='__main__':
8139
8158
 
8159
+ sys.excepthook = _early_interrupt_hook
8160
+
8140
8161
  if os.name == 'nt':
8141
8162
  # portable Windows folder: fping.exe + cygwin1.dll next to this script
8142
8163
  os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + os.pathsep + os.environ.get('PATH', '')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eping
3
- Version: 4.7
3
+ Version: 4.10
4
4
  Summary: Continuous ICMP reachability monitor built on fping, with a CSV logfile analyser (epinga)
5
5
  Author-email: Ewald Jeitler <ewald@jeitler.cc>
6
6
  License: GPL-3.0-or-later
@@ -17,7 +17,7 @@ Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
18
  Dynamic: license-file
19
19
 
20
- # eping.py 4.07
20
+ # eping.py 4.10
21
21
 
22
22
  Continuous ICMP reachability monitor built on `fping`. Scans a host list in a loop,
23
23
  reports each host UP/DOWN/NO-DNS, counts state changes. CLI (curses) or web GUI.
@@ -179,7 +179,7 @@ addresses); `ap-lobby-01` has no IP and is ignored.
179
179
 
180
180
  ## CLI mode
181
181
 
182
- Sorted table (IPv4 numerically, then hostnames), 64-column blocks. Green = UP, red =
182
+ Sorted table (IPv4 numerically, then hostnames case-insensitively), 64-column blocks. Green = UP, red =
183
183
  DOWN. Columns: hostname/IP, state, RTT (ms), last-change timestamp, change count.
184
184
 
185
185
  | Key | Action |
@@ -283,12 +283,12 @@ Single self-contained page, no external resources.
283
283
  values are attached. Works with `-wvc` too.
284
284
  - Files can also be dropped anywhere on the page (max 16MB, see *Host file format*).
285
285
  - Commands acknowledge immediately; a click aborts the running round.
286
- - **Host popup**: hovering a host row (after ~350 ms) shows everything known about it:
286
+ - **Host popup**: hovering a hostname (after ~350 ms; only the hostname cell, not the rest of the row) shows everything known about it:
287
287
  state, previous state, RTT, last check, changes, time in the current state, resolved/CSV
288
288
  IP, inventory values (Model, Location, sysLocation, Type, Comment, serial) and its
289
289
  history (last up to 50 state changes, newest first, merged with the log `COMMENT`s
290
290
  by time). The data is fetched per host on demand (`GET /api/host`), the polled status
291
- stays small. A click on the row pins the popup: the text can be selected, `COPY` copies
291
+ stays small. A click on the hostname pins the popup: the text can be selected, `COPY` copies
292
292
  all of it, `DELETE` removes the host immediately (no confirmation; not shown in `-wv`),
293
293
  `×`/ESC/click elsewhere closes it. The history lives in memory only; it is cleared by
294
294
  ZERO CHANGES and CLEAR ALL.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes