Giter VIP home page Giter VIP logo

check_apcaccess's People

Contributors

stdevel avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

check_apcaccess's Issues

Invalid Syntax

Hello :-)

I would like to use your script.
But evrything i do i recived an Error.
"python3 check_apcaccess.py
File "check_apcaccess.py", line 133
print "{0}: {1}{2}".format(get_return_str(), str(", ".join(snips)), perfdata)
^
SyntaxError: invalid syntax"

What do I wrong?
BTW:
I use a Raspberr Pi which is connectet on the Smart UPS from APC.

Best Regards.

Syntax error

I try this python script on Debian 11, but I get error messagem when I running:

First run I get error message:

/usr/bin/env: ‘python’: No such file or directory

Then I installed python-is-python3 package, then I get new error messages:

File "/home/nio/check_apcaccess/./check_apcaccess.py", line 146
print "{0}: {1}{2}".format(get_return_str(), str(", ".join(snips)), perfdata)
^
SyntaxError: invalid syntax

Power consumption calculation

I think the power consumption is calculated with the wrong value. It calculates with NOMOUTV which is the output voltage. In combination with LOADPCT the result is also voltage and not watts as expected. Replacing NOMOUTV with NOMPOWER should give the correct result.

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.