Check Services with PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
xerc
Forum Newbie
Posts: 1
Joined: Tue Apr 03, 2007 2:39 pm

Check Services with PHP

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply