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
2 minutes ago, 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.

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)
25 minutes ago, fraizor said:

It could be hardware failure, network failure, app crash ....

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:

Spoiler

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

WinPose - simultaneous fluent move and resize

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

Magic Math - a math puzzle

Demos:

Title Bar Menu - click the window title to pop-up a menu

 

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
×
×
  • Create New...