Jump to content

Recommended Posts

Posted

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 !

Posted

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.

Posted
  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 !

Posted

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

Posted (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 by Andreik
Posted

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

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...