Branch: Tag:

2001-09-13

2001-09-13 13:15:19 by Honza Petrous <hop@unibase.cz>

Fixed some inconsistence in handling start/stop traps.
Synchronized OID numbering with recent MIB db changes.

Rev: server/base_server/configuration.pike:1.488
Rev: server/base_server/roxen.pike:1.739
Rev: server/base_server/snmpagent.pike:1.18

5:   // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.487 2001/09/11 14:30:46 hop Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.488 2001/09/13 13:15:18 hop Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
368:   //! handler threads to lessen the impact if a module hangs. Doesn't   //! wait for all modules to finish if @[asynch] is nonzero.   { +  + #ifdef SNMP_AGENT +  if(query("snmp_process") && objectp(roxen->snmpagent)) { +  roxen->snmpagent->vs_stop_trap(get_config_id()); +  roxen->snmpagent->del_virtserv(get_config_id()); +  } + #endif +     unregister_urls();       multiset allmods = mkmultiset (indices (otomod));
3195:    "\n\n", query_name(), (gethrtime()-start_time)/1000000.0);      #ifdef SNMP_AGENT -  // Cold start trap after real virt.serv. loading -  if(objectp(roxen->snmpagent)) +  // Start trap after real virt.serv. loading +  if(query("snmp_process") && objectp(roxen->snmpagent))    roxen->snmpagent->vs_start_trap(get_config_id());   #endif