Update
This commit is contained in:
parent
09d7b3386b
commit
a42ce2283d
2
prefs.js
2
prefs.js
|
@ -377,7 +377,7 @@ function createColumnsPrefTab ( noteBook, type, isActive )
|
||||||
{
|
{
|
||||||
let grid = new Gtk.Grid ( {
|
let grid = new Gtk.Grid ( {
|
||||||
halign: Gtk.Align.FILL,
|
halign: Gtk.Align.FILL,
|
||||||
margin: 18,
|
// margin: 18,
|
||||||
column_spacing: 12,
|
column_spacing: 12,
|
||||||
row_spacing: 12,
|
row_spacing: 12,
|
||||||
visible: true,
|
visible: true,
|
||||||
|
|
|
@ -85,7 +85,7 @@ var GenericServer = class {
|
||||||
prepareHttp ( )
|
prepareHttp ( )
|
||||||
{
|
{
|
||||||
if ( this._httpSession == null ) {
|
if ( this._httpSession == null ) {
|
||||||
this.monitoLog ( 'Preparing new HTTP with strict SSL ' + this.strict_ssl );
|
// this.monitoLog ( 'Preparing new HTTP with strict SSL ' + this.strict_ssl );
|
||||||
this._httpSession = new Soup.Session();
|
this._httpSession = new Soup.Session();
|
||||||
this._httpSession.ssl_strict = this.strict_ssl;
|
this._httpSession.ssl_strict = this.strict_ssl;
|
||||||
this._httpSession.user_agent = Me.metadata.uuid;
|
this._httpSession.user_agent = Me.metadata.uuid;
|
||||||
|
@ -113,7 +113,7 @@ var GenericServer = class {
|
||||||
// this.monitoLog ( message.status_code );
|
// this.monitoLog ( message.status_code );
|
||||||
// this.monitoLog ( message.response_body );
|
// this.monitoLog ( message.response_body );
|
||||||
message.response_headers.foreach ((name, val) => {
|
message.response_headers.foreach ((name, val) => {
|
||||||
this.monitoLog (name, val);
|
// this.monitoLog (name, val);
|
||||||
});
|
});
|
||||||
// this.monitoLog ( message.response_body.data );
|
// this.monitoLog ( message.response_body.data );
|
||||||
|
|
||||||
|
@ -145,7 +145,7 @@ var GenericServer = class {
|
||||||
{
|
{
|
||||||
// if error, grep for class='errorMessage'
|
// if error, grep for class='errorMessage'
|
||||||
// else grep for class='successBox'
|
// else grep for class='successBox'
|
||||||
this.monitoLog ( 'Cmd output ' + _data );
|
// this.monitoLog ( 'Cmd output ' + _data );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch ( e )
|
catch ( e )
|
||||||
|
|
|
@ -85,7 +85,7 @@ var Icinga2API = class extends GenericServer {
|
||||||
|
|
||||||
handlePollMessage ( _httpSession, message )
|
handlePollMessage ( _httpSession, message )
|
||||||
{
|
{
|
||||||
this.monitoLog ( 'handlePollMessage' );
|
// this.monitoLog ( 'handlePollMessage' );
|
||||||
|
|
||||||
let _data = super.handleMessage ( _httpSession, message );
|
let _data = super.handleMessage ( _httpSession, message );
|
||||||
try
|
try
|
||||||
|
@ -99,7 +99,7 @@ var Icinga2API = class extends GenericServer {
|
||||||
|
|
||||||
for ( var entry of json.results )
|
for ( var entry of json.results )
|
||||||
{
|
{
|
||||||
this.monitoLog ( JSON.stringify(entry) );
|
// this.monitoLog ( JSON.stringify(entry) );
|
||||||
var _attrs = entry.attrs;
|
var _attrs = entry.attrs;
|
||||||
_attrs [ 'real_host_name' ] = entry.attrs.host_name.repeat ( 1 );
|
_attrs [ 'real_host_name' ] = entry.attrs.host_name.repeat ( 1 );
|
||||||
_attrs [ 'status' ] = _statuses [ entry.attrs.state ];
|
_attrs [ 'status' ] = _statuses [ entry.attrs.state ];
|
||||||
|
|
Loading…
Reference in New Issue