bohwax.blogg.se

Sga readerextractor from dow files
Sga readerextractor from dow files







# Make Prometheus scrape itself for metrics. # A example scrape configuration for running Prometheus with Docker. Otherwise, I would recommend that you check out an existing solution like Nagios, and follow the security recommendations very closely. If you're using this for a simple hobby/student project, roll out your own solution, and learn.

sga readerextractor from dow files

Based on your question and how it was asked, I would assume that you do not have the experience nor the insight to implement this in a secure way yet. (Check the socket module's official documentation for examples on how to implement clients and servers.) You can use your code to implement a server that lets clients connect to it, to check up on the services running on that host.If you want more information and need to go deeper, or you want to check up on local services, your solution will have to involve a local monitor process on each host, and connecting to that process to gather information. If you want to stay in Python, you can achieve the same end result by using Python's socket module to try and connect to a given host and port to determine whether or not the port that a service is listening behind, is open.Ī Python package or tool for monitoring network services on other hosts like this probably already exists. Run the script every once in a while to check up on the services, and do your thing. If you are only dealing with network services with exposed ports:Ī very simple solution would involve using a script and a port scanner (nmap) if a port that a service is listening behind, is open, then we can assume that the service is running. From the top of my head, here are some ideas:

sga readerextractor from dow files

If you want to check whether or not a process is running on another host, there are many ways to approach this problem, and the solution depends on how deep you want to go (or need to go), and what your local situation is. As far as I know, psutil can only be used for gathering information about local processes, and is not suitable for retrieving information about processes running on other hosts.









Sga readerextractor from dow files