diff --git a/html/forms/discovery-module-update.inc.php b/html/forms/discovery-module-update.inc.php new file mode 100644 index 0000000000..224657ae53 --- /dev/null +++ b/html/forms/discovery-module-update.inc.php @@ -0,0 +1,37 @@ +Alert settings - - - - - - -
-
- - - - - - - - - - - - - - - -
/>
Override sysContact: value="" />
/>
Disable all alerting for this host
-
- -
-
-
-
+
+ +
+ +
+ /> +
+
+
+
+
+
+ value="" /> +
+
+
+ +
+ /> +
+
+ +
diff --git a/html/pages/device/edit/apps.inc.php b/html/pages/device/edit/apps.inc.php index 7807b2b481..2d357fd7a7 100644 --- a/html/pages/device/edit/apps.inc.php +++ b/html/pages/device/edit/apps.inc.php @@ -69,13 +69,14 @@ if (count($apps_enabled)) } } -echo("
-
+echo("
+
+ - +
- - + + "); @@ -86,19 +87,26 @@ foreach ($applications as $app) if (is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; } echo(" "); - echo(" "); - echo(" "); + echo(" "); echo(" "); $row++; } -echo(''); +echo(' + + +'); echo('
EnableApplicationEnableApplication
"); + echo(" "); echo(" "); echo(" ". ucfirst($app) . "". ucfirst($app) . "
+ + +
'); echo(''); echo('
'); +echo('
'); ?> diff --git a/html/pages/device/edit/device.inc.php b/html/pages/device/edit/device.inc.php index 8af554de0c..3899e62f17 100644 --- a/html/pages/device/edit/device.inc.php +++ b/html/pages/device/edit/device.inc.php @@ -55,29 +55,24 @@ if ($updated && $update_message) } ?> - - - - -
-
-
- - - -
-
-
- - - - - - - - - - - - - - - - - - - - - -
Description:
- Type: - - + + +
+
+ +
+ +
+ +
+
+
+ +
+ -
/>
Override sysLocation: value="" />
Disable
/>
Ignore
/> 
- - - -
+ +
+ +
+ +
+
+ /> +
+
+
+
+
+
+
+ value="" /> +
+
+
+ +
+ /> +
+
+
+ +
+ /> +
+
+ +
- IPMI settings - - - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - -
IPMI/BMC Hostname
IPMI/BMC Username
IPMI/BMC Password
-
- -
- To disable IPMI polling, please clear the setting fields and click Save. -
-
-
-
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+

To disable IPMI polling, please clear the setting fields and click Save.

diff --git a/html/pages/device/edit/modules.inc.php b/html/pages/device/edit/modules.inc.php index 1e9ba7ff24..36a53b3f10 100644 --- a/html/pages/device/edit/modules.inc.php +++ b/html/pages/device/edit/modules.inc.php @@ -1,105 +1,236 @@ +
+
+ Poller Modules +
+
+ Discovery Modules +
+
+
+
+ + + + + + + '); -$i=0; - -echo('
Poller Modules
'); - -echo('
ModuleGlobalDevice
'); -echo(''); foreach ($config['poller_modules'] as $module => $module_status) { - if (!is_integer($i/2)) { $bg_colour = $list_colour_a; } else { $bg_colour = $list_colour_b; } + echo(' + + + + + '); - $i++; + echo(' + + +'); } -echo('
ModuleGlobalDevice
'.$module.' +'); - echo('
'.$module.''); + if($module_status == 1) + { + echo('Enabled'); + } + else + { + echo('Disabled'); + } - echo(($module_status ? 'enabled' : 'disabled' )); - - echo(''); + echo(' + +'); if (isset($attribs['poll_'.$module])) { - if ($attribs['poll_'.$module]) {echo("enabled");} else { echo('disabled'); } - } else { - echo(($module_status ? 'enabled' : 'disabled' )); + if ($attribs['poll_'.$module]) + { + echo('Enabled'); + $module_checked = 'checked'; + } + else + { + echo('Disabled'); + $module_checked = ''; + } + } + else + { + if($module_status == 1) + { + echo('Enabled'); + $module_checked = 'checked'; + } + else + { + echo('Disabled'); + $module_checked = ''; + } } - echo(''); + echo(' + +'); - echo('
- - - -
'); + echo(' + +'); - echo('
'); -echo('
'); -echo('
'); -$i=0; -echo('
Discovery Modules
'); -echo(''); -echo(''); +?> + +
ModuleGlobalDevice
+
+
+ + + + + + + + + $module_status) { - if (!is_integer($i/2)) { $bg_colour = $list_colour_a; } else { $bg_colour = $list_colour_b; } - echo(' + + + + '); + echo(' + + +'); - $i++; } -echo('
ModuleGlobalDevice
'.$module.''); - echo(($module_status ? 'enabled' : 'disabled' )); + echo(' +
+ '.$module.' + +'); - echo(''); + if($module_status == 1) + { + echo('Enabled'); + } + else + { + echo('Disabled'); + } + + echo(' + +'); if (isset($attribs['discover_'.$module])) { - if ($attribs['discover_'.$module]) {echo("enabled");} else { echo('disabled'); } - } else { - echo(($module_status ? 'enabled' : 'disabled' )); + if($attribs['discover_'.$module]) + { + echo('Enabled'); + $module_checked = 'checked'; + } + else + { + echo('Disabled'); + $module_checked = ''; + } + } + else + { + if($module_status == 1) + { + echo('Enabled'); + $module_checked = 'checked'; + } + else + { + echo('Disabled'); + $module_checked = ''; + } } - echo(''); + echo(' + +'); - echo('
- - - -
'); + echo(' + +'); - echo('
'); -echo('
'); +echo(' + +
+'); ?> + + diff --git a/html/pages/device/edit/ports.inc.php b/html/pages/device/edit/ports.inc.php index ddd87052c4..11f68cacd2 100644 --- a/html/pages/device/edit/ports.inc.php +++ b/html/pages/device/edit/ports.inc.php @@ -18,53 +18,52 @@ if ($updated && $update_message) } echo("
-
+ "); -echo(" +echo("
- - - - - - + + + + + + - + - - - + + + "); ?> ". $port['ifOperStatus'].""); echo(""); echo(""); echo(""); diff --git a/html/pages/device/edit/snmp.inc.php b/html/pages/device/edit/snmp.inc.php index efe9105773..47ed24e49f 100644 --- a/html/pages/device/edit/snmp.inc.php +++ b/html/pages/device/edit/snmp.inc.php @@ -6,6 +6,7 @@ if ($_POST['editing']) { $community = mres($_POST['community']); $snmpver = mres($_POST['snmpver']); + $transport = mres($_POST['transport']); $port = mres($_POST['port']); $timeout = mres($_POST['timeout']); $retries = mres($_POST['retries']); @@ -22,7 +23,8 @@ if ($_POST['editing']) $update = array( 'community' => $community, 'snmpver' => $snmpver, - 'port' => $port + 'port' => $port, + 'transport' => $transport ); if ($_POST['timeout']) { $update['timeout'] = $timeout; } @@ -58,85 +60,84 @@ if ($updated && $update_message) print_error($update_message); } -echo("
IndexNameAdminOperDisableIgnoreIndexNameAdminOperDisableIgnore Description
"); - echo(""); + echo(""); echo(""); echo(""); - echo(""); + echo(""); echo(""); echo("".$port['ifAlias'] . "
-
- - +echo(" + - - - - - -
- -
- - - - - - +
+ +
+ +
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - "); + + +
+ +
+ +
+
+
+ +
+ seconds +
+
+
+ +
+ +
+
"); echo(' -
SNMP Version
- -
SNMPv1/v2c Configuration
SNMP Community
-
SNMPv3 Configuration
Auth Level
- + + +
+ +
+
+ +
+ -
Auth User Name
Auth Password
Auth Algorithm
- -
Crypto Password
Crypto Algorithm
- -
SNMP Connectivity
SNMP Transport
- + + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ +
+ -
SNMP Port
-
SNMP Timeout
  - (milli)seconds -
SNMP Retries
-
- - + -
'); +'); ?>