Coder Social home page Coder Social logo

nagios-plugins's People

Contributors

acch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nagios-plugins's Issues

check_rpi_temp.sh: problem with printf if LANG or/and LC_ALL is set

Hello.

I found a little issue at check_rpi_temp.sh. My Raspberries are set to german, systemwide (as far as I remember, I did it via raspi-config). When running check_rpi_temp.sh I get the message:

./check_rpi_temp.sh: Zeile 95: printf: 51.5: Ungültige Zahl.
It seems that printf depends on the language settings, so while this is set to german, it expects 51,5, not 51.5

When putting the following at the upper part of the script, it works fine:

LANG=
LC_ALL=

check_rpi_temp.patch.txt

Greetings

René

check_rpi_temp

I am running NEMSLinux on a Raspberry Pi to monitor several other Raspberry Pis and various network hardware.

Attempting to use check_rpi_temp.sh to keep an eye on the temperature of the other Pis. I've got it all set up in NRPE, but having an issue with the GPU temperature.

When I run check_rpi_temp.sh on the local Pi, I get the correct information:

TEMP OK - CPU temperature: 38.628°C - GPU temperature: 38.6°C | cputemp=38.628;60;65;0; gputemp=38.6;60;65;0;

When I run check_rpi_temp using NRPE from the NEMS server, I get this information:

TEMP OK - CPU temperature: 39.166°C - GPU temperature: VCHI initialization failed°C | cputemp=39.166;60;65;0; gputemp=VCHI initialization failed;60;65;0;

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.