UDP port monitoring
Posted on 2004-10-08
I would like to build a simple program that will monitor different UDP ports on a number of servers I have employed. I want the program to be run as a cronjob, and notify me of any downs that it detects.
The problem I'm having is getting a guarenteed UDP response when I need to detect if the port is responding or not.
Do I need to setup a UDP client for each server that I expect to be on that port? Or is there a guarenteed way to receive a UDP response indicating that there is a server responding on said port? The types of UDP applications that I can expect to monitor are:
Half Life/Counter Strike server
Team Speak server
Thank you for your help.