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 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.480 2001/09/03 16:38:42 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.481 2001/09/04 05:42:33 hop 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)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:3532: Inside #if defined(SNMP_AGENT)
   defvar("snmp_process", 0,    "SNMP: Enabled",TYPE_FLAG,    "If set, per-server objects will be added to the SNMP agent database.",    0, snmp_global_disabled);    defvar("snmp_community", "public:ro",    "SNMP: Community string", TYPE_STRING,    "The community string and access level for manipulation on server "    " specific objects.",    0, snmp_disabled);    defvar("snmp_traphosts", ({ }), -  "SNMP: Trap hosts", TYPE_STRING_LIST, -  "The remote nodes, where should be sent traps.", 0, snmp_disabled); +  "SNMP: Trap host URLs", TYPE_STRING_LIST, +  "The remote nodes, where should be sent traps." +  "<p>\n" +  "The URL syntax is: snmptrap://community@hostname:portnumber" +  "</p><br/>", +  0, snmp_disabled);       if (query("snmp_process")) {    if(objectp(roxen()->snmpagent)) {    int servid;    servid = roxen()->snmpagent->add_virtserv(get_config_id());    // todo: make invisible varibale and set it to this value for future reference    // (support for per-reload persistence of server index?)    } else    report_error("SNMPagent: something gets wrong! The main agent is disabled!\n"); }   #endif