Open linuxmail opened 1 year ago
I have the same issue. Im running Icinga2 on an Ubuntu VM.
root@monitor:~# pip install git+https://github.com/wernerfred/check_synology Collecting git+https://github.com/wernerfred/check_synology Cloning https://github.com/wernerfred/check_synology to /tmp/pip-req-build-9fjfuili Running command git clone --filter=blob:none --quiet https://github.com/wernerfred/check_synology /tmp/pip-req-build-9fjfuili Resolved https://github.com/wernerfred/check_synology to commit d9029c7fe4e0408c7d31d1a8a32b9ec114e335ab Preparing metadata (setup.py) ... done Collecting easysnmp<1,>=0.2.6 Downloading easysnmp-0.2.6-cp310-cp310-manylinux_2_24_x86_64.whl (1.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 863.4 kB/s eta 0:00:00 Building wheels for collected packages: check-synology Building wheel for check-synology (setup.py) ... done Created wheel for check-synology: filename=check_synology-1.0.0-py3-none-any.whl size=8190 sha256=d27a92d9c84faed67cdef5e27af7fbeaf8f1ce89ac7a03c3f2f6b799d3ce407f Stored in directory: /tmp/pip-ephem-wheel-cache-l4cy3dk7/wheels/bd/c6/dc/1a9de5574019dee3bc45c6089d41f1eec244754f10b69eedb6 Successfully built check-synology Installing collected packages: easysnmp, check-synology ERROR: For req: check-synology==1.0.0. Invalid script entry point: <ExportEntry check_synology = check_synology:None []> - A callable suffix is required. Cf https://packaging.python.org/specifications/entry-points/#use-for-scripts for more information.
tried like Denny did:
root@monitor:/usr/local/lib/python3.10/dist-packages# pip install git+https://github.com/wernerfred/check_synology.git@v0.3.1 Collecting git+https://github.com/wernerfred/check_synology.git@v0.3.1 Cloning https://github.com/wernerfred/check_synology.git (to revision v0.3.1) to /tmp/pip-req-build-tn62dtf4 Running command git clone --filter=blob:none --quiet https://github.com/wernerfred/check_synology.git /tmp/pip-req-build-tn62dtf4 Running command git checkout -q 888097f25519f460d50b2a099d0e2a04827be527 Resolved https://github.com/wernerfred/check_synology.git to commit 888097f25519f460d50b2a099d0e2a04827be527 ERROR: git+https://github.com/wernerfred/check_synology.git@v0.3.1 does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
but on CLI it looks like it would work
root@monitor:/usr/local/lib/python3.10/dist-packages# ./check_synology.py usage: check_synology.py [-h] [-w W] [-c C] [-p PORT] [-t T] [-r R] hostname username authkey privkey {load,memory,disk,storage,update,status} check_synology.py: error: the following arguments are required: hostname, username, authkey, privkey, mode
Any Ideas?
Regards Mario
You need to update setup.py script. Take a look at my pull request #49
Regards, Jack
Hello,
I want to add the check on a container, based on Icinga/icinga2 image with something like this:
but if gives me:
it seems, that .. If I do this on an interactive shell .. the command itself works:
also, if I try to install v0.3.1
is there maybe something, I miss ?
cu denny