Comments (7)
Or even better change the locale for the runtime:
LC_ALL=C apt-get upgrade -s
http://unix.stackexchange.com/questions/87745/what-does-lc-all-c-do
from pythonminiprobe.
Hi,
sorry for the delayed reply, was on vacation. Thank you for the feedback on the sensor, I will implement the proposed changes in the next version.
To get the sensor running correctly for now, please open the file apt.py and change the line:
ret = os.popen("apt-get -s dist-upgrade | grep 'newly inst'")
to
if locale == "en_GB.UTF-8" or "'en_US.UTF-8'":
ret = os.popen("apt-get -s dist-upgrade | grep 'newly inst'")
elif locale == "de_DE.UTF-8":
ret = os.popen("apt-get -s dist-upgrade | grep 'neu inst'")
else:
raise Exception
This fix will go to the development branch soon. I'm planning to do this by checking the locale rather than changing it.
from pythonminiprobe.
Hi Konstantin,
i hope you had a good time!
Thank you for the implementation of a solution.
This solution sure works for us because we are using german and english systems. But i think you should considering using "LC_ALL=C" so it will work for every localised system.
We are planning to add a new sensor for softwareraidchecks (mdadm) to a fork and send you a pull request in the next day. Hope you can have a look on it.
from pythonminiprobe.
Hey,
I'll give your proposal a try although I will have to get this tested first. If this works, you can expect a new development release within the next week. :)
Also looking forward to your Pull request.
from pythonminiprobe.
Proposed change is available in this branch. Could you check if this works for your, if ok I'm going to merge this to development.
from pythonminiprobe.
Hi Konstantin,
we tested the changes (apt sensor and mdadm) from the dev_apt_sensor-branch and it works like a charm.
Thank you!
from pythonminiprobe.
Nice, I'm glad it's working now. So I'll close this issue for now.
from pythonminiprobe.
Related Issues (19)
- Install script assigns wrong file permissions HOT 1
- Error stating incompatible software versions between Probe and Core HOT 5
- Merge development to master branch HOT 2
- Uninstall HOT 2
- Reconnecting after prtg-server restart / unreachable HOT 3
- Serveradress not saved in probe.conf, when not available at setup HOT 2
- Sensor with custom script
- snmptraffic sensor does not work on python 3.4 but 2.7 is working HOT 1
- Error on monitoring disk space HOT 6
- Disk Space and External IP sensors failed HOT 14
- Uninstall - HowTo? HOT 3
- Cant start service on RHEL based system HOT 1
- Custom script on a state trigger
- failed to start prtgprobe.service: unit prtgprobe.service not found.
- direct write access HOT 1
- MDADM sensor to PRTG
- snmpcustomsensor HOT 2
- Probe disconnects without any error or warning HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pythonminiprobe.