Exemplo n.º 1
0
/**
 * @fn void deinit_ss7OmMIB(void)
 * @brief deinitialization routine.
 *
 * This is called before the agent is unloaded.  At a minimum, deregistration of the MIB variables
 * structure (ss7OmMIB_variables) should take place here.  By default, the function also
 * deregisters the the configuration file handlers for the MIB variables and table rows.
 *
 * Additional deregistrations that may be required here are calls to unregister_readfd(),
 * unregister_writefd() and unregsiter_exceptfd() for unhooking from the snmpd event loop, but only
 * when used as a loadable module.  By default if a read file descriptor exists, it is unregistered.
 */
void
deinit_ss7OmMIB(void)
{
	DEBUGMSGTL(("ss7OmMIB", "deinit_ss7OmMIB: deinitializating...  "));
	external_signal_handler[SIGCHLD] = ss7OmMIBold_signal_handler;
	if (my_readfd >= 0) {
		unregister_exceptfd(my_readfd);
		unregister_readfd(my_readfd);
		close(my_readfd);
		my_readfd = -1;
	}
	unregister_mib(ss7OmMIB_variables_oid, sizeof(ss7OmMIB_variables_oid) / sizeof(oid));
	snmpd_unregister_config_handler("ss7OmMIB");
	/* place any other de-initialization junk you need here */
	DEBUGMSGTL(("ss7OmMIB", "done.\n"));
}
Exemplo n.º 2
0
void
deinit_dlmod(void)
{
    snmpd_unregister_config_handler("dlmod");
}
Exemplo n.º 3
0
void
deinit_dlmod(void)
{
    unregister_mib(dlmod_variables_oid, dlmod_variables_oid_len);
    snmpd_unregister_config_handler("dlmod");
}