From a6d3984e6aee6e9b514f196111840cd7d092be7f Mon Sep 17 00:00:00 2001 From: opensides Date: Mon, 26 Sep 2005 23:51:51 +0000 Subject: [PATCH] rework of the nagios plugin and interface corrected one type in class_mailAccount.inc git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1428 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/mail/class_mailAccount.inc | 2 +- .../personal/nagios/class_nagiosAccount.inc | 8 +- plugins/personal/nagios/nagios.tpl | 90 +++++++++++-------- 3 files changed, 56 insertions(+), 44 deletions(-) diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc index f93137649..13bc4b0c9 100644 --- a/plugins/personal/mail/class_mailAccount.inc +++ b/plugins/personal/mail/class_mailAccount.inc @@ -670,7 +670,7 @@ class mailAccount extends plugin /* Optionally execute a command after we're done */ if ($this->initially_was_account == $this->is_account){ if ($this->is_modified){ - $this->handle_post_events("mofify"); + $this->handle_post_events("modify"); } } else { $this->handle_post_events("add"); diff --git a/plugins/personal/nagios/class_nagiosAccount.inc b/plugins/personal/nagios/class_nagiosAccount.inc index b9b1d850e..02bda738c 100644 --- a/plugins/personal/nagios/class_nagiosAccount.inc +++ b/plugins/personal/nagios/class_nagiosAccount.inc @@ -107,9 +107,9 @@ class nagiosAccount extends plugin plugin::save(); /* Adapt attributes if needed */ - $method= new $this->method($this->config); - $id= $method->uattrib; - $method->fixAttributesOnStore($this); + //$method= new $this->method($this->config); + //$id= $method->uattrib; + //$method->fixAttributesOnStore($this); /* Write back to ldap */ @@ -166,7 +166,7 @@ class nagiosAccount extends plugin show_ldap_error($ldap->get_error()); /* remove the entry from LDAP */ - //unset ($this->attrs['uid']); + unset ($this->attrs['uid']); /* Optionally execute a command after we're done */ $this->handle_post_events('remove'); diff --git a/plugins/personal/nagios/nagios.tpl b/plugins/personal/nagios/nagios.tpl index 2b51f15f5..7bc1891de 100644 --- a/plugins/personal/nagios/nagios.tpl +++ b/plugins/personal/nagios/nagios.tpl @@ -1,45 +1,57 @@ - - -

{t}Nagios Contact{/t}

- - - - - - - - - - - - - - - - - - - +
nagios alias
nagios email
nagios pager

service_notification_periodhost_notification_options
service_notification_optionshost_notification_period
service_notification_commandshost_notification_commands
+ +
+

{t}Nagios Account{/t}

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{$must}
{$must}
{$must}
{$must}
{$must}
{$must}
{$must}
{$must}
+
-
-

{t}Nagios authorisation{/t}

- -authorized_for_system_information
- -authorized_for_configuration_information
- -authorized_for_system_commands
- -authorized_for_all_services
- -authorized_for_all_hosts
- -authorized_for_all_service_commands
- -authorized_for_all_host_commands
- -- 2.30.2