PRTG / PythonMiniProbe

MiniProbe for PRTG Network Monitor written in Python
BSD 3-Clause "New" or "Revised" License
73 stars 50 forks source link

Probe disconnects without any error or warning #9

Closed eagle00789 closed 9 years ago

eagle00789 commented 9 years ago

A freshly installed probe stop running after a random time. The logging (including debug log) doesn't report anything out of the ordinary

eagle00789 commented 9 years ago

Started a screen session with the probe manually started inside the screen session. Now it's just a matter of time until the probe crashes to see what goes wrong.

konstantinpae commented 9 years ago

Have you checked the Log of the PRTG Core Server? Anything unusual there? Also, are you able to reproduce the disconnect at will?

eagle00789 commented 9 years ago

There is no entry in the logfile as i already stated in my initial request. I can't reproduce it at an instant, that's why i started a screen session with the probe manually started in the screen session to see if the probe dumps a tracelog to the console when it crashes.

konstantinpae commented 9 years ago

@eagle00789 just talked to the interface developer on core side and he is looking into this right now. It seems that he might have found the flaw and is already working on fixing the same. I'll keep this issue open until a fix is out.

eagle00789 commented 9 years ago

Even though you think it's the core side, i will still monitor one of my probes to see what the tracelog prints when it fails (if it print's something at all), But still good to hear that a possible problem has already been found...

eagle00789 commented 9 years ago

my probe that i was monitoring with screen, just crashed and gave the following error on the console:

Traceback (most recent call last):
  File "probe.py", line 211, in <module>
    main()
  File "probe.py", line 182, in main
    logging.error("DATA Timeout: " + json_payload_data)
TypeError: cannot concatenate 'str' and 'list' objects

To fix this, replace line 182 in probe.py with the line below

logging.error("DATA Timeout: " + str(json_payload_data).strip('[]'))

This fix will be included in my next pullrequest i'm going to do on friday/saturday

konstantinpae commented 9 years ago

@eagle00789 looking forward to the pull request. If done on the weekend it might get Monday until I can accept. Issue stays open therefore.

konstantinpae commented 9 years ago

Closing this issue because of bugfix in pull request