Answer the question
In order to leave comments, you need to log in
How to call the tasklist command (or analogues) from php?
Good day!
Problem essence: It is
necessary to make monitoring from the server on ~ 100 computers (windows 8). The essence of monitoring is to track the physical availability of the PC and whether a certain process (process.exe) is running on it.
If the picture is more or less clear with physical accessibility - pinging (in order to implement some information on php), then it is not clear with the processes.
I was going to send the tasksel command from the server / s 10.10.10.10 / U user
Can someone tell me something?
Answer the question
In order to leave comments, you need to log in
1. Look in the direction of zabbix , deploy the server, enter all your client PCs through the web face, install the zabbix agent on the client PCs and collect a bunch of useful information, including monitoring the activity of any process.
2. If you still want your own solution, then as an option, run the one you need on a client PC by running the pslist utility from a PHP script, but this is if you have a server under Windows, if under Linux, then as an option, try running the utility under Wine.
3. On the client machine, enable the telnet service, and connect from the php script and run the tasklist.
Look towards sockets:
php.net//manual/ru/book.sockets.php Make a
C daemon that will send php over sockets once a minute that it is running.
Or if at all too lazy to fence and the Internet allows you to make a demon that once a minute turns to the script with a parameter (opens the url)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question