Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2009, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.696 2010/05/06 22:41:25 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.697 2010/05/19 06:56:41 noring Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // Tell Pike.count_memory this is global.   constant pike_cycle_depth = 0;
Roxen.git/server/base_server/configuration.pike:3359:    SNMP.String(comment, "siteComment"),    SNMP.Counter64(lambda() { return sent; },    "sent"),    SNMP.Counter64(lambda() { return received; },    "received"),    SNMP.Counter64(lambda() { return hsent; },    "sentHeaders"),    SNMP.Counter64(lambda() { return requests; },    "numRequests"),    UNDEFINED, // NOTE: Reserved for modules! +  ({ +  UNDEFINED, +  ({ +  UNDEFINED, +  ({ +  UNDEFINED, +  SNMP.Counter(lambda() +  { return request_acc_time/10000; }, +  "requestTime", +  "Accumulated total request time " +  "in centiseconds."), +  }), +  ({ +  UNDEFINED, +  SNMP.Counter(lambda() { return requests; }, +  "requestNumRuns", +  "Total number of request runs."), +  SNMP.Counter(lambda() { return request_num_runs_001s; }, +  "requestNumRuns001s", +  "Number of request runs longer than 0.01 seconds."), +  SNMP.Counter(lambda() { return request_num_runs_005s; }, +  "requestNumRuns005s", +  "Number of request runs longer than 0.05 seconds."), +  SNMP.Counter(lambda() { return request_num_runs_015s; }, +  "requestNumRuns015s", +  "Number of request runs longer than 0.15 seconds."), +  SNMP.Counter(lambda() { return request_num_runs_05s; }, +  "requestNumRuns05s", +  "Number of request runs longer than 0.5 seconds."), +  SNMP.Counter(lambda() { return request_num_runs_1s; }, +  "requestNumRuns1s", +  "Number of request runs longer than 1 second."), +  SNMP.Counter(lambda() { return request_num_runs_5s; }, +  "requestNumRuns5s", +  "Number of request runs longer than 5 seconds."), +  SNMP.Counter(lambda() { return request_num_runs_15s; }, +  "requestNumRuns15s", +  "Number of request runs longer than 15 seconds."), +  }), +  }), +  ({ +  UNDEFINED, +  ({ +  UNDEFINED, +  SNMP.Counter(lambda() +  { return handle_acc_time/10000; }, +  "handleTime", +  "Accumulated total handle time " +  "in centiseconds."), +  }), +  ({ +  UNDEFINED, +  SNMP.Counter(lambda() { return requests; }, +  "handleNumRuns", +  "Total number of handle runs."), +  SNMP.Counter(lambda() { return handle_num_runs_001s; }, +  "handleNumRuns001s", +  "Number of handle runs longer than 0.01 seconds."), +  SNMP.Counter(lambda() { return handle_num_runs_005s; }, +  "handleNumRuns005s", +  "Number of handle runs longer than 0.05 seconds."), +  SNMP.Counter(lambda() { return handle_num_runs_015s; }, +  "handleNumRuns015s", +  "Number of handle runs longer than 0.15 seconds."), +  SNMP.Counter(lambda() { return handle_num_runs_05s; }, +  "handleNumRuns05s", +  "Number of handle runs longer than 0.5 seconds."), +  SNMP.Counter(lambda() { return handle_num_runs_1s; }, +  "handleNumRuns1s", +  "Number of handle runs longer than 1 second."), +  SNMP.Counter(lambda() { return handle_num_runs_5s; }, +  "handleNumRuns5s", +  "Number of handle runs longer than 5 seconds."), +  SNMP.Counter(lambda() { return handle_num_runs_15s; }, +  "handleNumRuns15s", +  "Number of handle runs longer than 15 seconds."), +  }), +  }), +  ({ +  UNDEFINED, +  ({ +  UNDEFINED, +  SNMP.Counter(lambda() +  { return queue_acc_time/10000; }, +  "queueTime", +  "Accumulated total queue time " +  "in centiseconds."), +  }), +  ({ +  UNDEFINED, +  SNMP.Counter(lambda() { return requests; }, +  "queueNumRuns", +  "Total number of queue runs."), +  SNMP.Counter(lambda() { return queue_num_runs_001s; }, +  "queueNumRuns001s", +  "Number of queue runs longer than 0.01 seconds."), +  SNMP.Counter(lambda() { return queue_num_runs_005s; }, +  "queueNumRuns005s", +  "Number of queue runs longer than 0.05 seconds."), +  SNMP.Counter(lambda() { return queue_num_runs_015s; }, +  "queueNumRuns015s", +  "Number of queue runs longer than 0.15 seconds."), +  SNMP.Counter(lambda() { return queue_num_runs_05s; }, +  "queueNumRuns05s", +  "Number of queue runs longer than 0.5 seconds."), +  SNMP.Counter(lambda() { return queue_num_runs_1s; }, +  "queueNumRuns1s", +  "Number of queue runs longer than 1 second."), +  SNMP.Counter(lambda() { return queue_num_runs_5s; }, +  "queueNumRuns5s", +  "Number of queue runs longer than 5 seconds."), +  SNMP.Counter(lambda() { return queue_num_runs_15s; }, +  "queueNumRuns15s", +  "Number of queue runs longer than 15 seconds."), +  }), +  }) +  })    }));    SNMP.set_owner(mib, this_object());    prot->mib->merge(mib);    }    }       if (retrieve ("EnabledModules", this)["config_filesystem#0"])    return 1; // Signal that this is the admin UI config.    return 0;   }