Code

Made proxy account compatible with acls
[gosa.git] / plugins / personal / nagios / nagios.tpl
index 2b51f15f52e0cecc8473d47b250f918d549e6b0e..cb6262148d5a87000c1785aba33b6e5ff262d07d 100644 (file)
-
-
-<h2><input type="checkbox" name="nagiosContact" value="B" {$nagiosContact}>{t}Nagios Contact{/t}</h2>
-<table summary="" style="width:90%; vertical-align:top; text-align:left;" cellpadding=0 border=0>
-
-<tr><td>nagios alias</td><td><input  style="width:280px" type="textbox" name="NagiosAlias"  {$NagiosAliasACL} value="{$NagiosAlias}"></td></tr>
-
-<tr><td>nagios email</td><td><input style="width:280px" type="textbox" name="NagiosMail"  {$NagiosMailACL} value="{$NagiosMail}"></td></tr>
-
-<tr><td>nagios pager</td><td><input style="width:280px" type="textbox" name="NagiosPager"  {$NagiosPagerACL} value="{$NagiosPager}"></td></tr>
-<tr><td colspan=2><hr></td><td></tr>
-<tr><td>service_notification_period</td><td><input style="width:280px" type="textbox" name="ServiceNotificationPeriod"  {$ServiceNotificationPeriodACL} value="{$ServiceNotificationPeriod}"></td>
-
-<td>host_notification_options</td><td><input style="width:280px" type="textbox" name="HostNotificationOptions" {$HostNotificationOptionsACL} value="{$HostNotificationOptions}"></td></tr>
-
-<tr><td>service_notification_options</td><td><input style="width:280px" type="textbox" name="ServiceNotificationOptions" {$ServiceNotificationOptions} value="{$ServiceNotificationPeriod}"></td>
-
-<td>host_notification_period</td><td><input style="width:280px" type="textbox" name="HostNotificationPeriod"  {$HostNotificationPeriodACL} value="{$HostNotificationPeriod}"></td></tr>
-
-<tr><td>service_notification_commands</td><td><input style="width:280px" type="textbox" name="ServiceNotificationCommands" {$ServiceNotificationCommands} value="{$ServiceNotificationCommands}"></td>
-
-<td>host_notification_commands</td><td><input style="width:280px" type="textbox" name="HostNotificationCommands" {$HostNotificationCommandsACL} value="{$HostNotificationCommands}"></td></tr>
-
+<table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding="0" border="0">
+ <tr>
+  <td style="width:50%; vertical-align:top;">
+   <h2><img class="center" alt="" align="middle" src="images/rightarrow.png" />&nbsp;{t}Nagios Account{/t}</h2>
+   <table summary="">
+    <tr>
+     <td><label for="NagiosAlias">{t}Alias{/t}</label>{$must}</td>
+     <td><input id="NagiosAlias" name="NagiosAlias" size=25 maxlength=65 {$NagiosAliasACL} value="{$NagiosAlias}"></td>
+    </tr>
+
+    <tr>
+     <td><label for="NagiosMail">{t}Mail address{/t}</label>{$must}</td>
+     <td><input id="NagiosMail" name="NagiosMail" size=25 maxlength=65 {$NagiosMailACL} value="{$NagiosMail}"></td>
+    </tr>
+
+       <tr>
+       <td><label for="HostNotificationPeriod">{t}Host notification period{/t}</label>{$must}</td>
+       <td><select name="HostNotificationPeriod" id="HostNotificationPeriod" {$HostNotificationPeriodACL}>
+       {html_options options=$HostNotificationPeriodValues values=$HostNotificationPeriodValues selected=$HostNotificationPeriod }
+       </select>
+       </td>
+       </tr>
+
+       <tr>
+       <td><label for="ServiceNotificationPeriod">{t}Service notification period{/t}</label>{$must}</td>
+       <td><select name="ServiceNotificationPeriod" id="ServiceNotificationPeriod" {$ServiceNotificationPeriodACL}>
+       {html_options options=$ServiceNotificationPeriodValues values=$ServiceNotificationPeriodValues selected=$ServiceNotificationPeriod}
+       </select>
+       </td>
+       </tr>
+       <tr>
+       <td><label for="ServiceNotificationOptions">{t}Service notification options{/t}</label>{$must}</td>
+       <td><select name="ServiceNotificationOptions" id="ServiceNotificationOptions" {$ServiceNotificationOptionsACL}>
+       {html_options options=$ServiceNotificationOptionsValues values=$ServiceNotificationOptionsValues selected=$ServiceNotificationOptions}
+       </select>
+       </td>
+       </tr>
+
+
+       <tr>
+       <td><label for="HostNotificationOptions">{t}Host notification options{/t}</label>{$must}</td>
+       <td><select name="HostNotificationOptions" id="HostNotificationOptions" {$HostNotificationOptionsACL}>
+       {html_options options=$HostNotificationOptionsValues values=$HostNotificationOptionsValues selected=$HostNotificationOptions }
+       </select>
+       </td>
+       </tr>
+    <tr>
+     <td><label for="NagiosPager">{t}Pager{/t}</label></td>
+     <td><input id="NagiosPager" name="NagiosPager" size=25 maxlength=65 {$NagiosPagerACL} value="{$NagiosPager}"></td>
+    </tr>
+
+    <tr>
+     <td><label for="ServiceNotificationCommands">{t}Service notification commands{/t}</label></td>
+     <td><input id="ServiceNotificationCommands" disabled name="ServiceNotificationCommands" size=25 maxlength=65  value="{$ServiceNotificationCommands}"></td>
+    </tr>
+    <tr>
+     <td><label for="HostNotificationCommands">{t}Host notification commands{/t}</label></td>
+     <td><input id="HostNotificationCommands" disabled name="HostNotificationCommands" size=25 maxlength=65  value="{$HostNotificationCommands}"></td>
+    </tr>
 </table>
+</td>
+  <td style="border-left:1px solid #A0A0A0">
+   &nbsp;
+  </td>
+<td style="width:100%; vertical-align:top;">
+   <h2><img class="center" alt="" align="middle" src="images/rightarrow.png" />&nbsp;{t}Nagios authentification{/t}</h2>
+   <table summary="">
+       <tr><td><input type="checkbox" name="AuthorizedSystemInformation" value="1" {$AuthorizedSystemInformationACL}  
+{$AuthorizedSystemInformationCHK}>{t}view system informations{/t}</td></tr>
+       
+       <tr><td><input type="checkbox" name="AuthorizedConfigurationInformation" {$AuthorizedConfigurationInformationACL} value="1" 
+{$AuthorizedConfigurationInformationCHK}>{t}view configuration information{/t}</td></tr>
+       
+       <tr><td><input type="checkbox" name="AuthorizedSystemCommands" {$AuthorizedSystemCommandsACL} value="1" 
+{$AuthorizedSystemCommandsCHK}>{t}trigger system commands{/t}</td></tr>
+       
+       <tr><td><input type="checkbox" name="AuthorizedAllServices" {$AuthorizedAllServicesACL} value="1" 
+{$AuthorizedAllServicesCHK}>{t}view all services{/t}</td></tr>
+       
+       <tr><td><input type="checkbox" name="AuthorizedAllHosts" {$AuthorizedAllHostsACL} value="1" 
+{$AuthorizedAllHostsCHK}>{t}view all hosts{/t}</td></tr>
+       
+       <tr><td><input type="checkbox" name="AuthorizedAllServiceCommands" {$AuthorizedAllServiceCommandsACL} value="1" {$AuthorizedAllServiceCommandsCHK}>{t}trigger all service commands{/t}</td></tr>
+       
+       <tr><td><input type="checkbox" name="AuthorizedAllHostCommands" {$AuthorizedAllHostCommandsACL} value="1" 
+{$AuthorizedAllHostCommandsCHK}>{t}trigger all host commands{/t}</td></tr>
+
+   </table>
+</td>
 
-<hr>
-<h2><input type="checkbox" name="nagiosAuth" value="B "{$nagiosAuth} >{t}Nagios authorisation{/t}</h2>
-
-<input type="checkbox" name="AuthorizedSystemInformation" {$AuthorizedSystemInformationACL} value="{$AuthorizedSystemInformation}" {$AuthorizedSystemInformation}>authorized_for_system_information<br />
-
-<input type="checkbox" name="AuthorizedConfigurationInformation" {$AuthorizedConfigurationInformationACL} value="{$AuthorizedConfigurationInformation}" {$AuthorizedConfigurationInformation}>authorized_for_configuration_information<br />
-
-<input type="checkbox" name="AuthorizedSystemCommands" {$AuthorizedSystemCommandsACL} value="{$AuthorizedSystemCommands}" {$AuthorizedSystemCommands}>authorized_for_system_commands<br />
-
-<input type="checkbox" name="AuthorizedAllServices" {$AuthorizedAllServicesACL} value="{$AuthorizedAllServices}" {$AuthorizedAllServices}>authorized_for_all_services<br />
-
-<input type="checkbox" name="AuthorizedAllHosts" {$AuthorizedAllHostsACL} value="{$AuthorizedAllHosts}" {$AuthorizedAllHosts}>authorized_for_all_hosts<br />
-
-<input type="checkbox" name="AuthorizedAllServiceCommands" {$AuthorizedAllServiceCommandsACL} value="{$AuthorizedAllServiceCommands}" {$AuthorizedAllServiceCommands}>authorized_for_all_service_commands<br />
-
-<input type="checkbox" name="AuthorizedAllHostCommands" {$AuthorizedAllHostCommandsACL} value="{$AuthorizedAllHostCommands}" {$AuthorizedAllHostCommands}>authorized_for_all_host_commands<br />
+</table>
 
 <input type="hidden" name="nagiosTab" value="nagiosTab">
 
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.mail.focus();
+  document.mainform.NagiosAlias.focus();
   -->
 </script>