From be8bc5bf5e09370e8c81a7d29ece4343a0dfbef5 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 14 Jul 2008 12:21:15 +0000 Subject: [PATCH] Updated nagios ACLs. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11628 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../personal/nagios/class_nagiosAccount.inc | 23 ++++++++----------- gosa-plugins/nagios/personal/nagios/main.inc | 4 ++-- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/gosa-plugins/nagios/personal/nagios/class_nagiosAccount.inc b/gosa-plugins/nagios/personal/nagios/class_nagiosAccount.inc index d434ec4e4..0d50aac78 100644 --- a/gosa-plugins/nagios/personal/nagios/class_nagiosAccount.inc +++ b/gosa-plugins/nagios/personal/nagios/class_nagiosAccount.inc @@ -282,26 +282,23 @@ class nagiosAccount extends plugin "plProvidedAcls" => array( "NagiosAlias" => _("Alias"), - "NagiosPager" => _("Pager number"), "NagiosMail" => _("Mail address"), - - "HostNotificationCommands" => _("Host notification commands"), - "HostNotificationOptions" => _("Host notification options"), "HostNotificationPeriod" => _("Host notification period"), - - "ServiceNotificationCommands" => _("Service notification commands"), - "ServiceNotificationOptions" => _("Service notification options"), "ServiceNotificationPeriod" => _("Service notification period"), + "HostNotificationOptions" => _("Host notification options"), + "ServiceNotificationOptions" => _("Service notification options"), + "NagiosPager" => _("Pager number"), - "AuthorizedAllHosts" => _("View all hosts"), - "AuthorizedAllServices" => _("View all services"), - + "ServiceNotificationCommands" => _("Service notification commands"), + "HostNotificationCommands" => _("Host notification commands"), + "AuthorizedSystemInformation" => _("View system informations"), + "AuthorizedConfigurationInformation"=> _("View configuration information"), "AuthorizedSystemCommands" => _("Trigger system commands"), - "AuthorizedAllHostCommands" => _("Trigger all host commands"), + "AuthorizedAllServices" => _("View all services"), + "AuthorizedAllHosts" => _("View all hosts"), "AuthorizedAllServiceCommands" => _("Trigger all service commands"), + "AuthorizedAllHostCommands" => _("Trigger all host commands")) - "AuthorizedConfigurationInformation"=> _("View configuration information"), - "AuthorizedSystemInformation" => _("View system informations")) )); } } diff --git a/gosa-plugins/nagios/personal/nagios/main.inc b/gosa-plugins/nagios/personal/nagios/main.inc index a564dd77f..5130941c0 100644 --- a/gosa-plugins/nagios/personal/nagios/main.inc +++ b/gosa-plugins/nagios/personal/nagios/main.inc @@ -111,7 +111,7 @@ if (!$remove_lock){ $info= "\"\" ".$ui->dn." "; - if(preg_match("/w/",$ui->get_permissions($ui->dn,"users/nagiosAccount"))){ + if(preg_match("/r/",$ui->get_permissions($ui->dn,"users/nagiosAccount"))){ $info.= "\"\" ".msgPool::clickEditToChange(); $display.= "\n"; @@ -122,7 +122,7 @@ if (!$remove_lock){ } /* Page header*/ - $display= print_header(get_template_path('images/monitoring.png'), _("Nagios settings"), $info).$display; + $display= print_header(get_template_path('plugins/nagios/images/plugin.png'), _("Nagios settings"), $info).$display; } -- 2.30.2