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 ( {
|
||||
halign: Gtk.Align.FILL,
|
||||
margin: 18,
|
||||
// margin: 18,
|
||||
column_spacing: 12,
|
||||
row_spacing: 12,
|
||||
visible: true,
|
||||
|
@ -85,7 +85,7 @@ var GenericServer = class {
|
||||
prepareHttp ( )
|
||||
{
|
||||
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.ssl_strict = this.strict_ssl;
|
||||
this._httpSession.user_agent = Me.metadata.uuid;
|
||||
@ -113,7 +113,7 @@ var GenericServer = class {
|
||||
// this.monitoLog ( message.status_code );
|
||||
// this.monitoLog ( message.response_body );
|
||||
message.response_headers.foreach ((name, val) => {
|
||||
this.monitoLog (name, val);
|
||||
// this.monitoLog (name, val);
|
||||
});
|
||||
// this.monitoLog ( message.response_body.data );
|
||||
|
||||
@ -145,7 +145,7 @@ var GenericServer = class {
|
||||
{
|
||||
// if error, grep for class='errorMessage'
|
||||
// else grep for class='successBox'
|
||||
this.monitoLog ( 'Cmd output ' + _data );
|
||||
// this.monitoLog ( 'Cmd output ' + _data );
|
||||
}
|
||||
}
|
||||
catch ( e )
|
||||
|
@ -85,7 +85,7 @@ var Icinga2API = class extends GenericServer {
|
||||
|
||||
handlePollMessage ( _httpSession, message )
|
||||
{
|
||||
this.monitoLog ( 'handlePollMessage' );
|
||||
// this.monitoLog ( 'handlePollMessage' );
|
||||
|
||||
let _data = super.handleMessage ( _httpSession, message );
|
||||
try
|
||||
@ -99,7 +99,7 @@ var Icinga2API = class extends GenericServer {
|
||||
|
||||
for ( var entry of json.results )
|
||||
{
|
||||
this.monitoLog ( JSON.stringify(entry) );
|
||||
// this.monitoLog ( JSON.stringify(entry) );
|
||||
var _attrs = entry.attrs;
|
||||
_attrs [ 'real_host_name' ] = entry.attrs.host_name.repeat ( 1 );
|
||||
_attrs [ 'status' ] = _statuses [ entry.attrs.state ];
|
||||
|
Loading…
Reference in New Issue
Block a user