stdevel / check_apcaccess Goto Github PK
View Code? Open in Web Editor NEWA Nagios / Icinga plugin for monitoring APC UPS devices using apcupsd
License: GNU General Public License v3.0
A Nagios / Icinga plugin for monitoring APC UPS devices using apcupsd
License: GNU General Public License v3.0
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.
It would be great to have a single spec file that creates an Icinga as well as a Icinga 2 package.
Utilizing the nagiosplugin
python module would simplify maintaining the code.
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
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.
Hi, I found a small bug:
In the mentioned line, check_value-s last parameters should be options.load_crit instead of options.temp_crit
https://github.com/stdevel/check_apcaccess/blob/88d560f49db519bfc8b20297b0c26952ad50437a/check_apcaccess.py#L106C2-L106C2
Nonetheless, thank you for this project!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.