From 44b20a73526e751ade0bd6bdef32c46c53f5dd96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20K=C3=B6llmann?= Date: Thu, 13 Feb 2025 15:20:44 +0100 Subject: [PATCH 1/2] doc: Align examples output with merged PR #9 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 625c134..284e980 100644 --- a/README.md +++ b/README.md @@ -75,8 +75,8 @@ For further information have a look at the [opnsense documentation](https://docs **Check for updates** ```shell ./check_opnsense.py -H --api-key --api-secret -m updates -CRITICAL - 42 pending updates. Subsequent reboot required. +CRITICAL - There are 43 updates available, total download size is 199.1MiB. This update requires a reboot. ./check_opnsense.py -H --api-key --api-secret -m updates -WARNING - 14 pending updates. +WARNING - There are 14 updates available, total download size is 64.8MiB. ``` From 468683a4ec80ab7a146c2ab18f58603f39dc1546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20K=C3=B6llmann?= Date: Thu, 13 Feb 2025 16:33:07 +0100 Subject: [PATCH 2/2] Add example when there are no updates available --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 284e980..ba6b459 100644 --- a/README.md +++ b/README.md @@ -79,4 +79,7 @@ CRITICAL - There are 43 updates available, total download size is 199.1MiB. This ./check_opnsense.py -H --api-key --api-secret -m updates WARNING - There are 14 updates available, total download size is 64.8MiB. + +./check_opnsense.py -H --api-key --api-secret -m updates +OK - System up to date ```