Giter VIP home page Giter VIP logo

pythonminiprobe's People

Contributors

eagle00789 avatar konstantinpae avatar rtuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pythonminiprobe's Issues

Sensor with custom script

Hi Konstantin,

are there any plans on a sensor that can execute custom scripts; similar to the windows probe?

Error on monitoring disk space

Hi,

just installed PMP on my RPi2 running latest Raspbian. The setup went smoothly but I get an error message in the logs plus an alarm on the PRTG server. The error message popping up is as follows:

02/26/2016 11:07:37 - ERROR - Ooops Something went wrong with 'mpdiskspace' sensor 3200. Error: invalid literal for int( ) with base 10: '1K-Bl\xc3\xb6cke'

Could you help me on this one?

Improving sensor "apt"

Hello,

thank you for providing the PythonMiniProbe! Its really helpfull for us to monitor linux-systems with PRTG. Keep up the great work!

We want to use the "apt"-sensor on systems with the default language "german" but this wont work.
The reason is, that the sensor "apt" uses "apt-get -s dist-upgrade | grep 'newly inst'" to determine the line with all information about available updates - in other language "newly installed" is simply translated to the setted language.

Maybe - as easy way for the beginning - you should just use "locale" to check the current setted language and throw an error? Or just search for the line "* upgraded, * newly installed, * to remove and * not upgraded." - whent this line is not in the output the sensor should fail.

At the moment the sensor shows no error - for a security relevant sensor not the best output when not working ;-)

What do you think?

Disk Space and External IP sensors failed

PythonMiniProbe installed on Ubuntu 14.04LTS.Installation went smoothly.

The following sensors are working: CPU Load, Memory, Probe Health.
The following sensors failed: DIsk Space, External IP

Debug log shows the following:

07/03/2016 20:34:57 - INFO - Starting new HTTPS connection (1): 192.168.1.121
07/03/2016 20:34:57 - INFO - tasks request successfully sent to PRTG Core Server at 192.168.1.121:443.
07/03/2016 20:34:57 - DEBUG - Connecting to 192.168.1.121:443
07/03/2016 20:34:57 - DEBUG - Status Code: 200 | Message: [{"sensorid":"2016","kind":"mpcpuload","host":"127.0.0.1"},{"sensorid":"2017","kind":"mpmemory","host":"127.0.0.1"},{"sensorid":"2018","kind":"mpdiskspace","host":"127.0.0.1"},{"sensorid":"2019","maxtemp":"45","kind":"mpprobehealth","host":"127.0.0.1","celfar":"C"},{"sensorid":"2020","kind":"mpexternalip","host":"127.0.0.1"}]
07/03/2016 20:34:57 - INFO - Task success.
07/03/2016 20:34:57 - DEBUG - Task success. HTTP Status 200, Message: [{"sensorid":"2016","kind":"mpcpuload","host":"127.0.0.1"},{"sensorid":"2017","kind":"mpmemory","host":"127.0.0.1"},{"sensorid":"2018","kind":"mpdiskspace","host":"127.0.0.1"},{"sensorid":"2019","maxtemp":"45","kind":"mpprobehealth","host":"127.0.0.1","celfar":"C"},{"sensorid":"2020","kind":"mpexternalip","host":"127.0.0.1"}]
07/03/2016 20:34:57 - DEBUG - JSON response: [{u'sensorid': u'2016', u'kind': u'mpcpuload', u'host': u'127.0.0.1'}, {u'sensorid': u'2017', u'kind': u'mpmemory', u'host': u'127.0.0.1'}, {u'sensorid': u'2018', u'kind': u'mpdiskspace', u'host': u'127.0.0.1'}, {u'sensorid': u'2019', u'kind': u'mpprobehealth', u'maxtemp': u'45', u'host': u'127.0.0.1', u'celfar': u'C'}, {u'sensorid': u'2020', u'kind': u'mpexternalip', u'host': u'127.0.0.1'}]
07/03/2016 20:34:57 - DEBUG - {u'sensorid': u'2016', u'kind': u'mpcpuload', u'host': u'127.0.0.1'}
07/03/2016 20:34:57 - DEBUG - Spawning sensor mpcpuload.
07/03/2016 20:34:57 - DEBUG - Running sensor: mpcpuload
07/03/2016 20:34:57 - DEBUG - {u'sensorid': u'2017', u'kind': u'mpmemory', u'host': u'127.0.0.1'}
07/03/2016 20:34:57 - DEBUG - Spawning sensor mpmemory.
07/03/2016 20:34:57 - DEBUG - Running sensor: mpmemory
07/03/2016 20:34:57 - DEBUG - {u'sensorid': u'2018', u'kind': u'mpdiskspace', u'host': u'127.0.0.1'}
07/03/2016 20:34:57 - DEBUG - Spawning sensor mpdiskspace.
07/03/2016 20:34:57 - ERROR - Ooops Something went wrong with 'mpdiskspace' sensor 2018. Error: invalid literal for int() with base 10: 'TB'
07/03/2016 20:34:57 - DEBUG - {u'sensorid': u'2019', u'kind': u'mpprobehealth', u'maxtemp': u'45', u'host': u'127.0.0.1', u'celfar': u'C'}
07/03/2016 20:34:57 - DEBUG - Spawning sensor mpprobehealth.
07/03/2016 20:34:57 - DEBUG - Current Health: 100 percent
07/03/2016 20:34:57 - DEBUG - Running sensor: mpprobehealth
07/03/2016 20:34:57 - DEBUG - {u'sensorid': u'2020', u'kind': u'mpexternalip', u'host': u'127.0.0.1'}
07/03/2016 20:34:57 - DEBUG - Spawning sensor mpexternalip.
07/03/2016 20:34:57 - DEBUG - Running sensor: mpexternalip
07/03/2016 20:34:57 - DEBUG - IP-Address: [{'kind': 'Custom', 'name': 'IP-Address', 'ShowTable': 0, 'ShowChart': 0, 'value': 1, 'customunit': '', 'mode': 'integer'}]
07/03/2016 20:34:57 - ERROR - Ooops Something went wrong with 'mpexternalip' sensor 2020. Error: [Errno 19] No such device
07/03/2016 20:34:57 - INFO - Starting new HTTPS connection (1): 192.168.1.121
07/03/2016 20:34:57 - INFO - data request successfully sent to PRTG Core Server at 192.168.1.121:443.
07/03/2016 20:34:57 - DEBUG - Connecting to 192.168.1.121:443
07/03/2016 20:34:57 - DEBUG - Status Code: 200 | Message: Done
07/03/2016 20:34:57 - INFO - Data success.
07/03/2016 20:34:57 - DEBUG - Data success. Details: HTTP Status 200, Message: Done

Error stating incompatible software versions between Probe and Core

I ran into trouble connecting a RPi (Raspbian Linux) to a PRTG Core server. The connection itself works, but the handshake seems to fail due to incompatible software versions.

Logfile output:

05/21/2015 11:51:59 - INFO - Starting new HTTPS connection (1): x.x.x.x
05/21/2015 11:52:05 - ERROR - ('Connection aborted.', BadStatusLine("\x01ctOK\xaf:F\xb7\x00\x00\x00\xa3\x00\x00\x00Handshake zwischen Probe und Core fehlgeschlagen! Inkompatible Softwareversionen von Probe und Core k\xf6nnten daf\xfcr verantwortlich sein. Bitte updaten Sie die Probe.\x01\x00\x00\x00\xff\xff\xff\xff\xd8\xbd\xda'-\x94\xe4@",))

Software versions:

PRTG Network Monitor 15.2.16.2229
PythonMiniProbe 15.2.2

Help would be much appreciated.

Best regards

Reconnecting after prtg-server restart / unreachable

When the PRTG-Mainserver is unreachable (maybe for 20, 30 Seconds due a reboot after an update or so) the miniprobe disconnects and never reconnects. We have to manually restart all miniprobes. Is this an known issue?

Serveradress not saved in probe.conf, when not available at setup

You have to enter the FQDN or IP of PRTG server installation during the setup. If that server is not pingable when entered, a message comes up "not reachable, add anyway?", say yes but it will not be saved in the probe.conf file.
You have to enter it manually afterwards (it says none in the configfile)

Uninstall

Hi,

just a short question: How do I cleanly uninstall the software from a (RPi) device?

Thanks in advance!

MDADM sensor to PRTG

Hello,

Is it possible to use mdadm.py only on PRTG, if yes what modification to do?

because unfortunately there is no sensor for mdadm ..

I would like a mdadm sensor that runs on a linux connected in SSH to PRTG.

thank you in advance
Regards

snmpcustomsensor

Hallo

Der snmpcustomsensor funktioniert leider bei mir nicht wie gewünscht.
Auf dem Core Server wird nur SNMP Rexuest failed angezeigt. Auf der Probe selber steht im log folgende Zeile: 05/13/2015 22:22:30 - ERROR - Ooops Something went wrong with 'mpsnmpcustom' sensor 2208. Error: NoSuchInstance instance has no attribute 'trunc'
Der SNMP Tester liefert mir aber für die entsprechende OID einen Wert. Leider habe ich keine Kenntnisse in Python, dass ich es selber lösen könnte.
Danke für eine Antwort.

Freundliche Grüsse
Stefan Brunner

Custom script on a state trigger

Hy,

it's possible to execute custom script on a state trigger ?

Exemple :
If a sensor state change to "critical"
if a ping sensor change to unreachable
...

regards ;)

Uninstall - HowTo?

How would I completely uninstall PythonMiniProbe from a Linux system?

Install script assigns wrong file permissions

print "Changing File Permissions"
os.chmod('%s/probe.py' % probe_path, 755)
os.chmod('/etc/init.d/probe.sh', 755)
755 is interpreted as decimal and not octal as intended. Use 0755 (py2) or 0o755 (py3) or decimal 493

direct write access

since i am creating so many new features and fixes for the Python MiniProbe, i was wondering if i can get direct write access to the repository. it would make both our lives much easier since you just monitor my changes and my changes are directly available to everyone from the official repository.
I have many more features planned for the Python MiniProbe like:
snmp proxy (redirect a snmp request to another device on the remote network)
wmi proxy (same as above, but then for wmi)
and some others which i am still working out on paper...

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.