Re: icmp ping, check port, etc.
| From: | Ewout de Boer | Date: | Thu, 14 Nov 2002 19:32:44 +0000 |
| Subject: | Re: icmp ping, check port, etc. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124476@lists.php.net to get a copy of this message | ||
You could exec the ping command and analyze its output using regular
expressions.
regards,
Ewout de Boer
----- Original Message -----
From: "Bryan Koschmann - GKT" <gktnews@gktech.net>
To: "PHP General" <php-general@lists.php.net>
Sent: Thursday, November 14, 2002 8:09 PM
Subject: [PHP] icmp ping, check port, etc.
> Hello,
>
> I've been looking into setting up a site to check the hosts on my network.
> Basically, I want it to ping each host and tell whether it is up or not,
> then also check various services (www, ftp, smtp, pop3, dns, ssh) and see
> if they are available. This would check either for a connection refused or
> a timeout. I am wondering first, how to do the icmp ping. Then, will
> fsockopen work for both seeing if the port is open, and checking for
> timeout? I'm sure I can play with fsockopen and figure it out, but I
> wanted to ask and make sure it was possible first. The ping portion is
> where I am stuck at.
>
> Any help would he greatly appreciated!
>
> Thanks,
>
> Bryan
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>