diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 28f0166..e010821 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,3 @@ repos: rev: 22.3.0 hooks: - id: black - - repo: https://github.com/pycqa/isort - rev: 5.10.1 - hooks: - - id: isort diff --git a/check_trex.py b/check_trex.py index de8bb5f..1c2d38a 100755 --- a/check_trex.py +++ b/check_trex.py @@ -5,8 +5,15 @@ import logging import sys import requests -from nagiosplugin import (Check, Context, Metric, Performance, Resource, - ScalarContext, Summary) +from nagiosplugin import ( + Check, + Context, + Metric, + Performance, + Resource, + ScalarContext, + Summary, +) from nagiosplugin.state import Critical, Ok, Unknown, Warn logger = logging.getLogger(__name__) @@ -289,6 +296,11 @@ def main(): warning=args.temperature_warning, critical=args.temperature_critical, ), + ScalarContext( + "memory_temperature", + warning=args.memory_temperature_warning, + critical=args.memory_temperature_critical, + ), TrexSummary(), ) check.main()