Results 1 to 1 of 1
-
06-02-2004, 10:57 PM #1Web Hosting God
- Join Date
- Dec 2001
- Location
- Above The Clouds
- Posts
- 7,223
Cpanel port 25 service monitor dilema
We have service staus script on a Plesk server and it checks http, bind, pop, smtp etc and it works great. It checks Plesk and Cpanel servers flawlessly. But when I put the same script on a Cpanel server, it can't connect to port 25 on any Cpanel box. That's pretty strange.
What is even more strange is if I set the Cpanel boxes to run exim on port 26 as well and set the script to check port 26, it can connect.
So externally (as in from Plesk), the script can check Cpanel server's port 25 but Cpanel can't check its own port 25 or port 25 on any otherCpanel server. Most bizarre! Here's the code that I've always used:
Code:$noc_smtp = @fsockopen($box, 25, $errno, $errstr, 4); if (!$noc_smtp) { $noc_smtp = "nexica_01/bul101.gif"; } else { fclose($noc_smtp); $noc_smtp = "nexica_01/bul100.gif"; }
██ Laurence Flynn @ HostNEXUS.com
██ Managed WordPress Hosting Solutions
██ Focused on speed. Obsessed with security.