linuxfabrik-lib 3.4.0__tar.gz → 3.4.1__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.
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/PKG-INFO +6 -6
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/README.md +5 -5
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/endoflifedate.py +77 -39
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/librenms.py +14 -7
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/linuxfabrik_lib.egg-info/PKG-INFO +6 -6
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/pyproject.toml +1 -1
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/LICENSE +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/__init__.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/args.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/base.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/cache.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/db_mysql.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/db_sqlite.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/disk.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/distro.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/dmidecode.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/feedparser.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/globals.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/grassfish.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/huawei.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/human.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/icinga.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/infomaniak.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/jitsi.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/keycloak.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/lftest.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/linuxfabrik_lib.egg-info/SOURCES.txt +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/linuxfabrik_lib.egg-info/dependency_links.txt +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/linuxfabrik_lib.egg-info/requires.txt +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/linuxfabrik_lib.egg-info/top_level.txt +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/net.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/nextcloud.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/nodebb.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/powershell.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/psutil.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/qts.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/redfish.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/rocket.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/setup.cfg +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/shell.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/smb.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/time.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/txt.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/uptimerobot.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/url.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/veeam.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/version.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/wildfly.py +0 -0
- {linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/winrm.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: linuxfabrik-lib
|
|
3
|
-
Version: 3.4.
|
|
3
|
+
Version: 3.4.1
|
|
4
4
|
Summary: Python libraries used in various Linuxfabrik projects, including the 'Linuxfabrik Monitoring Plugins' project.
|
|
5
5
|
Author-email: "Linuxfabrik GmbH, Zurich, Switzerland" <info@linuxfabrik.ch>
|
|
6
6
|
License: This is free and unencumbered software released into the public domain.
|
|
@@ -97,6 +97,11 @@ A mature, production-grade Python library collection providing 35+ modules with
|
|
|
97
97
|
The library requires Python 3.9+ and runs on every platform.
|
|
98
98
|
|
|
99
99
|
|
|
100
|
+
## Documentation
|
|
101
|
+
|
|
102
|
+
Full documentation is available at [linuxfabrik.github.io/lib](https://linuxfabrik.github.io/lib/). It is automatically built and deployed on every push to `main`.
|
|
103
|
+
|
|
104
|
+
|
|
100
105
|
## Installation
|
|
101
106
|
|
|
102
107
|
Add `linuxfabrik-lib` as a dependency to your project, or install it manually:
|
|
@@ -106,11 +111,6 @@ pip install --user linuxfabrik-lib
|
|
|
106
111
|
```
|
|
107
112
|
|
|
108
113
|
|
|
109
|
-
## Documentation
|
|
110
|
-
|
|
111
|
-
Full API documentation is available at [linuxfabrik.github.io/lib](https://linuxfabrik.github.io/lib/). It is automatically built and deployed on every push to `main`.
|
|
112
|
-
|
|
113
|
-
|
|
114
114
|
## Design Principles
|
|
115
115
|
|
|
116
116
|
These libraries are built with a clear set of priorities:
|
|
@@ -29,6 +29,11 @@ A mature, production-grade Python library collection providing 35+ modules with
|
|
|
29
29
|
The library requires Python 3.9+ and runs on every platform.
|
|
30
30
|
|
|
31
31
|
|
|
32
|
+
## Documentation
|
|
33
|
+
|
|
34
|
+
Full documentation is available at [linuxfabrik.github.io/lib](https://linuxfabrik.github.io/lib/). It is automatically built and deployed on every push to `main`.
|
|
35
|
+
|
|
36
|
+
|
|
32
37
|
## Installation
|
|
33
38
|
|
|
34
39
|
Add `linuxfabrik-lib` as a dependency to your project, or install it manually:
|
|
@@ -38,11 +43,6 @@ pip install --user linuxfabrik-lib
|
|
|
38
43
|
```
|
|
39
44
|
|
|
40
45
|
|
|
41
|
-
## Documentation
|
|
42
|
-
|
|
43
|
-
Full API documentation is available at [linuxfabrik.github.io/lib](https://linuxfabrik.github.io/lib/). It is automatically built and deployed on every push to `main`.
|
|
44
|
-
|
|
45
|
-
|
|
46
46
|
## Design Principles
|
|
47
47
|
|
|
48
48
|
These libraries are built with a clear set of priorities:
|
|
@@ -100,6 +100,18 @@ ENDOFLIFE_DATE = {
|
|
|
100
100
|
'latestReleaseDate': '2026-04-14',
|
|
101
101
|
'lts': True,
|
|
102
102
|
'releaseDate': '2021-12-22'},
|
|
103
|
+
{ 'cycle': '2.1',
|
|
104
|
+
'eol': '2021-12-22',
|
|
105
|
+
'latest': '2.1.14',
|
|
106
|
+
'latestReleaseDate': '2021-11-30',
|
|
107
|
+
'lts': False,
|
|
108
|
+
'releaseDate': '2021-06-03'},
|
|
109
|
+
{ 'cycle': '2.0',
|
|
110
|
+
'eol': '2021-06-03',
|
|
111
|
+
'latest': '2.0.14',
|
|
112
|
+
'latestReleaseDate': '2021-05-21',
|
|
113
|
+
'lts': False,
|
|
114
|
+
'releaseDate': '2020-10-24'},
|
|
103
115
|
{ 'cycle': '1',
|
|
104
116
|
'eol': '2020-10-24',
|
|
105
117
|
'latest': '1.10.27',
|
|
@@ -110,6 +122,12 @@ ENDOFLIFE_DATE = {
|
|
|
110
122
|
|
|
111
123
|
|
|
112
124
|
'https://endoflife.date/api/fedora.json': [
|
|
125
|
+
{ 'cycle': '44',
|
|
126
|
+
'eol': '2027-06-02',
|
|
127
|
+
'latest': '44',
|
|
128
|
+
'latestReleaseDate': '2026-04-28',
|
|
129
|
+
'lts': False,
|
|
130
|
+
'releaseDate': '2026-04-28'},
|
|
113
131
|
{ 'cycle': '43',
|
|
114
132
|
'eol': '2026-12-09',
|
|
115
133
|
'latest': '43',
|
|
@@ -118,7 +136,7 @@ ENDOFLIFE_DATE = {
|
|
|
118
136
|
'releaseDate': '2025-10-28'},
|
|
119
137
|
{ 'codename': 'Adams',
|
|
120
138
|
'cycle': '42',
|
|
121
|
-
'eol': '2026-05-
|
|
139
|
+
'eol': '2026-05-27',
|
|
122
140
|
'latest': '42',
|
|
123
141
|
'latestReleaseDate': '2025-04-15',
|
|
124
142
|
'lts': False,
|
|
@@ -433,6 +451,11 @@ ENDOFLIFE_DATE = {
|
|
|
433
451
|
|
|
434
452
|
|
|
435
453
|
'https://endoflife.date/api/fortios.json': [
|
|
454
|
+
{ 'cycle': '8.0',
|
|
455
|
+
'eol': '2030-10-21',
|
|
456
|
+
'lts': False,
|
|
457
|
+
'releaseDate': '2026-04-21',
|
|
458
|
+
'support': '2029-04-21'},
|
|
436
459
|
{ 'cycle': '7.6',
|
|
437
460
|
'eol': '2030-01-25',
|
|
438
461
|
'lts': False,
|
|
@@ -474,22 +497,22 @@ ENDOFLIFE_DATE = {
|
|
|
474
497
|
'https://endoflife.date/api/gitlab.json': [
|
|
475
498
|
{ 'cycle': '18.11',
|
|
476
499
|
'eol': '2026-07-16',
|
|
477
|
-
'latest': '18.11.
|
|
478
|
-
'latestReleaseDate': '2026-04-
|
|
500
|
+
'latest': '18.11.2',
|
|
501
|
+
'latestReleaseDate': '2026-04-28',
|
|
479
502
|
'lts': False,
|
|
480
503
|
'releaseDate': '2026-04-16',
|
|
481
504
|
'support': '2026-05-21'},
|
|
482
505
|
{ 'cycle': '18.10',
|
|
483
506
|
'eol': '2026-06-18',
|
|
484
|
-
'latest': '18.10.
|
|
485
|
-
'latestReleaseDate': '2026-04-
|
|
507
|
+
'latest': '18.10.5',
|
|
508
|
+
'latestReleaseDate': '2026-04-28',
|
|
486
509
|
'lts': False,
|
|
487
510
|
'releaseDate': '2026-03-19',
|
|
488
511
|
'support': '2026-04-16'},
|
|
489
512
|
{ 'cycle': '18.9',
|
|
490
513
|
'eol': '2026-05-21',
|
|
491
|
-
'latest': '18.9.
|
|
492
|
-
'latestReleaseDate': '2026-04-
|
|
514
|
+
'latest': '18.9.6',
|
|
515
|
+
'latestReleaseDate': '2026-04-21',
|
|
493
516
|
'lts': False,
|
|
494
517
|
'releaseDate': '2026-02-19',
|
|
495
518
|
'support': '2026-03-19'},
|
|
@@ -911,11 +934,11 @@ ENDOFLIFE_DATE = {
|
|
|
911
934
|
|
|
912
935
|
'https://endoflife.date/api/grafana.json': [
|
|
913
936
|
{ 'cycle': '13.0',
|
|
914
|
-
'eol':
|
|
937
|
+
'eol': '2027-01-09',
|
|
915
938
|
'latest': '13.0.1',
|
|
916
939
|
'latestReleaseDate': '2026-04-17',
|
|
917
940
|
'lts': False,
|
|
918
|
-
'releaseDate': '2026-04-
|
|
941
|
+
'releaseDate': '2026-04-14',
|
|
919
942
|
'support': True},
|
|
920
943
|
{ 'cycle': '12.4',
|
|
921
944
|
'eol': '2027-05-24',
|
|
@@ -1276,15 +1299,22 @@ ENDOFLIFE_DATE = {
|
|
|
1276
1299
|
|
|
1277
1300
|
|
|
1278
1301
|
'https://endoflife.date/api/icinga.json': [
|
|
1302
|
+
{ 'cycle': '2.16',
|
|
1303
|
+
'eol': False,
|
|
1304
|
+
'latest': '2.16.0',
|
|
1305
|
+
'latestReleaseDate': '2026-04-22',
|
|
1306
|
+
'lts': False,
|
|
1307
|
+
'releaseDate': '2026-04-23',
|
|
1308
|
+
'support': True},
|
|
1279
1309
|
{ 'cycle': '2.15',
|
|
1280
1310
|
'eol': False,
|
|
1281
|
-
'latest': '2.15.
|
|
1282
|
-
'latestReleaseDate': '2026-
|
|
1311
|
+
'latest': '2.15.3',
|
|
1312
|
+
'latestReleaseDate': '2026-04-22',
|
|
1283
1313
|
'lts': False,
|
|
1284
1314
|
'releaseDate': '2025-06-17',
|
|
1285
|
-
'support':
|
|
1315
|
+
'support': '2026-04-23'},
|
|
1286
1316
|
{ 'cycle': '2.14',
|
|
1287
|
-
'eol':
|
|
1317
|
+
'eol': '2026-04-23',
|
|
1288
1318
|
'latest': '2.14.8',
|
|
1289
1319
|
'latestReleaseDate': '2026-01-29',
|
|
1290
1320
|
'lts': False,
|
|
@@ -1871,8 +1901,8 @@ ENDOFLIFE_DATE = {
|
|
|
1871
1901
|
'https://endoflife.date/api/matomo.json': [
|
|
1872
1902
|
{ 'cycle': '5',
|
|
1873
1903
|
'eol': False,
|
|
1874
|
-
'latest': '5.
|
|
1875
|
-
'latestReleaseDate': '2026-
|
|
1904
|
+
'latest': '5.10.0',
|
|
1905
|
+
'latestReleaseDate': '2026-05-04',
|
|
1876
1906
|
'lts': False,
|
|
1877
1907
|
'releaseDate': '2023-12-18',
|
|
1878
1908
|
'support': True},
|
|
@@ -2110,14 +2140,22 @@ ENDOFLIFE_DATE = {
|
|
|
2110
2140
|
|
|
2111
2141
|
|
|
2112
2142
|
'https://endoflife.date/api/mysql.json': [
|
|
2143
|
+
{ 'cycle': '9.7',
|
|
2144
|
+
'eol': '2034-04-21',
|
|
2145
|
+
'latest': '9.7.0',
|
|
2146
|
+
'latestReleaseDate': '2026-04-07',
|
|
2147
|
+
'link': 'https://dev.mysql.com/doc/relnotes/mysql/9.7/en/news-9-7-0.html',
|
|
2148
|
+
'lts': True,
|
|
2149
|
+
'releaseDate': '2026-04-21',
|
|
2150
|
+
'support': True},
|
|
2113
2151
|
{ 'cycle': '9.6',
|
|
2114
|
-
'eol':
|
|
2115
|
-
'latest': '9.6.
|
|
2116
|
-
'latestReleaseDate': '
|
|
2152
|
+
'eol': '2026-04-21',
|
|
2153
|
+
'latest': '9.6.1',
|
|
2154
|
+
'latestReleaseDate': '2026-01-16',
|
|
2117
2155
|
'link': 'https://dev.mysql.com/doc/relnotes/mysql/9.6/en/news-9-6-0.html',
|
|
2118
2156
|
'lts': False,
|
|
2119
2157
|
'releaseDate': '2026-01-20',
|
|
2120
|
-
'support':
|
|
2158
|
+
'support': '2026-04-21'},
|
|
2121
2159
|
{ 'cycle': '9.5',
|
|
2122
2160
|
'eol': '2026-01-20',
|
|
2123
2161
|
'latest': '9.5.2',
|
|
@@ -2167,8 +2205,8 @@ ENDOFLIFE_DATE = {
|
|
|
2167
2205
|
'support': '2024-10-15'},
|
|
2168
2206
|
{ 'cycle': '8.4',
|
|
2169
2207
|
'eol': '2032-04-30',
|
|
2170
|
-
'latest': '8.4.
|
|
2171
|
-
'latestReleaseDate': '
|
|
2208
|
+
'latest': '8.4.9',
|
|
2209
|
+
'latestReleaseDate': '2026-04-07',
|
|
2172
2210
|
'lts': True,
|
|
2173
2211
|
'releaseDate': '2024-04-10',
|
|
2174
2212
|
'support': '2029-04-30'},
|
|
@@ -2195,8 +2233,8 @@ ENDOFLIFE_DATE = {
|
|
|
2195
2233
|
'support': '2023-10-25'},
|
|
2196
2234
|
{ 'cycle': '8.0',
|
|
2197
2235
|
'eol': '2026-04-30',
|
|
2198
|
-
'latest': '8.0.
|
|
2199
|
-
'latestReleaseDate': '2026-
|
|
2236
|
+
'latest': '8.0.46',
|
|
2237
|
+
'latestReleaseDate': '2026-04-07',
|
|
2200
2238
|
'lts': '2023-07-18',
|
|
2201
2239
|
'releaseDate': '2018-04-08',
|
|
2202
2240
|
'support': '2025-04-30'},
|
|
@@ -2229,14 +2267,14 @@ ENDOFLIFE_DATE = {
|
|
|
2229
2267
|
'https://endoflife.date/api/nextcloud.json': [
|
|
2230
2268
|
{ 'cycle': '33',
|
|
2231
2269
|
'eol': '2027-02-28',
|
|
2232
|
-
'latest': '33.0.
|
|
2233
|
-
'latestReleaseDate': '2026-04-
|
|
2270
|
+
'latest': '33.0.3',
|
|
2271
|
+
'latestReleaseDate': '2026-04-30',
|
|
2234
2272
|
'lts': False,
|
|
2235
2273
|
'releaseDate': '2026-02-18'},
|
|
2236
2274
|
{ 'cycle': '32',
|
|
2237
2275
|
'eol': '2026-09-30',
|
|
2238
|
-
'latest': '32.0.
|
|
2239
|
-
'latestReleaseDate': '2026-04-
|
|
2276
|
+
'latest': '32.0.9',
|
|
2277
|
+
'latestReleaseDate': '2026-04-30',
|
|
2240
2278
|
'lts': False,
|
|
2241
2279
|
'releaseDate': '2025-09-27'},
|
|
2242
2280
|
{ 'cycle': '31',
|
|
@@ -2383,15 +2421,15 @@ ENDOFLIFE_DATE = {
|
|
|
2383
2421
|
'https://endoflife.date/api/openvpn.json': [
|
|
2384
2422
|
{ 'cycle': '2.7',
|
|
2385
2423
|
'eol': False,
|
|
2386
|
-
'latest': '2.7.
|
|
2387
|
-
'latestReleaseDate': '2026-
|
|
2424
|
+
'latest': '2.7.4',
|
|
2425
|
+
'latestReleaseDate': '2026-04-30',
|
|
2388
2426
|
'lts': False,
|
|
2389
2427
|
'releaseDate': '2026-02-11',
|
|
2390
2428
|
'support': True},
|
|
2391
2429
|
{ 'cycle': '2.6',
|
|
2392
2430
|
'eol': '2028-08-31',
|
|
2393
|
-
'latest': '2.6.
|
|
2394
|
-
'latestReleaseDate': '2026-
|
|
2431
|
+
'latest': '2.6.20',
|
|
2432
|
+
'latestReleaseDate': '2026-04-22',
|
|
2395
2433
|
'lts': False,
|
|
2396
2434
|
'releaseDate': '2023-01-25',
|
|
2397
2435
|
'support': '2026-08-31'},
|
|
@@ -2566,29 +2604,29 @@ ENDOFLIFE_DATE = {
|
|
|
2566
2604
|
'https://endoflife.date/api/postfix.json': [
|
|
2567
2605
|
{ 'cycle': '3.11',
|
|
2568
2606
|
'eol': False,
|
|
2569
|
-
'latest': '3.11.
|
|
2570
|
-
'latestReleaseDate': '2026-
|
|
2607
|
+
'latest': '3.11.2',
|
|
2608
|
+
'latestReleaseDate': '2026-05-02',
|
|
2571
2609
|
'link': 'https://www.postfix.org/announcements/postfix-3.11.0.html',
|
|
2572
2610
|
'lts': False,
|
|
2573
2611
|
'releaseDate': '2026-03-06'},
|
|
2574
2612
|
{ 'cycle': '3.10',
|
|
2575
2613
|
'eol': False,
|
|
2576
|
-
'latest': '3.10.
|
|
2577
|
-
'latestReleaseDate': '2026-02
|
|
2614
|
+
'latest': '3.10.9',
|
|
2615
|
+
'latestReleaseDate': '2026-05-02',
|
|
2578
2616
|
'link': 'https://www.postfix.org/announcements/postfix-3.10.0.html',
|
|
2579
2617
|
'lts': False,
|
|
2580
2618
|
'releaseDate': '2025-02-16'},
|
|
2581
2619
|
{ 'cycle': '3.9',
|
|
2582
2620
|
'eol': False,
|
|
2583
|
-
'latest': '3.9.
|
|
2584
|
-
'latestReleaseDate': '2026-02
|
|
2621
|
+
'latest': '3.9.10',
|
|
2622
|
+
'latestReleaseDate': '2026-05-02',
|
|
2585
2623
|
'link': 'https://www.postfix.org/announcements/postfix-3.9.2.html',
|
|
2586
2624
|
'lts': False,
|
|
2587
2625
|
'releaseDate': '2024-03-06'},
|
|
2588
2626
|
{ 'cycle': '3.8',
|
|
2589
2627
|
'eol': False,
|
|
2590
|
-
'latest': '3.8.
|
|
2591
|
-
'latestReleaseDate': '2026-02
|
|
2628
|
+
'latest': '3.8.16',
|
|
2629
|
+
'latestReleaseDate': '2026-05-02',
|
|
2592
2630
|
'link': 'https://www.postfix.org/announcements/postfix-3.9.2.html',
|
|
2593
2631
|
'lts': False,
|
|
2594
2632
|
'releaseDate': '2023-04-17'},
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
needed by LibreNMS check plugins."""
|
|
13
13
|
|
|
14
14
|
__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
|
|
15
|
-
__version__ = '
|
|
15
|
+
__version__ = '2026042401'
|
|
16
16
|
|
|
17
17
|
from . import (
|
|
18
18
|
base, # pylint: disable=C0413
|
|
@@ -124,12 +124,17 @@ def get_state(librestate, severity='crit'):
|
|
|
124
124
|
"""
|
|
125
125
|
Translate LibreNMS service state to a Nagios-compatible state.
|
|
126
126
|
|
|
127
|
-
LibreNMS
|
|
128
|
-
|
|
129
|
-
-
|
|
130
|
-
-
|
|
127
|
+
LibreNMS encodes the alert lifecycle in `alerts.state` (see
|
|
128
|
+
`LibreNMS/Enum/AlertState.php`):
|
|
129
|
+
- 0 = CLEAR / RECOVERED
|
|
130
|
+
- 1 = ACTIVE
|
|
131
|
+
- 2 = ACKNOWLEDGED
|
|
132
|
+
- 3 = WORSE
|
|
133
|
+
- 4 = BETTER
|
|
134
|
+
- 5 = CHANGED
|
|
131
135
|
|
|
132
|
-
|
|
136
|
+
ACTIVE, WORSE, BETTER and CHANGED all represent an open, notifiable
|
|
137
|
+
alert, so they map to WARN/CRIT. ACKNOWLEDGED and CLEAR map to OK.
|
|
133
138
|
|
|
134
139
|
### Parameters
|
|
135
140
|
- **librestate** (`int`):
|
|
@@ -154,8 +159,10 @@ def get_state(librestate, severity='crit'):
|
|
|
154
159
|
1
|
|
155
160
|
>>> get_state(1, severity='crit')
|
|
156
161
|
2
|
|
162
|
+
>>> get_state(3, severity='crit')
|
|
163
|
+
2
|
|
157
164
|
"""
|
|
158
165
|
|
|
159
|
-
if librestate
|
|
166
|
+
if librestate not in (1, 3, 4, 5):
|
|
160
167
|
return STATE_OK
|
|
161
168
|
return STATE_CRIT if severity == 'crit' else STATE_WARN
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: linuxfabrik-lib
|
|
3
|
-
Version: 3.4.
|
|
3
|
+
Version: 3.4.1
|
|
4
4
|
Summary: Python libraries used in various Linuxfabrik projects, including the 'Linuxfabrik Monitoring Plugins' project.
|
|
5
5
|
Author-email: "Linuxfabrik GmbH, Zurich, Switzerland" <info@linuxfabrik.ch>
|
|
6
6
|
License: This is free and unencumbered software released into the public domain.
|
|
@@ -97,6 +97,11 @@ A mature, production-grade Python library collection providing 35+ modules with
|
|
|
97
97
|
The library requires Python 3.9+ and runs on every platform.
|
|
98
98
|
|
|
99
99
|
|
|
100
|
+
## Documentation
|
|
101
|
+
|
|
102
|
+
Full documentation is available at [linuxfabrik.github.io/lib](https://linuxfabrik.github.io/lib/). It is automatically built and deployed on every push to `main`.
|
|
103
|
+
|
|
104
|
+
|
|
100
105
|
## Installation
|
|
101
106
|
|
|
102
107
|
Add `linuxfabrik-lib` as a dependency to your project, or install it manually:
|
|
@@ -106,11 +111,6 @@ pip install --user linuxfabrik-lib
|
|
|
106
111
|
```
|
|
107
112
|
|
|
108
113
|
|
|
109
|
-
## Documentation
|
|
110
|
-
|
|
111
|
-
Full API documentation is available at [linuxfabrik.github.io/lib](https://linuxfabrik.github.io/lib/). It is automatically built and deployed on every push to `main`.
|
|
112
|
-
|
|
113
|
-
|
|
114
114
|
## Design Principles
|
|
115
115
|
|
|
116
116
|
These libraries are built with a clear set of priorities:
|
|
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "linuxfabrik-lib"
|
|
9
|
-
version = "3.4.
|
|
9
|
+
version = "3.4.1"
|
|
10
10
|
description = "Python libraries used in various Linuxfabrik projects, including the 'Linuxfabrik Monitoring Plugins' project."
|
|
11
11
|
readme = "README.md"
|
|
12
12
|
authors = [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{linuxfabrik_lib-3.4.0 → linuxfabrik_lib-3.4.1}/linuxfabrik_lib.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|