prtg / pythonminiprobe Goto Github PK
View Code? Open in Web Editor NEWMiniProbe for PRTG Network Monitor written in Python
License: BSD 3-Clause "New" or "Revised" License
MiniProbe for PRTG Network Monitor written in Python
License: BSD 3-Clause "New" or "Revised" License
I installed the miniprobe successfully on Mint Linux 19.1 cinnamon and I got the following error message:
failed to start prtgprobe.service: unit prtgprobe.service not found.
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?
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
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)
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
snmptraffic sensor does not work on python 3.4 but 2.7 is working
Good day can you create a counter part script of probe.tpl for RHEL based system?
Hi,
just a short question: How do I cleanly uninstall the software from a (RPi) device?
Thanks in advance!
I would like to merge the development branch to master. As date I would suggest next Tuesday, as I'll be out of office from today evening. Would this be ok for you? @eagle00789
Hi Konstantin,
are there any plans on a sensor that can execute custom scripts; similar to the windows probe?
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?
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
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
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?
How would I completely uninstall PythonMiniProbe from a Linux system?
A freshly installed probe stop running after a random time.
The logging (including debug log) doesn't report anything out of the ordinary
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...
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 ;)
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
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.