fraizor Posted October 15, 2023 Posted October 15, 2023 Hello I am making a simple script to share employees computers status (online/offline) I am using autoit as the windows client and PHP as the server... I was wondering if there is a method that is more reliable than constantly pinging the server with HTTP request to indicate client availability... I feel that multiple clients pinging the server every couple of seconds is a waste of resources for client and server. Anyone could direct me to the correct direction please? AutoFox, A Modern, Simple, No dependency, Noob friendly yet powerful Firefox UDF !
Andreik Posted October 15, 2023 Posted October 15, 2023 You didn't defined very clear what online/offline means so I assume you talk about computer being shutdown. In this case maybe a group policy script that run before shutdown and on startup is what do you need to inform a central server about users status.
fraizor Posted October 15, 2023 Author Posted October 15, 2023 On 10/15/2023 at 8:23 PM, Andreik said: You didn't defined very clear what online/offline means so I assume you talk about computer being shutdown. In this case maybe a group policy script that run before shutdown and on startup is what do you need to inform a central server about users status. Expand Yes , actually as you know a client being offline is not only related to shutdown... It could be hardware failure, network failure, app crash .... A group policy script would not be able to detect these ... AutoFox, A Modern, Simple, No dependency, Noob friendly yet powerful Firefox UDF !
taurus905 Posted October 15, 2023 Posted October 15, 2023 You could use WMI to get the status once an hour and write to a log. Like @Andreik eluded to, you didn't clearly state your entire goal. taurus905 "Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs
Andreik Posted October 15, 2023 Posted October 15, 2023 (edited) On 10/15/2023 at 8:27 PM, fraizor said: It could be hardware failure, network failure, app crash .... Expand That implies a heart beat system like a ping at certain interval of times. I am wonder how else would you be able to detect a shutdown, a network interface failure, a network issue or an application crash? If I were you probably I would use the server to broadcast a message to all clients and then wait for each computer to reply in a certain amount of time. A failure to reply in any case would be considered a client that went offline. Edited October 15, 2023 by Andreik
orbs Posted October 15, 2023 Posted October 15, 2023 how about a server-based monitoring software? gives you everything you need (monitoring up/down, hardware, software, services...) without any need for client install. i once used this one and i was very happy with it, there are many many others... Signature - my forum contributions: Reveal hidden contents UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now