static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($tabnum == 49) {
         $pmServicescatalog = new PluginMonitoringServicescatalog();
         $pmDisplay = new PluginMonitoringDisplay();
         $pmDisplay->showCounters("Businessrules");
         $pmServicescatalog->showChecks();
     }
     return true;
 }
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($tabnum == 49) {
         $pmServicescatalog = new PluginMonitoringServicescatalog();
         $pmDisplay = new PluginMonitoringDisplay();
         // $pmDisplay->showCounters("Businessrules");
         $pmServicescatalog->showChecks();
     } else {
         if ($tabnum == 50) {
             $pmContact_Item = new PluginMonitoringContact_Item();
             $pmContact_Item->showContacts("PluginMonitoringServicescatalog", $item->getID());
         } else {
             Plugin::load('monitoring', true);
             Plugin::displayAction($appliance, $_POST['glpi_tab']);
         }
     }
     return true;
 }
  ------------------------------------------------------------------------

  @package   Plugin Monitoring for GLPI
  @author    David Durieux
  @co-author
  @comment
  @copyright Copyright (c) 2011-2014 Plugin Monitoring for GLPI team
  @license   AGPL License 3.0 or (at your option) any later version
             http://www.gnu.org/licenses/agpl-3.0-standalone.html
  @link      https://forge.indepnet.net/projects/monitoring/
  @since     2011

  ------------------------------------------------------------------------
*/
include "../../../inc/includes.php";
Session::checkCentralAccess();
Html::header(__('Monitoring - dashboard (services catalogs)', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "PluginMonitoringDashboard", "dashboard");
// Reduced or normal interface ?
if (!isset($_SESSION['plugin_monitoring_reduced_interface'])) {
    $_SESSION['plugin_monitoring_reduced_interface'] = false;
}
$pmDisplay = new PluginMonitoringDisplay();
$pmServicescatalog = new PluginMonitoringServicescatalog();
$pmMessage = new PluginMonitoringMessage();
$pmMessage->getMessages();
$pmDisplay->menu();
Session::checkRight("plugin_monitoring_servicescatalog", PluginMonitoringServicescatalog::DASHBOARD);
$pmDisplay->showCounters("Businessrules");
$pmServicescatalog->showChecks($_SESSION['plugin_monitoring_reduced_interface']);
Html::footer();
  GNU Affero General Public License for more details.

  You should have received a copy of the GNU Affero General Public License
  along with Monitoring. If not, see <http://www.gnu.org/licenses/>.

  ------------------------------------------------------------------------

  @package   Plugin Monitoring for GLPI
  @author    David Durieux
  @co-author 
  @comment   
  @copyright Copyright (c) 2011-2013 Plugin Monitoring for GLPI team
  @license   AGPL License 3.0 or (at your option) any later version
             http://www.gnu.org/licenses/agpl-3.0-standalone.html
  @link      https://forge.indepnet.net/projects/monitoring/
  @since     2011

  ------------------------------------------------------------------------
*/
include "../../../inc/includes.php";
Session::checkCentralAccess();
Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "monitoring", "display");
$pmDisplay = new PluginMonitoringDisplay();
$pmServicescatalog = new PluginMonitoringServicescatalog();
$pmMessage = new PluginMonitoringMessage();
$pmMessage->getMessages();
$pmDisplay->menu();
PluginMonitoringProfile::checkRight("servicescatalog", 'r');
$pmDisplay->showCounters("Businessrules");
$pmServicescatalog->showChecks();
Html::footer();
Beispiel #5
0
function plugin_headings_monitoring_dashboadservicecatalog($item)
{
    $pmServicescatalog = new PluginMonitoringServicescatalog();
    $pmDisplay = new PluginMonitoringDisplay();
    $pmDisplay->showCounters("Businessrules");
    $pmServicescatalog->showChecks();
}