Branch: Tag:

2007-09-12

2007-09-12 14:12:56 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added cvs_version to the default set of SNMP module information.

Rev: server/base_server/configuration.pike:1.639

5:   // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.638 2007/09/10 11:59:58 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.639 2007/09/12 14:12:56 grubba Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
526:    return SNMP.SimpleMIB(oid,    ({    UNDEFINED, -  SNMP.String(otomod[me]), -  SNMP.Integer(moduleinfo->type), +  SNMP.String(otomod[me], +  "moduleIdentifier"), +  SNMP.Integer(moduleinfo->type, +  "moduleType"), +  SNMP.String(me->cvs_version || "", +  "moduleVersion"),    }));   }   
5006:    UNDEFINED,    query_name,    comment, -  lambda() { return SNMP.Counter64(sent); }, -  lambda() { return SNMP.Counter64(received); }, -  lambda() { return SNMP.Counter64(hsent); }, -  lambda() { return SNMP.Counter64(requests); }, +  SNMP.Counter64(lambda() { return sent; }), +  SNMP.Counter64(lambda() { return received; }), +  SNMP.Counter64(lambda() { return hsent; }), +  SNMP.Counter64(lambda() { return requests; }),    UNDEFINED, // NOTE: Reserved for modules!    })));    mib_version++;