function Nagios(options, log) {
  var parsed = url.parse(options.url);

  // Inject auth into the URL
  delete parsed.host;
  parsed['auth'] = sprintf('%s:%s', options.username, options.password);

  this._url = url.format(parsed);
  this._options = options;
  this.log = log || logmagic.local('nagios');
}
function Nagios(options, log) {
  var parsed = url.parse(options.url);

  
  delete parsed.host;
  parsed['auth'] = sprintf('%s:%s', options.username, options.password);

  this._url = url.format(parsed);
  this._options = options;
  this.log = log || logmagic.local('nagios');
}
function Nagios ( options , log ) { var parsed = url . parse ( options . url ) ; // Inject auth into the URL delete parsed . host ; parsed [ 'auth' ] = sprintf ( '%s:%s' , options . username , options . password ) ; this . _url = url . format ( parsed ) ; this . _options = options ; this . log = log || logmagic . local ( 'nagios' ) ; }
Nagios Client.
@constructor
@param {Object} options The options.
Nagios Client .