mirror of
https://github.com/FAUSheppy/icinga-webhook-gateway
synced 2025-12-10 09:08:32 +01:00
Compare commits
2 Commits
8d6590364f
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 52569c7687 | |||
| d70a37f42c |
3
.github/workflows/main.yaml
vendored
3
.github/workflows/main.yaml
vendored
@@ -16,9 +16,6 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
-
|
|
||||||
name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v2
|
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|||||||
@@ -342,7 +342,7 @@ def default():
|
|||||||
text, status = record_and_check_smart(verifiedServiceObj,
|
text, status = record_and_check_smart(verifiedServiceObj,
|
||||||
timestamp, smart)
|
timestamp, smart)
|
||||||
|
|
||||||
status = Status(service=service, timestamp=timestamp, status=status,
|
status = Status(service=service, timestamp=timestamp, status=status,
|
||||||
info_text=text)
|
info_text=text)
|
||||||
db.session.merge(status)
|
db.session.merge(status)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
@@ -412,7 +412,7 @@ def record_and_check_smart(service, timestamp, smart):
|
|||||||
spare_change), "WARNING")
|
spare_change), "WARNING")
|
||||||
|
|
||||||
# unsafe_shutdowns +1 #
|
# unsafe_shutdowns +1 #
|
||||||
if(smart_second_last and
|
if(smart_second_last and
|
||||||
smart_second_last.unsafe_shutdowns - smart_last.unsafe_shutdowns >= 1):
|
smart_second_last.unsafe_shutdowns - smart_last.unsafe_shutdowns >= 1):
|
||||||
return ("Disk had {} unsafe shutdowns".format(smart_last.unsafe_shutdowns),
|
return ("Disk had {} unsafe shutdowns".format(smart_last.unsafe_shutdowns),
|
||||||
"WARNING")
|
"WARNING")
|
||||||
|
|||||||
Reference in New Issue
Block a user