Roxen.git / server / base_server / snmpagent.pike

version» Context lines:

Roxen.git/server/base_server/snmpagent.pike:1:   /* -  * $Id: snmpagent.pike,v 1.21 2002/02/12 16:52:33 hop Exp $ +  * $Id: snmpagent.pike,v 1.22 2002/07/03 12:38:48 nilsson Exp $    *    * The Roxen SNMP agent    * Copyright © 2001, Honza Petrous, hop@unibase.cz    *    * Author: Honza Petrous    * January 2001         RFC 1213 base MIB    system.* (all done)
Roxen.git/server/base_server/snmpagent.pike:502:    } else    if(vsdb[vsid])    SNMPAGENT_MSG(sprintf("server %O(#%d) hasn't any traphosts.",    vsdb[vsid] && vsdb[vsid]->name, vsid));    }       //! Adds virtual server to the DB of managed objects    int add_virtserv(int vsid) {       if(zero_type(vsdb[vsid])) { -  report_debug(sprintf("SNMPagent: added server %O(#%d)\n", -  roxen->configurations[vsid]->name, vsid)); +  report_debug("SNMPagent: added server %O(#%d)\n", +  roxen->configurations[vsid]->name, vsid);    vsdb += ([vsid: roxen->configurations[vsid]]);    }       // some tabulars handlers ...          return(1);    }       //! Returns name of the virtual server
Roxen.git/server/base_server/snmpagent.pike:560:    if(zero_type(vsdb[vsid]))    return -1; // bad index number    return (roxen->configurations[vsid]->requests);    }          //! Deletes virtual server's specific objects from DB    int del_virtserv(int vsid) {       if(!zero_type(vsdb[vsid])) { -  report_debug(sprintf("SNMPagent: deleted server %O(#%d)\n", -  roxen->configurations[vsid]->name, vsid)); +  report_debug("SNMPagent: deleted server %O(#%d)\n", +  roxen->configurations[vsid]->name, vsid);    vsdb -= ([ vsid: 0 ]);    }       return(1);    }      } // end of SNMPagent object      //! Removes first four octets from OID string, as internal table works   //! on such stripped OIDs.
Roxen.git/server/base_server/snmpagent.pike:771:       //! External function for MIB object returning nothing    array get_null() { return OBJ_COUNT(0); }      } // SubMIBManager      // base external feeders      //! External function for MIB object 'system.sysDescr'   array get_description() { -  return OBJ_STR("Roxen Webserver SNMP agent v"+("$Revision: 1.21 $"/" ")[1]+" (devel. rel.)"); +  return OBJ_STR("Roxen Webserver SNMP agent v"+("$Revision: 1.22 $"/" ")[1]+" (devel. rel.)");   }      //! External function for MIB object 'system.sysOID'   array get_sysoid() {    return OBJ_OID(RISMIB_BASE_WEBSERVER);   }      //! External function for MIB object 'system.sysUpTime'   array get_sysuptime() {    return OBJ_TICK((time(1) - roxen->start_time)*100);