diff --git a/cron.sh b/cron.sh index 4ccf89bef..799326543 100755 --- a/cron.sh +++ b/cron.sh @@ -2,8 +2,8 @@ #./discovery.php --forced >> /var/log/observer.log -./poll-device.php --odd >> /var/log/observer.log & -./poll-device.php --even >> /var/log/observer.log & +./poll-device.php --all >> /var/log/observer.log & +#./poll-device.php --even >> /var/log/observer.log & #./poll-device.php --odd3 >> /var/log/observer.log & #./poll-device.php --even3 >> /var/log/observer.log & diff --git a/html/includes/authenticate.inc b/html/includes/authenticate.inc index ba0d32e40..334ae3f13 100644 --- a/html/includes/authenticate.inc +++ b/html/includes/authenticate.inc @@ -1,40 +1,52 @@ diff --git a/html/index.php b/html/index.php index bd4fac583..232ed9d46 100755 --- a/html/index.php +++ b/html/index.php @@ -103,11 +103,11 @@ function popUp(URL) { + ");} ?>
-
diff --git a/html/pages/device/health/cpm.inc.php b/html/pages/device/health/cpm.inc.php index 8298000a1..8c993c751 100644 --- a/html/pages/device/health/cpm.inc.php +++ b/html/pages/device/health/cpm.inc.php @@ -20,17 +20,17 @@ echo(""); - $daily_graph = "graph.php?id=" . $proc['cpmCPU_id'] . "&type=cempMemPool&from=$day&to=$now&width=211&height=100"; - $daily_url = "graph.php?id=" . $proc['cpmCPU_id'] . "&type=cempMemPool&from=$day&to=$now&width=400&height=150"; + $daily_graph = "graph.php?id=" . $proc['cpmCPU_id'] . "&type=cpmCPU&from=$day&to=$now&width=211&height=100"; + $daily_url = "graph.php?id=" . $proc['cpmCPU_id'] . "&type=cpmCPU&from=$day&to=$now&width=400&height=150"; - $weekly_graph = "graph.php?id=" . $proc['cpmCPU_id'] . "&type=cempMemPool&from=$week&to=$now&width=211&height=100"; - $weekly_url = "graph.php?id=" . $proc['cpmCPU_id'] . "&type=cempMemPool&from=$week&to=$now&width=400&height=150"; + $weekly_graph = "graph.php?id=" . $proc['cpmCPU_id'] . "&type=cpmCPU&from=$week&to=$now&width=211&height=100"; + $weekly_url = "graph.php?id=" . $proc['cpmCPU_id'] . "&type=cpmCPU&from=$week&to=$now&width=400&height=150"; - $monthly_graph = "graph.php?id=" . $proc['cpmCPU_id'] . "&type=cempMemPool&from=$month&to=$now&width=211&height=100"; - $monthly_url = "graph.php?id=" . $proc['cpmCPU_id'] . "&type=cempMemPool&from=$month&to=$now&width=400&height=150"; + $monthly_graph = "graph.php?id=" . $proc['cpmCPU_id'] . "&type=cpmCPU&from=$month&to=$now&width=211&height=100"; + $monthly_url = "graph.php?id=" . $proc['cpmCPU_id'] . "&type=cpmCPU&from=$month&to=$now&width=400&height=150"; - $yearly_graph = "graph.php?id=" . $proc['cpmCPU_id'] . "&type=cempMemPool&from=$year&to=$now&width=211&height=100"; - $yearly_url = "graph.php?id=" . $proc['cpmCPU_id'] . "&type=cempMemPool&from=$year&to=$now&width=400&height=150"; + $yearly_graph = "graph.php?id=" . $proc['cpmCPU_id'] . "&type=cpmCPU&from=$year&to=$now&width=211&height=100"; + $yearly_url = "graph.php?id=" . $proc['cpmCPU_id'] . "&type=cpmCPU&from=$year&to=$now&width=400&height=150"; echo("', LEFT);\" onmouseout=\"return nd();\"> "); diff --git a/html/pages/device/interface.inc.php b/html/pages/device/interface.inc.php index 7f7522b9f..b61fb18cd 100644 --- a/html/pages/device/interface.inc.php +++ b/html/pages/device/interface.inc.php @@ -3,6 +3,8 @@ $interface_query = mysql_query("select * from interfaces WHERE interface_id = '".$_GET['opta']."'"); $interface = mysql_fetch_array($interface_query); + $port_details = 1; + $hostname = $device['hostname']; $hostid = $device['interface_id']; $ifname = $interface['ifDescr']; @@ -22,9 +24,6 @@ $interface = mysql_fetch_array($interface_query); $inf = fixifName($ifname); $bg="#ffffff"; -# echo(""); -# include("includes/device-header.inc"); -# echo("
"); $show_all = 1; diff --git a/html/pages/logon.inc b/html/pages/logon.inc index f197cf9d3..ed7609bd1 100644 --- a/html/pages/logon.inc +++ b/html/pages/logon.inc @@ -20,6 +20,9 @@ + + + Remember Me "); diff --git a/includes/common.php b/includes/common.php index 40fae3b69..ed51635a5 100644 --- a/includes/common.php +++ b/includes/common.php @@ -2,6 +2,10 @@ ## Common Functions +function mres($string) { // short function wrapper because the real one is stupidly long and ugly. aestetics. + return mysql_real_escape_string($string); +} + function getifhost($id) { $sql = mysql_query("SELECT `device_id` from `interfaces` WHERE `interface_id` = '$id'"); $result = @mysql_result($sql, 0); diff --git a/includes/functions.php b/includes/functions.php index be87a847c..4f59b0cb3 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -55,10 +55,6 @@ function only_alphanumeric( $string ) } -function mres($string) { // short function wrapper because the real one is stupidly long and ugly. aestetics. - return mysql_real_escape_string($string); -} - function validate_hostip($host) { }