CHECKMK script
Some checks failed
docker / docker_dev (push) Waiting to run
🤖Automation - Update Sponsors Table / update-table (push) Has been cancelled

This commit is contained in:
jokob-sk
2025-01-08 23:32:14 +11:00
parent 8d9c48166b
commit b29dcbfa98
7 changed files with 118 additions and 5 deletions

24
scripts/checkmk/README.md Executable file
View File

@@ -0,0 +1,24 @@
# NetAlertX-New-Devices-Checkmk-Script
This script retrieves the list of all devices from NetAlertX by reading the `/app/api/table_devices.json` file within the "NetAlertX" Docker container. It then checks if there are any new devices (`devIsNew == 1`).
- If new devices are found, a warning state is reported.
- Otherwise, an OK state is returned.
## Checkmk Local Check Format
The script follows the Checkmk local check format:
```
<status> <service_name> <perfdata> <message>
```
For more details, see the [Checkmk Local Checks Documentation](https://docs.checkmk.com/latest/en/localchecks.html).
### Other info
- Date : 08-Jan-2025 - version 1.0
- Author: N/A
> [!NOTE]
> This is a community supplied script and not maintained.