diff --git a/database-schema.sql b/database-schema.sql
index e6f3e1afbb..2e8a3ae420 100644
--- a/database-schema.sql
+++ b/database-schema.sql
@@ -928,7 +928,7 @@ CREATE TABLE IF NOT EXISTS `sensors` (
`poller_type` varchar(16) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'snmp',
`sensor_oid` varchar(64) CHARACTER SET latin1 NOT NULL,
`sensor_index` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
- `sensor_type` varchar(32) CHARACTER SET latin1 NOT NULL,
+ `sensor_type` varchar(255) CHARACTER SET latin1 NOT NULL,
`sensor_descr` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`sensor_divisor` int(11) NOT NULL DEFAULT '1',
`sensor_multiplier` int(11) NOT NULL DEFAULT '1',
diff --git a/database-update.sql b/database-update.sql
index 12352645d9..647a6952df 100644
--- a/database-update.sql
+++ b/database-update.sql
@@ -19,6 +19,5 @@ ALTER TABLE `bills` ADD `rate_average_in` int(11) NOT NULL;
ALTER TABLE `bills` ADD `rate_average_out` int(11) NOT NULL;
ALTER TABLE `bills` ADD `rate_average` int(11) NOT NULL;
ALTER TABLE `bills` ADD `bill_last_calc` datetime NOT NULL;
-
CREATE TABLE IF NOT EXISTS `bill_history` ( `id` int(11) NOT NULL AUTO_INCREMENT, `bill_id` int(11) NOT NULL, `bill_datefrom` datetime NOT NULL, `bill_dateto` datetime NOT NULL, `bill_type` text NOT NULL, `bill_allowed` int(11) NOT NULL, `bill_used` int(11) NOT NULL, `bill_overuse` int(11) NOT NULL, `bill_percent` decimal(5,2) NOT NULL, `rate_95th_in` int(11) NOT NULL, `rate_95th_out` int(11) NOT NULL, `rate_95th` int(11) NOT NULL, `dir_95th` varchar(3) NOT NULL, `rate_average` int(11) NOT NULL, `rate_average_in` int(11) NOT NULL, `rate_average_out` int(11) NOT NULL, `traf_in` int(11) NOT NULL, `traf_out` int(11) NOT NULL, `traf_total` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `bill_id` (`bill_id`)) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-
+ALTER TABLE `sensors` CHANGE `sensor_oid` `sensor_oid` VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL;
diff --git a/html/includes/print-event.inc.php b/html/includes/print-event.inc.php
index a8c362b1a2..fb76a8e858 100644
--- a/html/includes/print-event.inc.php
+++ b/html/includes/print-event.inc.php
@@ -15,7 +15,7 @@ echo('
' . $entry['datetime'] . '
');
-if (!isset($_GET['id']) && (!isset($overview) || $overview == 0)) {
+if (!isset($vars['device'])) {
$dev = device_by_id_cache($entry['host']);
echo("
" . generate_device_link($dev, shorthost($dev['hostname'])) . "
@@ -24,7 +24,8 @@ if (!isset($_GET['id']) && (!isset($overview) || $overview == 0)) {
if ($entry['type'] == "interface")
{
- $entry['link'] = "".generate_port_link(getifbyid($entry['reference']))."";
+ $this_if = ifLabel(getifbyid($entry['reference']));
+ $entry['link'] = "".generate_port_link($this_if, makeshortif(strtolower($this_if['label'])))."";
} else {
$entry['link'] = "System";
}
@@ -34,4 +35,4 @@ echo(" | ".$entry['link']." | ");
echo("".htmlspecialchars($entry['message']) . " |
");
-?>
\ No newline at end of file
+?>
diff --git a/html/includes/print-syslog.inc.php b/html/includes/print-syslog.inc.php
index 84ae434857..e48a1ec898 100644
--- a/html/includes/print-syslog.inc.php
+++ b/html/includes/print-syslog.inc.php
@@ -10,14 +10,13 @@ if (device_permitted($entry['device_id']))
$entry['hostname'] = shorthost($entry['hostname'], 20);
- if ($_GET['page'] != "device")
+ if ($vars['page'] != "device")
{
echo("" . $entry['date'] . " | ");
echo("".generate_device_link($entry)." | ");
echo("" . $entry['program'] . " : " . htmlspecialchars($entry['msg']) . " | ");
} else {
echo("" . $entry['date'] . " " . $entry['program'] . " " . htmlspecialchars($entry['msg']) . " | ");
-
}
echo("");
diff --git a/html/pages/device.inc.php b/html/pages/device.inc.php
index 071ea40ffe..e6292a18f2 100644
--- a/html/pages/device.inc.php
+++ b/html/pages/device.inc.php
@@ -222,22 +222,13 @@ if (device_permitted($vars['device']) || $check_device == $vars['device'])
if (device_permitted($device['device_id']))
{
- echo('
-
-
Events
+ echo('
+
+
Logs
');
}
- if ($config['enable_syslog'])
- {
- echo('
-
-
Syslog
-
- ');
- }
-
if ($_SESSION['userlevel'] >= "7")
{
if (!is_array($config['rancid_configs'])) { $config['rancid_configs'] = array($config['rancid_configs']); }
diff --git a/html/pages/device/events.inc.php b/html/pages/device/events.inc.php
deleted file mode 100644
index 486f9a71fa..0000000000
--- a/html/pages/device/events.inc.php
+++ /dev/null
@@ -1,15 +0,0 @@
-');
-
-foreach ($entries as $entry)
-{
- include("includes/print-event.inc.php");
-}
-
-echo('');
-
-$pagetitle[] = "Events";
-
-?>
diff --git a/html/pages/device/logs/eventlog.inc.php b/html/pages/device/logs/eventlog.inc.php
new file mode 100644
index 0000000000..29c2825846
--- /dev/null
+++ b/html/pages/device/logs/eventlog.inc.php
@@ -0,0 +1,41 @@
+
+
+
+
+');
+
+foreach ($entries as $entry)
+{
+ include("includes/print-event.inc.php");
+}
+
+echo('');
+
+$pagetitle[] = "Events";
+
+?>
diff --git a/html/pages/device/syslog.inc.php b/html/pages/device/logs/syslog.inc.php
similarity index 97%
rename from html/pages/device/syslog.inc.php
rename to html/pages/device/logs/syslog.inc.php
index ef823130e8..534c19a4fd 100644
--- a/html/pages/device/syslog.inc.php
+++ b/html/pages/device/logs/syslog.inc.php
@@ -1,8 +1,5 @@
-
+