monitoring

Create a small control panel on screen for pyautogui monitoring and control purposes

Create a small control panel on screen for pyautogui monitoring and control purposes Question: How do I display a small control panel screen that can control and monitoring pyautogui process? I expect there is a pinned window that for monitoring purpose such as displaying current log.txt that has been generated by logging and controlling purpose …

Total answers: 1

Expose specific metrics location for my custom collector of metrics

Expose specific metrics location for my custom collector of metrics Question: I’m writing custom k8s metrics collector for purpose of monitoring application’s versions in two various clusters. How to expose specific location for metrics like "/metrics" and collect metrics in infinity cycle? That’s my custom metrics collector example: import time from prometheus_client import start_http_server from …

Total answers: 1

Best practice how to send Django app logs to phone

Best practice how to send Django app logs to phone Question: I would like to send my logs from my Django app to my phone. I thought of using slack mail integration to send mails to a dedicated channel but this is only available in the paid slack version. Do you have any ideas with …

Total answers: 2

No output returned from plugin in centreon when using Python PyRfc library

No output returned from plugin in centreon when using Python PyRfc library Question: I have written a skeleton for python script for centreon. The problem is that the script works fine until I import the pyrfc library, which is the key for this script. Without this library, centreon returns me a green OK message which …

Total answers: 1

watchdog monitoring file for changes

watchdog monitoring file for changes Question: I have a need to watch a log file for changes. After looking through stackoverflow questions, I see people recommending watchdog. So I’m trying to test, and am not sure where to add the code for when files change: import time from watchdog.observers import Observer from watchdog.events import LoggingEventHandler …

Total answers: 4

Read from a log file as it's being written using python

Read from a log file as it's being written using python Question: I’m trying to find a nice way to read a log file in real time using python. I’d like to process lines from a log file one at a time as it is written. Somehow I need to keep trying to read the …

Total answers: 4

Monitoring contents of files/directories?

Monitoring contents of files/directories? Question: I’m looking for a cross-platform file monitoring python package? I know it is possible to monitor files on windows using pywin32, and there are packages working on Linux/Unix but does anyone know about a cross-platform one? Asked By: dahpgjgamgan || Source Answers: I found this link, which talks about your …

Total answers: 5