diff --git a/plugins/personal/nagios/class_nagiosAccount.inc b/plugins/personal/nagios/class_nagiosAccount.inc
index 216c0913521b9b7b929275b81da892ac17b4ef70..3809cb58a33b5c18751fe490a7facab21e47b587 100644 (file)
/* Show tab dialog headers */
if ($this->parent != NULL){
if ($this->is_account){
- $display= $this->show_header(_("Remove nagios account"),
+ $display= $this->show_disable_header(_("Remove nagios account"),
_("This account has nagios features enabled. You can disable them by clicking below."));
} else {
- $display= $this->show_header(_("Create nagios account"), _("This account has nagios features disabled. You can enable them by clicking below."));
+ $display= $this->show_enable_header(_("Create nagios account"), _("This account has nagios features disabled. You can enable them by clicking below."));
return($display);
}
}
function plInfo()
{
return (array(
- "plDescription" => _("Intranet account settings"),
+ "plShortName" => _("Nagios"),
+ "plDescription" => _("Nagios account settings"),
"plSelfModify" => TRUE,
- "plDepends" => array("objectClass" => "gosaAccount"),
+ "plDepends" => array("user"),
+ "plPriority" => 8, // Position in tabs
+ "plSection" => "personal", // This belongs to personal
+ "plCategory" => array("users"),
+ "plOptions" => array(),
- "NagiosAlias" => _("Alias"),
- "NagiosPager" => _("Pager number"),
- "NagiosMail" => _("Mail address"),
+ "plProvidedAcls" => array(
- "HostNotificationCommands" => _("Host notification commands"),
- "HostNotificationOptions" => _("Host notification options"),
- "HostNotificationPeriod" => _("Host notification period"),
+ "NagiosAlias" => _("Alias"),
+ "NagiosPager" => _("Pager number"),
+ "NagiosMail" => _("Mail address"),
- "ServiceNotificationCommands" => _("Service notification commands"),
- "ServiceNotificationOptions" => _("Service notification options"),
- "ServiceNotificationPeriod" => _("Service notification period"),
+ "HostNotificationCommands" => _("Host notification commands"),
+ "HostNotificationOptions" => _("Host notification options"),
+ "HostNotificationPeriod" => _("Host notification period"),
- "AuthorizedAllHosts" => _("View all hosts"),
- "AuthorizedAllServices" => _("View all services"),
+ "ServiceNotificationCommands" => _("Service notification commands"),
+ "ServiceNotificationOptions" => _("Service notification options"),
+ "ServiceNotificationPeriod" => _("Service notification period"),
- "AuthorizedSystemCommands" => _("Trigger system commands"),
- "AuthorizedAllHostCommands" => _("Trigger all host commands"),
- "AuthorizedAllServiceCommands" => _("Trigger all service commands"),
+ "AuthorizedAllHosts" => _("View all hosts"),
+ "AuthorizedAllServices" => _("View all services"),
- "AuthorizedConfigurationInformation"=> _("View configuration information"),
- "AuthorizedSystemInformation" => _("View system informations")));
+ "AuthorizedSystemCommands" => _("Trigger system commands"),
+ "AuthorizedAllHostCommands" => _("Trigger all host commands"),
+ "AuthorizedAllServiceCommands" => _("Trigger all service commands"),
+ "AuthorizedConfigurationInformation"=> _("View configuration information"),
+ "AuthorizedSystemInformation" => _("View system informations"))
+ ));
}
}