From 5328ecfb9631d694484358f77ebadfd19860f1ee Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 6 Feb 2023 12:50:22 +0100 Subject: [PATCH] upd readme, snmplib --- README.md | 33 +++++++++++++++++++++++++++++++++ lib/version.py | 2 +- requirements.txt | 2 +- 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 949506f..d7467dc 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,36 @@ Variable | Default | Description ``` docker build -t synology-probe . --no-cache ``` + +## Config + +See the [SNMP probe](https://github.com/infrasonar/snmp-probe#config). + +## Dry run + +Available checks: +- `disk` +- `diskSMART` +- `ebox` +- `iSCSILUN` +- `raid` +- `service` +- `spaceIO` +- `storageIO` +- `system` + +Create a yaml file, for example _(test.yaml)_: + +```yaml +asset: + name: "foo.local" + check: "system" + config: + address: "192.168.1.2" +``` + +Run the probe with the `DRY_RUN` environment variable set the the yaml file above. + +``` +DRY_RUN=test.yaml python main.py +``` diff --git a/lib/version.py b/lib/version.py index 79948a4..08c226e 100644 --- a/lib/version.py +++ b/lib/version.py @@ -1,4 +1,4 @@ # Version string. Examples: # '3.0.0' # '3.0.0-alpha9' -__version__ = '3.0.1-alpha1' +__version__ = '3.0.1-alpha2' diff --git a/requirements.txt b/requirements.txt index a3a9ab1..d664722 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -asyncsnmplib==0.1.8 +asyncsnmplib==0.1.9 libprobe==0.2.27