From 7e458d1f5816f53ee98b82f8bfabb0c0b4b427c0 Mon Sep 17 00:00:00 2001 From: laf Date: Thu, 2 Oct 2014 23:14:45 +0100 Subject: [PATCH] Updated addhost page to only show relevant snmp v1/v2c/v3 options --- html/pages/addhost.inc.php | 184 ++++++++++++++++++++----------------- 1 file changed, 101 insertions(+), 83 deletions(-) diff --git a/html/pages/addhost.inc.php b/html/pages/addhost.inc.php index 2e3202b8e2..1df7651bb8 100644 --- a/html/pages/addhost.inc.php +++ b/html/pages/addhost.inc.php @@ -7,10 +7,12 @@ if ($_SESSION['userlevel'] < 10) exit; } -echo("

Add Device

"); - if ($_POST['hostname']) { + echo('
+
+
+
'); if ($_SESSION['userlevel'] > '5') { // Settings common to SNMPv2 & v3 @@ -56,36 +58,43 @@ if ($_POST['hostname']) } else { print_error("You don't have the necessary privileges to add hosts."); } + echo('
+
+
+
'); } $pagetitle[] = "Add host"; ?> +
+
+
+
+

Add Device

Devices will be checked for Ping and SNMP reachability before being probed. Only devices with recognised OSes will be added.
- -
+ +
-
-
- -
-
-
+
-
+
-
+
+
+
+
+ +
+
+
+ +
+ +
-
-
- +
+
+
+ +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
-
- -
- -
-
-
-
-
-
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
-
- -
- -
-
-
- -
- -
-
-
-
-
- -
- -
-
-
-
-
- -
- -
-
-
-
-
+
+
+
+
+