Coder Social home page Coder Social logo

Performance data/units about check_pve HOT 3 OPEN

nbuchwitz avatar nbuchwitz commented on August 21, 2024
Performance data/units

from check_pve.

Comments (3)

taam avatar taam commented on August 21, 2024

There's another issue with the performance data I forgot to mention: The max value is put in the min column, I suggest adding a min value where appropriate (e.g. 0 for memory/swap/storage).

from check_pve.

nbuchwitz avatar nbuchwitz commented on August 21, 2024

Good catch! I created a first draft of a solution here: https://github.com/nbuchwitz/check_pve/tree/fix/performance-data-units.
This way we keep the existing numbers (not the unit) as default and allow the user for custom units with the option `--unit``

Looking forward for your feedback!

from check_pve.

bgabika avatar bgabika commented on August 21, 2024

Dear Nicolai,

Thank you for your wonderful check plugin for Proxmox.
I use latest version of check_pve.py: Version: 1.2.2

I faced an issue with warning and critical values of storage checking.
Help says:

-w THRESHOLD_WARNING, --warning THRESHOLD_WARNING
Warning threshold for check value. Mutiple thresholds with name:value,name:value
-c THRESHOLD_CRITICAL, --critical THRESHOLD_CRITICAL
Critical threshold for check value Mutiple thresholds with name:value,name:value

When I run check command without name:value,name:value threshold formula, I get WARNING and CRITICAL exit codes:

# ./check_pve.py -u monitoring@pve -p nagios -e 172.26.73.22 -k -m storage -n pve2 --name ceph_hdd -w 20 -c 25 --unit GB
CRITICAL - Usage of storage 'ceph_hdd' is 74.79 %|usage=74.79%;20.0;25.0;0; used=12568.69GB;20.0;25.0;0;16804.76

But when I run check command with name:value,name:value thresholds, usage warning and critical thresholds do not working:

# ./check_pve.py -u monitoring@pve -p nagios -e 172.26.73.22 -k -m storage -n pve2 --name ceph_hdd -w usage:20,used:0 -c usage:25,used:0 --unit GB
OK - Usage of storage 'ceph_hdd' is 74.87 %|usage=74.87%;20.0;25.0;0; used=12578.57GB;0.0;0.0;0;16799.66

What can be wrong?

thank you,
Gabor

from check_pve.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.