remove redundant check. Found by PVS-Studio
[freeradius.git] / mibs / FREERADIUS-NOTIFICATION-MIB.mib
1 FREERADIUS-NOTIFICATION-MIB DEFINITIONS ::= BEGIN
2         IMPORTS
3                 MODULE-IDENTITY, NOTIFICATION-TYPE
4                         FROM SNMPv2-SMI
5                 freeradiusObjects
6                         FROM FREERADIUS-MGMT-MIB
7                 freeRadius
8                         FROM FREERADIUS-SMI
9                 radiusAuthServerAddress,radiusAuthClientServerPortNumber
10                         FROM RADIUS-AUTH-CLIENT-MIB
11                 radiusAuthServIdent
12                         FROM RADIUS-AUTH-SERVER-MIB
13                 radiusd
14                         FROM FREERADIUS-PRODUCT-RADIUSD-MIB;
15
16 freeRadiusNotificationMib MODULE-IDENTITY
17         LAST-UPDATED "201012170000Z"
18         ORGANIZATION "FREERADIUS project"
19         CONTACT-INFO
20                 "FreeRADIUS Network Object Model Environment project
21
22                 see http://www.freeradius.org for contact persons of a particular
23                 area or subproject of FREERADIUS.
24
25                 Administrative contact for MIB module:
26
27                 Alan DeKok
28
29                 email: aland@freeradius.org"
30         DESCRIPTION
31                 "FreeRADIUS Notification MIBs."
32         ::= { freeRadius 4 }
33
34 serverGlobal  OBJECT IDENTIFIER ::= { freeRadiusNotificationMib 1 }
35
36 serverStart NOTIFICATION-TYPE
37        OBJECTS { radiusObject }
38        STATUS current
39        DESCRIPTION "Notification that the server has started"
40        ::= { serverGlobal 1 }
41
42 serverStop NOTIFICATION-TYPE
43        OBJECTS { radiusObject }
44        STATUS current
45        DESCRIPTION "Notification that the server is stopping"
46        ::= { serverGlobal 2 }
47
48 serverMaxRequests NOTIFICATION-TYPE
49        OBJECTS { radiusObject }
50        STATUS current
51        DESCRIPTION "Notification that the server has hit the max_requests limit"
52        ::= { serverGlobal 3 }
53
54 serverSignal  OBJECT IDENTIFIER ::= { serverGlobal 4 }
55
56 signalHup NOTIFICATION-TYPE
57        OBJECTS { radiusObject }
58        STATUS current
59        DESCRIPTION "Notification that the server has received a HUP signal"
60        ::= { serverSignal 1 }
61
62 signalTerm NOTIFICATION-TYPE
63        OBJECTS { radiusObject }
64        STATUS current
65        DESCRIPTION "Notification that the server has received a TERM signal"
66        ::= { serverSignal 2 }
67
68 serverThread  OBJECT IDENTIFIER ::= { serverGlobal 5 }
69
70 threadStart NOTIFICATION-TYPE
71        OBJECTS { radiusObject }
72        STATUS current
73        DESCRIPTION "Notification that a thread has started"
74        ::= { serverThread 1 }
75
76 threadStop NOTIFICATION-TYPE
77        OBJECTS { radiusObject }
78        STATUS current
79        DESCRIPTION "Notification that a thread has stopped"
80        ::= { serverThread 2 }
81
82 threadUnresponsive NOTIFICATION-TYPE
83        OBJECTS { radiusObject }
84        STATUS current
85        DESCRIPTION "Notification that a child thread is unresponsive"
86        ::= { serverThread 3 }
87
88 threadMaxThreads NOTIFICATION-TYPE
89        OBJECTS { radiusObject }
90        STATUS current
91        DESCRIPTION "Notification that the max_threads limit has been reached"
92        ::= { serverThread 4 }
93
94 serverModules  OBJECT IDENTIFIER ::= { freeRadiusNotificationMib 2 }
95
96 serverModuleGeneric  OBJECT IDENTIFIER ::= { serverModules 1 }
97
98 serverModuleConnectionUp NOTIFICATION-TYPE
99        OBJECTS { radiusdModuleName,
100                  radiusdModuleInstance }
101        STATUS current
102        DESCRIPTION "Notification that the module has opened a new connection"
103        ::= { serverModuleGeneric 1 }
104
105 serverModuleConnectionDown NOTIFICATION-TYPE
106        OBJECTS { radiusdModuleName,
107                  radiusdModuleInstance }
108        STATUS current
109        DESCRIPTION "Notification that the module has dropped a connection"
110        ::= { serverModuleGeneric 2 }
111
112 serverModuleConnectionNone NOTIFICATION-TYPE
113        OBJECTS { radiusdModuleName,
114                  radiusdModuleInstance }
115        STATUS current
116        DESCRIPTION "Notification that the module has no connections"
117        ::= { serverModuleGeneric 3 }
118
119 serverModuleConnectionFail NOTIFICATION-TYPE
120        OBJECTS { radiusdModuleName,
121                  radiusdModuleInstance }
122        STATUS current
123        DESCRIPTION "Notification that the module has failed to open a new connection"
124        ::= { serverModuleGeneric 4 }
125
126 serverModuleHup NOTIFICATION-TYPE
127        OBJECTS { radiusdModuleName,
128                  radiusdModuleInstance }
129        STATUS current
130        DESCRIPTION "Notification that the module has been HUP'd via radmin"
131        ::= { serverModuleGeneric 5 }
132
133 homeServer  OBJECT IDENTIFIER ::= { freeRadiusNotificationMib 3 }
134
135 --
136 --  For now, we only support IPv4 traps, and we support only UDP.
137 --  We can add IPv6 and TCP / TLS later.
138 --
139 --  We also use the "authserver" fields for both authentication and accounting
140 --  servers.
141 --
142 homeServerAlive NOTIFICATION-TYPE
143        OBJECTS { radiusAuthServerAddress,
144                  radiusAuthClientServerPortNumber,
145                  radiusAuthServIdent }
146        STATUS current
147        DESCRIPTION "Notification that a home server is alive"
148        ::= { homeServer 1 }
149
150 homeServerZombie NOTIFICATION-TYPE
151        OBJECTS { radiusAuthServerAddress,
152                  radiusAuthClientServerPortNumber,
153                  radiusAuthServIdent }
154        STATUS current
155        DESCRIPTION "Notification that a home server is zombie"
156        ::= { homeServer 2 }
157
158 homeServerDead NOTIFICATION-TYPE
159        OBJECTS { radiusAuthServerAddress,
160                  radiusAuthClientServerPortNumber,
161                  radiusAuthServIdent }
162        STATUS current
163        DESCRIPTION "Notification that a home server is dead"
164        ::= { homeServer 3 }
165
166 homeServerPool  OBJECT IDENTIFIER ::= { freeRadiusNotificationMib 4 }
167
168 homeServerPoolNormal NOTIFICATION-TYPE
169        OBJECTS { radiusdConfigName }
170        STATUS current
171        DESCRIPTION "Notification that the pool is operating normally"
172        ::= { homeServerPool 1 }
173
174 homeServerPoolFallback NOTIFICATION-TYPE
175        OBJECTS { radiusdConfigName }
176        STATUS current
177        DESCRIPTION "Notification that the pool is in fallback mode"
178        ::= { homeServerPool 2 }
179
180 END