whole_func_string: 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');
  }
func_code_string: 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');
  }
func_documentation_string: Nagios Client.
  @constructor
  @param {Object} options The options.