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.712 2011/01/27 11:57:50 marty Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.713 2011/02/18 09:58:12 wellhard 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:3501:    "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."),    }),    }) +  }), +  ({ +  UNDEFINED, +  SNMP.Counter(lambda() +  { return datacache->hits + datacache->misses; }, +  "protCacheLookups", +  "Number of protocol cache lookups."), +  SNMP.Counter(lambda() +  { return datacache->hits; }, +  "protCacheHits", +  "Number of protocol cache hits."), +  SNMP.Counter(lambda() +  { return datacache->misses; }, +  "protCacheMisses", +  "Number of protocol cache misses."), +  SNMP.Gauge(lambda() +  { return sizeof(datacache->cache); }, +  "protCacheEntries", +  "Number of protocol cache entries."), +  SNMP.Gauge(lambda() +  { return datacache->max_size/1024; }, +  "protCacheMaxSize", +  "Maximum size of protocol cache in KiB."), +  SNMP.Gauge(lambda() +  { return datacache->current_size/1024; }, +  "protCacheCurrSize", +  "Current size of protocol cache in KiB."),    })    }));    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;