Module: nagvis Branch: master Commit: 80294e0deb071b53e5411229cf440a06e15581fc URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=80294e0deb071b53e5411229cf440a06e15581fc
Author: Lars Michelsen <[email protected]> Date: Wed Nov 4 10:38:15 2009 +0100 Added socket function check --- .../core/classes/GlobalBackendmklivestatus.php | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/share/server/core/classes/GlobalBackendmklivestatus.php b/share/server/core/classes/GlobalBackendmklivestatus.php index 171c269..d17bee2 100644 --- a/share/server/core/classes/GlobalBackendmklivestatus.php +++ b/share/server/core/classes/GlobalBackendmklivestatus.php @@ -62,6 +62,10 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { if(!$this->checkSocketExists()) { new GlobalMessage('ERROR', GlobalCore::getInstance()->getLang()->getText('The livestatus socket [SOCKET] in backend [BACKENDID] does not exist', Array('BACKENDID' => $this->backendId, 'SOCKET' => $this->socketPath))); } + if(!function_exists('socket_create')) { + new GlobalFrontendMessage('ERROR', GlobalCore::getInstance()->getLang()->getText('The PHP function socket_create is not available. Maybe the sockets module is missing in your PHP installation. Needed by backend [BACKENDID].', Array('BACKENDID' => $this->backendId, 'SOCKET' => $this->socketPath))); + } + return true; } ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
