diff --git a/discovery.php b/discovery.php index 725a78634..57fb345de 100755 --- a/discovery.php +++ b/discovery.php @@ -148,6 +148,16 @@ while ($device = mysql_fetch_array($device_query)) { if ($device['type'] == "unknown") { $device['type'] = 'network'; } } + + if($device['os'] == "allied") + { + if ($device['type'] == "unknown") { $device['type'] = 'network'; } + } + + if($device['os'] == "allied") + { + if ($device['type'] == "unknown") { $device['type'] = 'network'; } + } $update_query = "UPDATE `devices` SET "; $update_query .= " `last_discovered` = NOW(), `type` = '" . $device['type'] . "'"; diff --git a/html/images/os/allied.png b/html/images/os/allied.png new file mode 100644 index 000000000..ef13501d3 Binary files /dev/null and b/html/images/os/allied.png differ diff --git a/html/pages/device/graphs/os-allied.inc.php b/html/pages/device/graphs/os-allied.inc.php new file mode 100644 index 000000000..6628668a8 --- /dev/null +++ b/html/pages/device/graphs/os-allied.inc.php @@ -0,0 +1,6 @@ + diff --git a/html/pages/vrfs.php b/html/pages/vrfs.php index 0d719a8cd..9ef685200 100644 --- a/html/pages/vrfs.php +++ b/html/pages/vrfs.php @@ -5,7 +5,7 @@ print_optionbar_start(); echo(" Basic | Graphs : Bits | -Packets | +Packets | NU Packets | Errors "); @@ -46,7 +46,7 @@ print_optionbar_end(); $port['from'] = $day; $port['to'] = $now; $port['bg'] = "#".$bg; - $port['graph_type'] = $_GET['opta']; + $port['graph_type'] = "port_".$_GET['opta']; echo("
".makeshortif($port['ifDescr'])."
"); diff --git a/includes/osdiscovery/discover-allied.php b/includes/osdiscovery/discover-allied.php new file mode 100755 index 000000000..6421e9206 --- /dev/null +++ b/includes/osdiscovery/discover-allied.php @@ -0,0 +1,10 @@ + diff --git a/includes/polling/device-allied.inc.php b/includes/polling/device-allied.inc.php new file mode 100644 index 000000000..ead635ab5 --- /dev/null +++ b/includes/polling/device-allied.inc.php @@ -0,0 +1,15 @@ + diff --git a/includes/static-config.php b/includes/static-config.php index d66ab3d29..a57327344 100644 --- a/includes/static-config.php +++ b/includes/static-config.php @@ -28,7 +28,6 @@ $os_groups['solaris'] = "unix"; $os_groups['adva'] = "unix"; $os_groups['opensolaris'] = "unix"; - $os_groups['iosxe'] = "ios"; $os_groups['iosxr'] = "ios"; $os_groups['ios'] = "ios"; @@ -62,6 +61,7 @@ $os_text['procurve'] = "HP ProCurve"; $os_text['speedtouch'] = "Thomson Speedtouch"; $os_text['dell-laser'] = "Dell Laser Printer"; $os_text['adva'] = "Adva"; +$os_text['allied'] = "AlliedWare"; if(!$config['graph_colours']['greens']) { $config['graph_colours']['greens'] = array('B6D14B','91B13C','6D912D','48721E','24520F','003300'); diff --git a/poll-device.php b/poll-device.php index 2a167c733..4397f5c11 100755 --- a/poll-device.php +++ b/poll-device.php @@ -222,8 +222,9 @@ while ($device = mysql_fetch_array($device_query)) { $poll_update_query = "UPDATE `devices` SET "; $poll_update_query .= $poll_update; $poll_update_query .= " WHERE `device_id` = '" . $device['device_id'] . "'"; - echo("Updating " . $device['hostname'] . " - $poll_update_query \n"); + if($debug) {echo("Updating " . $device['hostname'] . " - $poll_update_query \n");} $poll_update_result = mysql_query($poll_update_query); + if(mysql_affected_rows() == "1") { echo("UPDATED!"); } else { echo("NOT UPDATED!"); } } else { echo("No Changes to " . $device['hostname'] . "\n"); }