Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got ValueError Exception on memory check #84

Closed
cadirol opened this issue Jan 28, 2022 · 1 comment
Closed

Got ValueError Exception on memory check #84

cadirol opened this issue Jan 28, 2022 · 1 comment

Comments

@cadirol
Copy link

cadirol commented Jan 28, 2022

check_docker Version:

$ /usr/local/monitoring-plugins/libexec/check_docker -V
check_docker 2.2.2

OS:

$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Python Version:

$ python3 -V
Python 3.9.2

The Command:

$ /usr/local/monitoring-plugins/libexec/check_docker --memory 80:90%
Traceback (most recent call last):
  File "/usr/local/monitoring-plugins/libexec/check_docker", line 983, in main
    perform_checks(argv[1:])
  File "/usr/local/monitoring-plugins/libexec/check_docker", line 966, in perform_checks
    check_memory(container, parse_thresholds(args.memory, units_required=False))
  File "/usr/local/monitoring-plugins/libexec/check_docker", line 201, in parse_thresholds
    crit = int(parts.popleft())
ValueError: invalid literal for int() with base 10: '90%'
UNKNOWN: Exception raised during check': ValueError("invalid literal for int() with base 10: '90%'")

Thank you very much to keep check_docker alive!

@cadirol cadirol closed this as completed Jan 28, 2022
@cadirol
Copy link
Author

cadirol commented Jan 28, 2022

Got a typo in my command!
... --memory 80:90:%

But at the end i got #81 as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant