From: guiguidoc Date: Wed, 26 Oct 2005 08:38:53 +0000 (+0000) Subject: Add detection for nagios schema X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8f0b46782e8a37d4b1a5931b5dbbf4d19dfbda86;p=gosa.git Add detection for nagios schema git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1694 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions_setup.inc b/include/functions_setup.inc index 91fd12ccc..0200bd5ab 100644 --- a/include/functions_setup.inc +++ b/include/functions_setup.inc @@ -226,6 +226,16 @@ function schema_check($server, $admin, $password, $aff=0,$CalledByIndexPhP=false $affich['phoneaccount']['msg']= _("Support for gofon enabled")."gofon.schema"; $affich['phoneaccount']['status']= true; } + + if (!isset($objectclasses['nagiosContact'])){ + $messages['nagioscontact']['msg']= _("Support for nagios disabled, no schema seems to be installed"); + $affich['nagioscontact']['msg']= $messages['nagioscontact']['msg']."nagios.schema"; + $messages['nagioscontact']['status']= FALSE; + $affich['nagioscontact']['status']= FALSE; + }else{ + $affich['nagioscontact']['msg']= _("Support for nagios enabled")."nagios.schema"; + $affich['nagioscontact']['status']= true; + } /* Fix for PHP Fehler "Undefined index: ldapconf" * Ablaufverfolgung[1]: Funktion schema_check Datei: /home/hickert/gosa/include/functions_setup.inc (Zeile 230)