Page 1 of 1

Check Services with PHP

Posted: Tue Apr 03, 2007 2:44 pm
by xerc
I'm trying to roll my own little network/systems monitor. Pinging ports is fine and simple enough, but there are some services which run 'locally' on the servers -- commerical and custom applications. These are installed as services, but I'm trying to figure out if it is possible for PHP to communicate with Windows Server 2003 to check the status of a service -- and then of course report to a remote MySQL db or something. Anyone know how I could do this? I'm not a VBScript/WMI guy, so looking for an option where I don't have to exec() a .bat file or something to return a string. Thanks in advance for the help.

Posted: Tue Apr 03, 2007 3:45 pm
by feyd
Unless the services offer a "pulse"-like interface that they listen to, you'll more than likely end up needing to call exec() or its sibling functions.