Skip to content

Commit

Permalink
* [FIX] Backend level was not set in JS code when adding new backends…
Browse files Browse the repository at this point in the history
…. Related #13 #17

* [MOD] Moved highlighting events to CSS.
  • Loading branch information
nuxsmin authored and nuxsmin committed Jun 16, 2016
1 parent 8844ef5 commit e4a81dd
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Las funcionalidades de **sysMonDash** son las siguientes:
* Filtrado de servicios para NO mostrar en vista principal
* Selección de elementos críticos para mostrar siempre
* Detección de paradas programadas que se hayan establecido, así como su visualización en la vista principal
* Enlace con backends remotos mediante API JSON

---

Expand All @@ -41,6 +42,7 @@ The **sysMonDash** key features are:
* Services filtering to NOT be shown in the main view
* Critical items selection to be always shown
* Scheduled downtimes detection and showing them in the main view
* Link to remote backends through JSON API

---

Expand Down
3 changes: 2 additions & 1 deletion ajax/checkConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*
*/

use Exts\Zabbix\ZabbixApiLoader;
use SMD\Core\Init;
use SMD\Http\Request;
use SMD\Http\Response;
Expand Down Expand Up @@ -54,7 +55,7 @@
$json = Util::getDataFromUrl($url);
break;
case 'zabbixBackend':
$ZabbixLoader = new \Exts\Zabbix\ZabbixApiLoader();
$ZabbixLoader = new ZabbixApiLoader();
$Zabbix = $ZabbixLoader->getAPI($data->version);
$Zabbix->setApiUrl($data->url);
$Zabbix->userLogin(array('user' => $data->user, 'password' => $data->pass));
Expand Down
4 changes: 3 additions & 1 deletion css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}

body {
font-family: Arial, helvetica, verdana, tahoma, "sans serif";
font-family: Arial, helvetica, verdana, tahoma, "sans serif", serif;
line-height: 1.3em;
overflow-x: hidden;
font-size: 1.2em;
Expand Down Expand Up @@ -33,6 +33,8 @@ tr.item-data > td, thead > th {

.new {
font-weight: bold;
background-color: #ffff00;
color: #333333;
}

.up a, .new a {
Expand Down
2 changes: 1 addition & 1 deletion css/styles.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inc/SMD/Util/Util.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public static function checkRefreshSession()
*/
public static function getVersion($retBuild = false)
{
$build = 2016061502;
$build = 2016061601;
$version = array(1, 0);

if ($retBuild) {
Expand Down
9 changes: 1 addition & 8 deletions js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ function SMD() {
newItemsCount = newItems.length;
playBeep();
}

newItems.highlight({bgcolor_on: self.hex2rgb('#ffff00'), fgcolor_on: self.hex2rgb('#333333')});
},
error: function (xhr, textStatus, errorThrown) {
placeHolder.html("<div id=\"nomessages\" class=\"error\">" + Config.getLang(1) + "<p>" + xhr.status + " " + xhr.statusText + "</p></div>");
Expand Down Expand Up @@ -286,6 +284,7 @@ function SMD() {
$html.find('[name=\'backend[zabbix][version]\']')[0].name = "backend[zabbix][" + len + "][version]";
$html.find('[name=\'backend[zabbix][user]\']')[0].name = "backend[zabbix][" + len + "][user]";
$html.find('[name=\'backend[zabbix][pass]\']')[0].name = "backend[zabbix][" + len + "][pass]";
$html.find('[name=\'backend[zabbix][level]\']')[0].name = "backend[zabbix][" + len + "][level]";
$html.find('[name=\'backend[zabbix][active]\']')[0].name = "backend[zabbix][" + len + "][active]";

return $html.html();
Expand Down Expand Up @@ -509,12 +508,6 @@ function SMD() {
})
};

/**
* Establecer los eventos para la vista de eventos
*/
this.setDashboardHooks = function () {
};

/**
* Reproducir sonido
*/
Expand Down
2 changes: 1 addition & 1 deletion js/functions.min.js

Large diffs are not rendered by default.

0 comments on commit e4a81dd

Please sign in to comment.