DESCRIPTION "Notification that the module has failed to open a new connection"
::= { serverModuleGeneric 4 }
+serverModuleHup NOTIFICATION-TYPE
+ OBJECTS { radiusdModuleName,
+ radiusdModuleInstance }
+ STATUS current
+ DESCRIPTION "Notification that the module has been HUP'd via radmin"
+ ::= { serverModuleGeneric 5 }
+
homeServer OBJECT IDENTIFIER ::= { freeRadiusNotificationMib 3 }
--
# module. You can have module-specific triggers, by placing a
# "trigger" subsection in the module configuration.
modules {
+ # The files module
+ files {
+ # Common arguments
+ args = "radiusdModuleName s ldap' radiusdModuleInstance s ''"
+
+ # The module has been HUP'd via radmin
+ hup = "${snmptrap}::serverModuleHup ${args}"
+
+ # Note that "hup" can be used for every module
+ # which can be HUP'd via radmin
+ }
+
# The LDAP module
ldap {
# Common arguments
# home_server.zombie
# home_server_pool.fallback
# home_server_pool.normal
+# modules.*.hup
# modules.ldap.fail
# modules.sql.close
# modules.sql.fail
{
CONF_SECTION *cs;
module_instance_t *mi;
+ char buffer[256];
if (argc == 0) {
radius_signal_self(RADIUS_SIGNAL_SELF_HUP);
return 0;
}
+ snprintf(buffer, sizeof(buffer), "modules.%s.hup", argv[0]);
+ exec_trigger(NULL, mi->cs, buffer);
+
return 1; /* success */
}