diff options
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2005-03-11 18:04:21 +0000 |
---|---|---|
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2005-03-11 18:04:21 +0000 |
commit | 6238bb6ff2515e34992f93b56cd43fc910250e2e (patch) | |
tree | f8a35e506c8db39cd6ce3f023a83a5d86fb824aa /src-mib | |
parent | ec8f90449b83a3d4cd762cc2c447cf99a49a15f1 (diff) | |
download | nagios-mib-6238bb6ff2515e34992f93b56cd43fc910250e2e.tar.gz |
Initial revision
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosmib/trunk@1150 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'src-mib')
-rw-r--r-- | src-mib/nagios-notify.mib | 622 | ||||
-rw-r--r-- | src-mib/nagios-root.mib | 90 |
2 files changed, 712 insertions, 0 deletions
diff --git a/src-mib/nagios-notify.mib b/src-mib/nagios-notify.mib new file mode 100644 index 0000000..85cf14c --- /dev/null +++ b/src-mib/nagios-notify.mib | |||
@@ -0,0 +1,622 @@ | |||
1 | $Id$ | ||
2 | |||
3 | NAGIOS-NOTIFY-MIB DEFINITIONS ::= BEGIN | ||
4 | IMPORTS | ||
5 | MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE, | ||
6 | Integer32 | ||
7 | FROM SNMPv2-SMI | ||
8 | nagios,NotifyType,HostStateID,HostStateType,ServiceStateID | ||
9 | FROM NAGIOS-ROOT-MIB; | ||
10 | |||
11 | nagiosNotify MODULE-IDENTITY | ||
12 | LAST-UPDATED "200503090000Z" -- March 9, 2005 | ||
13 | ORGANIZATION "Nagios" | ||
14 | CONTACT-INFO | ||
15 | " Subhendu Ghosh | ||
16 | |||
17 | Telephone: +1 201 232 2851 | ||
18 | Email: sghosh@users.sourceforge.net | ||
19 | |||
20 | Nagios Information: | ||
21 | http://www.nagios.org | ||
22 | " | ||
23 | DESCRIPTION | ||
24 | "Objects for Nagios(tm) events. There are 2 primary tables | ||
25 | reflecting the division in Nagios for Host events and | ||
26 | Service events. | ||
27 | |||
28 | The event tables are extended by the HostNotifyTable and the | ||
29 | ServiceNotifyTable to keep track of the notifications based on events. | ||
30 | |||
31 | The tables entries themselves are not accessible but are used for OID | ||
32 | entries for TRAP/INFORM notifications. | ||
33 | |||
34 | These objects are based on the macros defined in Nagios v2.0 | ||
35 | " | ||
36 | REVISION "200503090000Z" -- March 9, 2005 | ||
37 | DESCRIPTION | ||
38 | "Spell check" | ||
39 | REVISION "200501200000Z" --January 20, 2005 | ||
40 | DESCRIPTION | ||
41 | "Initial Version" | ||
42 | ::= { nagios 1 } | ||
43 | |||
44 | |||
45 | nagiosHostEventTable OBJECT-TYPE | ||
46 | SYNTAX SEQUENCE OF HostEventEntry | ||
47 | MAX-ACCESS not-accessible | ||
48 | STATUS current | ||
49 | DESCRIPTION | ||
50 | "Table of Nagios host events" | ||
51 | ::= { nagiosNotify 1 } | ||
52 | |||
53 | HostEventEntry ::= SEQUENCE { | ||
54 | nHostEventIndex Integer32, | ||
55 | nHostname OCTET STRING, | ||
56 | nHostAlias OCTET STRING, | ||
57 | nHostStateID HostStateID, | ||
58 | nHostStateType HostStateType, | ||
59 | nHostAttempt Integer32, | ||
60 | nHostDurationSec Integer32, | ||
61 | nHostGroupName OCTET STRING, | ||
62 | nHostLastCheck INTEGER, | ||
63 | nHostLastChange INTEGER, | ||
64 | nHostLastUp INTEGER, | ||
65 | nHostLastDown INTEGER, | ||
66 | nHostLastUnreachable INTEGER, | ||
67 | nHostOutput OCTET STRING, | ||
68 | nHostPerfData OCTET STRING | ||
69 | } | ||
70 | |||
71 | nagiosHostEventEntry OBJECT-TYPE | ||
72 | SYNTAX HostEventEntry | ||
73 | MAX-ACCESS not-accessible | ||
74 | STATUS current | ||
75 | DESCRIPTION | ||
76 | "Each notification event" | ||
77 | INDEX { nHostEventIndex } | ||
78 | ::= { nagiosHostEventTable 1 } | ||
79 | |||
80 | nHostEventIndex OBJECT-TYPE | ||
81 | SYNTAX Integer32 (1..65535) | ||
82 | MAX-ACCESS not-accessible | ||
83 | STATUS current | ||
84 | DESCRIPTION | ||
85 | "This object uniquely identifies this host event entry. It is generated | ||
86 | by the SNMP application and is not related to any Nagios data." | ||
87 | ::= { nagiosHostEventEntry 1 } | ||
88 | |||
89 | nHostname OBJECT-TYPE | ||
90 | SYNTAX OCTET STRING | ||
91 | MAX-ACCESS read-only | ||
92 | STATUS current | ||
93 | DESCRIPTION | ||
94 | "Hostname as specified in the Nagios configuration file." | ||
95 | ::= { nagiosHostEventEntry 2 } | ||
96 | |||
97 | nHostAlias OBJECT-TYPE | ||
98 | SYNTAX OCTET STRING | ||
99 | MAX-ACCESS read-only | ||
100 | STATUS current | ||
101 | DESCRIPTION | ||
102 | "The host alias as specified in the Nagios configuration file" | ||
103 | ::= { nagiosHostEventEntry 3 } | ||
104 | |||
105 | nHostStateID OBJECT-TYPE | ||
106 | SYNTAX HostStateID | ||
107 | MAX-ACCESS read-only | ||
108 | STATUS current | ||
109 | DESCRIPTION | ||
110 | "The host state as defined by the HOSTSTATEID macro" | ||
111 | ::= { nagiosHostEventEntry 4 } | ||
112 | |||
113 | nHostStateType OBJECT-TYPE | ||
114 | SYNTAX HostStateType | ||
115 | MAX-ACCESS read-only | ||
116 | STATUS current | ||
117 | DESCRIPTION | ||
118 | "The host state as defined by the HOSTSTATETYPE macro" | ||
119 | ::= { nagiosHostEventEntry 5 } | ||
120 | |||
121 | nHostAttempt OBJECT-TYPE | ||
122 | SYNTAX Integer32 | ||
123 | MAX-ACCESS read-only | ||
124 | STATUS current | ||
125 | DESCRIPTION | ||
126 | "The number of the current host check retry. For instance, if this is the | ||
127 | second time that the host is being rechecked, this will be the number two. | ||
128 | Current attempt number is really only useful when writing host event | ||
129 | handlers for soft states that take a specific action based on the host retry | ||
130 | number. The host state as defined by the HOSTSTATEID macro" | ||
131 | ::= { nagiosHostEventEntry 6 } | ||
132 | |||
133 | nHostDurationSec OBJECT-TYPE | ||
134 | SYNTAX Integer32 | ||
135 | MAX-ACCESS read-only | ||
136 | STATUS current | ||
137 | DESCRIPTION | ||
138 | "A number indicating the number of seconds that the host has spent in its | ||
139 | current state" | ||
140 | ::= { nagiosHostEventEntry 7 } | ||
141 | |||
142 | nHostGroupName OBJECT-TYPE | ||
143 | SYNTAX OCTET STRING | ||
144 | MAX-ACCESS read-only | ||
145 | STATUS current | ||
146 | DESCRIPTION | ||
147 | "The short name of the hostgroup that this host belongs to. This value is | ||
148 | taken from the hostgroup_name directive in the hostgroup definition. If the | ||
149 | host belongs to more than one hostgroup this macro will contain the name of | ||
150 | just one of them." | ||
151 | ::= { nagiosHostEventEntry 8 } | ||
152 | |||
153 | nHostLastCheck OBJECT-TYPE | ||
154 | SYNTAX INTEGER | ||
155 | MAX-ACCESS read-only | ||
156 | STATUS current | ||
157 | DESCRIPTION | ||
158 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
159 | indicating the time at which a check of the host was last performed." | ||
160 | ::= { nagiosHostEventEntry 9 } | ||
161 | |||
162 | nHostLastChange OBJECT-TYPE | ||
163 | SYNTAX INTEGER | ||
164 | MAX-ACCESS read-only | ||
165 | STATUS current | ||
166 | DESCRIPTION | ||
167 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
168 | indicating the time the host last changed state." | ||
169 | ::= { nagiosHostEventEntry 10 } | ||
170 | |||
171 | nHostLastUp OBJECT-TYPE | ||
172 | SYNTAX INTEGER | ||
173 | MAX-ACCESS read-only | ||
174 | STATUS current | ||
175 | DESCRIPTION | ||
176 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
177 | indicating the time at which the host was last detected as being in an UP | ||
178 | state." | ||
179 | ::= { nagiosHostEventEntry 11 } | ||
180 | |||
181 | nHostLastDown OBJECT-TYPE | ||
182 | SYNTAX INTEGER | ||
183 | MAX-ACCESS read-only | ||
184 | STATUS current | ||
185 | DESCRIPTION | ||
186 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
187 | indicating the time at which the host was last detected as being in an | ||
188 | DOWN state." | ||
189 | ::= { nagiosHostEventEntry 12 } | ||
190 | |||
191 | nHostLastUnreachable OBJECT-TYPE | ||
192 | SYNTAX INTEGER | ||
193 | MAX-ACCESS read-only | ||
194 | STATUS current | ||
195 | DESCRIPTION | ||
196 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
197 | indicating the time at which the host was last detected as being in an | ||
198 | UNREACHABLE state." | ||
199 | ::= { nagiosHostEventEntry 13 } | ||
200 | |||
201 | nHostOutput OBJECT-TYPE | ||
202 | SYNTAX OCTET STRING | ||
203 | MAX-ACCESS read-only | ||
204 | STATUS current | ||
205 | DESCRIPTION | ||
206 | "The text output from the last host check (i.e. Ping OK)." | ||
207 | ::= { nagiosHostEventEntry 14 } | ||
208 | |||
209 | nHostPerfData OBJECT-TYPE | ||
210 | SYNTAX OCTET STRING | ||
211 | MAX-ACCESS read-only | ||
212 | STATUS current | ||
213 | DESCRIPTION | ||
214 | "This object contains any performance data that may have been returned | ||
215 | by the last host check." | ||
216 | ::= { nagiosHostEventEntry 15 } | ||
217 | |||
218 | |||
219 | |||
220 | -- | ||
221 | -- Host Notifications | ||
222 | |||
223 | nagiosHostNotifyTable OBJECT-TYPE | ||
224 | SYNTAX SEQUENCE OF HostNotifyEntry | ||
225 | MAX-ACCESS not-accessible | ||
226 | STATUS current | ||
227 | DESCRIPTION | ||
228 | "Table of Nagios host notifications" | ||
229 | ::= {nagiosNotify 2} | ||
230 | |||
231 | HostNotifyEntry ::= SEQUENCE { | ||
232 | nHostNotifyType NotifyType, | ||
233 | nHostNotifyNum Integer32, | ||
234 | nHostAckAuthor OCTET STRING, | ||
235 | nHostAckComment OCTET STRING | ||
236 | } | ||
237 | |||
238 | nagiosHostNotifyEntry OBJECT-TYPE | ||
239 | SYNTAX HostNotifyEntry | ||
240 | MAX-ACCESS not-accessible | ||
241 | STATUS current | ||
242 | DESCRIPTION | ||
243 | "Nagios host notifications extends the nagiosHostEventTable when a | ||
244 | notification is generated for an event." | ||
245 | INDEX { nHostEventIndex } | ||
246 | ::= { nagiosHostNotifyTable 1 } | ||
247 | |||
248 | nHostNotifyType OBJECT-TYPE | ||
249 | SYNTAX NotifyType | ||
250 | MAX-ACCESS read-only | ||
251 | STATUS current | ||
252 | DESCRIPTION | ||
253 | "This identifies the type of notification that is being sent | ||
254 | (PROBLEM, RECOVERY, ACKNOWLEDGEMENT, FLAPPINGSTART or FLAPPINGSTOP)" | ||
255 | ::= { nagiosHostNotifyEntry 1 } | ||
256 | |||
257 | nHostNotifyNum OBJECT-TYPE | ||
258 | SYNTAX NotifyType | ||
259 | MAX-ACCESS read-only | ||
260 | STATUS current | ||
261 | DESCRIPTION | ||
262 | "This identifies the current notification number for the service or host. | ||
263 | The notification number increases by one (1) each time a new notification | ||
264 | is sent out for a host or service (except for acknowledgements). The | ||
265 | notification number is reset to 0 when the host or service recovers | ||
266 | (after the recovery notification has gone out). Acknowledgements do not | ||
267 | cause the notification number to increase." | ||
268 | ::= { nagiosHostNotifyEntry 2 } | ||
269 | |||
270 | nHostAckAuthor OBJECT-TYPE | ||
271 | SYNTAX OCTET STRING | ||
272 | MAX-ACCESS read-only | ||
273 | STATUS current | ||
274 | DESCRIPTION | ||
275 | "A string containing the name of the user who acknowledged the host | ||
276 | problem. This macro is only valid in notifications where the | ||
277 | $NOTIFICATIONTYPE$ macro is set to ACKNOWLEDGEMENT." | ||
278 | ::= { nagiosHostNotifyEntry 3 } | ||
279 | |||
280 | nHostAckComment OBJECT-TYPE | ||
281 | SYNTAX OCTET STRING | ||
282 | MAX-ACCESS read-only | ||
283 | STATUS current | ||
284 | DESCRIPTION | ||
285 | "A string containing the acknowledgement comment that was entered by | ||
286 | the user who acknowledged the host problem. This macro is only valid | ||
287 | in notifications where the $NOTIFICATIONTYPE$ macro is set to ACKNOWLEDGEMENT" | ||
288 | ::= { nagiosHostNotifyEntry 4 } | ||
289 | |||
290 | |||
291 | -- | ||
292 | -- Service Events | ||
293 | -- | ||
294 | |||
295 | |||
296 | nagiosSvcEventTable OBJECT-TYPE | ||
297 | SYNTAX SEQUENCE OF SvcEventEntry | ||
298 | MAX-ACCESS not-accessible | ||
299 | STATUS current | ||
300 | DESCRIPTION | ||
301 | "Table of Nagios service notifications" | ||
302 | ::= { nagiosNotify 3 } | ||
303 | |||
304 | SvcEventEntry ::= SEQUENCE { | ||
305 | nSvcEventIndex Integer32, | ||
306 | nSvcHostname OCTET STRING, | ||
307 | nSvcHostAlias OCTET STRING, | ||
308 | nSvcHostStateID HostStateID, | ||
309 | nSvcHostStateType HostStateType, | ||
310 | nSvcDesc OCTET STRING, | ||
311 | nSvcStateID ServiceStateID, | ||
312 | nSvcAttempt Integer32, | ||
313 | nSvcDurationSec Integer32, | ||
314 | nSvcGroupName OCTET STRING, | ||
315 | nSvcLastCheck INTEGER, | ||
316 | nSvcLastChange INTEGER, | ||
317 | nSvcLastOK INTEGER, | ||
318 | nSvcLastWarn INTEGER, | ||
319 | nSvcLastCrit INTEGER, | ||
320 | nSvcLastUnkn INTEGER, | ||
321 | nSvcOutput OCTET STRING, | ||
322 | nSvcPerfData OCTET STRING | ||
323 | } | ||
324 | |||
325 | nagiosSvcEventEntry OBJECT-TYPE | ||
326 | SYNTAX SvcEventEntry | ||
327 | MAX-ACCESS not-accessible | ||
328 | STATUS current | ||
329 | DESCRIPTION | ||
330 | "Table of Nagios service events." | ||
331 | INDEX { nSvcEventIndex } | ||
332 | ::= { nagiosSvcEventTable 1 } | ||
333 | |||
334 | nSvcEventIndex OBJECT-TYPE | ||
335 | SYNTAX Integer32 (1..65535) | ||
336 | MAX-ACCESS not-accessible | ||
337 | STATUS current | ||
338 | DESCRIPTION | ||
339 | "This object uniquely identifies this service event entry" | ||
340 | ::= { nagiosSvcEventEntry 1 } | ||
341 | |||
342 | nSvcHostname OBJECT-TYPE | ||
343 | SYNTAX OCTET STRING | ||
344 | MAX-ACCESS read-only | ||
345 | STATUS current | ||
346 | DESCRIPTION | ||
347 | "Hostname as specified in the Nagios configuration file." | ||
348 | ::= { nagiosSvcEventEntry 2 } | ||
349 | |||
350 | nSvcHostAlias OBJECT-TYPE | ||
351 | SYNTAX OCTET STRING | ||
352 | MAX-ACCESS read-only | ||
353 | STATUS current | ||
354 | DESCRIPTION | ||
355 | "The host alias as specified in the Nagios configuration file" | ||
356 | ::= { nagiosSvcEventEntry 3 } | ||
357 | |||
358 | nSvcHostStateID OBJECT-TYPE | ||
359 | SYNTAX HostStateID | ||
360 | MAX-ACCESS read-only | ||
361 | STATUS current | ||
362 | DESCRIPTION | ||
363 | "A number that corresponds to the current state of the service: 0=OK, | ||
364 | 1=WARNING, 2=CRITICAL, 3=UNKNOWN." | ||
365 | ::= { nagiosSvcEventEntry 4 } | ||
366 | |||
367 | nSvcHostStateType OBJECT-TYPE | ||
368 | SYNTAX HostStateType | ||
369 | MAX-ACCESS read-only | ||
370 | STATUS current | ||
371 | DESCRIPTION | ||
372 | "Whether the host is in a hard or soft state." | ||
373 | ::= { nagiosSvcEventEntry 5 } | ||
374 | |||
375 | nSvcDesc OBJECT-TYPE | ||
376 | SYNTAX OCTET STRING | ||
377 | MAX-ACCESS read-only | ||
378 | STATUS current | ||
379 | DESCRIPTION | ||
380 | "This value is taken from the description directive of the service | ||
381 | definition." | ||
382 | ::= { nagiosSvcEventEntry 6 } | ||
383 | |||
384 | nSvcStateID OBJECT-TYPE | ||
385 | SYNTAX ServiceStateID | ||
386 | MAX-ACCESS read-only | ||
387 | STATUS current | ||
388 | DESCRIPTION | ||
389 | " A number that corresponds to the current state of the service: 0=OK, | ||
390 | 1=WARNING, 2=CRITICAL, 3=UNKNOWN" | ||
391 | ::= { nagiosSvcEventEntry 7 } | ||
392 | |||
393 | nSvcAttempt OBJECT-TYPE | ||
394 | SYNTAX Integer32 | ||
395 | MAX-ACCESS read-only | ||
396 | STATUS current | ||
397 | DESCRIPTION | ||
398 | "The number of the current service check retry. For instance, if this is | ||
399 | the second time that the service is being rechecked, this will be the | ||
400 | number two. Current attempt number is really only useful when writing | ||
401 | service event handlers for soft states that take a specific action based | ||
402 | on the service retry number." | ||
403 | ::= { nagiosSvcEventEntry 8 } | ||
404 | |||
405 | nSvcDurationSec OBJECT-TYPE | ||
406 | SYNTAX Integer32 | ||
407 | MAX-ACCESS read-only | ||
408 | STATUS current | ||
409 | DESCRIPTION | ||
410 | "A number indicating the number of seconds that the service has spent in | ||
411 | its current state." | ||
412 | ::= { nagiosSvcEventEntry 9 } | ||
413 | |||
414 | nSvcGroupName OBJECT-TYPE | ||
415 | SYNTAX OCTET STRING | ||
416 | MAX-ACCESS read-only | ||
417 | STATUS current | ||
418 | DESCRIPTION | ||
419 | "The short name of the servicegroup that this service belongs to. This | ||
420 | value is taken from the servicegroup_name directive in the servicegroup | ||
421 | definition. If the service belongs to more than one servicegroup this | ||
422 | object will contain the name of just one of them." | ||
423 | ::= { nagiosSvcEventEntry 10 } | ||
424 | |||
425 | nSvcLastCheck OBJECT-TYPE | ||
426 | SYNTAX INTEGER | ||
427 | MAX-ACCESS read-only | ||
428 | STATUS current | ||
429 | DESCRIPTION | ||
430 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
431 | indicating the time at which a check of the service was last performed." | ||
432 | ::= { nagiosSvcEventEntry 11 } | ||
433 | |||
434 | nSvcLastChange OBJECT-TYPE | ||
435 | SYNTAX INTEGER | ||
436 | MAX-ACCESS read-only | ||
437 | STATUS current | ||
438 | DESCRIPTION | ||
439 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
440 | indicating the time the service last changed state." | ||
441 | ::= { nagiosSvcEventEntry 12 } | ||
442 | |||
443 | nSvcLastOK OBJECT-TYPE | ||
444 | SYNTAX INTEGER | ||
445 | MAX-ACCESS read-only | ||
446 | STATUS current | ||
447 | DESCRIPTION | ||
448 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
449 | indicating the time at which the service was last detected as being in an | ||
450 | OK state." | ||
451 | ::= { nagiosSvcEventEntry 13 } | ||
452 | |||
453 | nSvcLastWarn OBJECT-TYPE | ||
454 | SYNTAX INTEGER | ||
455 | MAX-ACCESS read-only | ||
456 | STATUS current | ||
457 | DESCRIPTION | ||
458 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
459 | indicating the time at which the service was last detected as being in a | ||
460 | WARNING state." | ||
461 | ::= { nagiosSvcEventEntry 14 } | ||
462 | |||
463 | nSvcLastCrit OBJECT-TYPE | ||
464 | SYNTAX INTEGER | ||
465 | MAX-ACCESS read-only | ||
466 | STATUS current | ||
467 | DESCRIPTION | ||
468 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
469 | indicating the time at which the service was last detected as being in a | ||
470 | CRITICAL state." | ||
471 | ::= { nagiosSvcEventEntry 15 } | ||
472 | |||
473 | nSvcLastUnkn OBJECT-TYPE | ||
474 | SYNTAX INTEGER | ||
475 | MAX-ACCESS read-only | ||
476 | STATUS current | ||
477 | DESCRIPTION | ||
478 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
479 | indicating the time at which the service was last detected as being in an | ||
480 | UNKNOWN state." | ||
481 | ::= { nagiosSvcEventEntry 16 } | ||
482 | |||
483 | nSvcOutput OBJECT-TYPE | ||
484 | SYNTAX OCTET STRING | ||
485 | MAX-ACCESS read-only | ||
486 | STATUS current | ||
487 | DESCRIPTION | ||
488 | "The text output from the last service check (i.e. Ping OK)." | ||
489 | ::= { nagiosSvcEventEntry 17 } | ||
490 | |||
491 | nSvcPerfData OBJECT-TYPE | ||
492 | SYNTAX OCTET STRING | ||
493 | MAX-ACCESS read-only | ||
494 | STATUS current | ||
495 | DESCRIPTION | ||
496 | "This object contains any performance data that may have been returned by | ||
497 | the last service check." | ||
498 | ::= { nagiosSvcEventEntry 18 } | ||
499 | |||
500 | |||
501 | -- | ||
502 | -- Service Notifications | ||
503 | -- | ||
504 | |||
505 | nagiosSvcNotifyTable OBJECT-TYPE | ||
506 | SYNTAX SEQUENCE OF SvcNotifyEntry | ||
507 | MAX-ACCESS not-accessible | ||
508 | STATUS current | ||
509 | DESCRIPTION | ||
510 | "Table of Nagios service notifications." | ||
511 | ::= { nagiosNotify 4 } | ||
512 | |||
513 | SvcNotifyEntry ::= SEQUENCE { | ||
514 | nSvcNotifyType NotifyType, | ||
515 | nSvcNotifyNum Integer32, | ||
516 | nSvcAckAuthor OCTET STRING, | ||
517 | nSvcAckComment OCTET STRING | ||
518 | } | ||
519 | |||
520 | nagiosSvcNotifyEntry OBJECT-TYPE | ||
521 | SYNTAX SvcNotifyEntry | ||
522 | MAX-ACCESS not-accessible | ||
523 | STATUS current | ||
524 | DESCRIPTION | ||
525 | "Nagios service notifications extends the nagiosSvcEnevtsTable when | ||
526 | a notification is generated for an event." | ||
527 | INDEX { nSvcEventIndex } | ||
528 | ::= { nagiosSvcNotifyTable 1} | ||
529 | |||
530 | |||
531 | nSvcNotifyType OBJECT-TYPE | ||
532 | SYNTAX NotifyType | ||
533 | MAX-ACCESS read-only | ||
534 | STATUS current | ||
535 | DESCRIPTION | ||
536 | "A string identifying the type of notification that is being sent | ||
537 | (PROBLEM, RECOVERY, ACKNOWLEDGEMENT, FLAPPINGSTART or FLAPPINGSTOP)." | ||
538 | ::= { nagiosSvcNotifyEntry 1 } | ||
539 | |||
540 | nSvcNotifyNum OBJECT-TYPE | ||
541 | SYNTAX Integer32 | ||
542 | MAX-ACCESS read-only | ||
543 | STATUS current | ||
544 | DESCRIPTION | ||
545 | "The current notification number for the service or host. The notification | ||
546 | number increases by one (1) each time a new notification is sent out for a | ||
547 | host or service (except for acknowledgements). The notification number is | ||
548 | reset to 0 when the host or service recovers (after the recovery | ||
549 | notification has gone out). Acknowledgements do not cause the notification | ||
550 | number to increase." | ||
551 | ::= { nagiosSvcNotifyEntry 2 } | ||
552 | |||
553 | nSvcAckAuthor OBJECT-TYPE | ||
554 | SYNTAX OCTET STRING | ||
555 | MAX-ACCESS read-only | ||
556 | STATUS current | ||
557 | DESCRIPTION | ||
558 | "A string containing the name of the user who acknowledged the service | ||
559 | problem. This object is only valid in notifications where the | ||
560 | nSvcNotifyType object is set to ACKNOWLEDGEMENT." | ||
561 | ::= { nagiosSvcNotifyEntry 3 } | ||
562 | |||
563 | nSvcAckComment OBJECT-TYPE | ||
564 | SYNTAX OCTET STRING | ||
565 | MAX-ACCESS read-only | ||
566 | STATUS current | ||
567 | DESCRIPTION | ||
568 | "A string containing the acknowledgement comment that was entered by the | ||
569 | user who acknowledged the service problem. This object is only valid in | ||
570 | notifications where the nSvcNotifyType object is set to ACKNOWLEDGEMENT." | ||
571 | ::= { nagiosSvcNotifyEntry 4 } | ||
572 | |||
573 | |||
574 | -- | ||
575 | -- Events and Notifications | ||
576 | -- | ||
577 | |||
578 | nHostEvent NOTIFICATION-TYPE | ||
579 | OBJECTS { nHostname, nHostStateID, nHostStateType, nHostAttempt, | ||
580 | nHostDurationSec, nHostGroupName, nHostLastCheck, nHostLastChange, | ||
581 | nHostOutput } | ||
582 | STATUS current | ||
583 | DESCRIPTION | ||
584 | "The SNMP trap that is generated as a result of an event with the host | ||
585 | in Nagios." | ||
586 | |||
587 | ::= { nagiosNotify 5 } | ||
588 | |||
589 | nHostNotify NOTIFICATION-TYPE | ||
590 | OBJECTS { nHostNotifyType, nHostNotifyNum, nHostAckAuthor, nHostAckComment, | ||
591 | nHostname, nHostStateID, nHostStateType, nHostAttempt, | ||
592 | nHostDurationSec, nHostGroupName, nHostLastCheck, nHostLastChange, | ||
593 | nHostOutput } | ||
594 | STATUS current | ||
595 | DESCRIPTION | ||
596 | "The SNMP trap that is generated as a result of an event requiring | ||
597 | notification for a host in Nagios." | ||
598 | ::= { nagiosNotify 6 } | ||
599 | |||
600 | nSvcEvent NOTIFICATION-TYPE | ||
601 | OBJECTS { nHostname, nHostStateID, nSvcDesc, nSvcStateID, nSvcAttempt, | ||
602 | nSvcDurationSec, nSvcGroupName, nSvcLastCheck, nSvcLastChange, | ||
603 | nSvcOutput } | ||
604 | STATUS current | ||
605 | DESCRIPTION | ||
606 | "The SNMP trap that is generated as a result of an event with the service | ||
607 | in Nagios." | ||
608 | ::= { nagiosNotify 7 } | ||
609 | |||
610 | nSvcNotify NOTIFICATION-TYPE | ||
611 | OBJECTS { nSvcNotifyType, nSvcNotifyNum, nSvcAckAuthor, nSvcAckComment, | ||
612 | nHostname, nHostStateID, nSvcDesc, nSvcStateID, nSvcAttempt, | ||
613 | nSvcDurationSec, nSvcGroupName, nSvcLastCheck, nSvcLastChange, | ||
614 | nSvcOutput } | ||
615 | STATUS current | ||
616 | DESCRIPTION | ||
617 | "The SNMP trap that is generated as a result of an event requiring | ||
618 | notification for a service in Nagios." | ||
619 | ::= { nagiosNotify 8 } | ||
620 | |||
621 | |||
622 | END | ||
diff --git a/src-mib/nagios-root.mib b/src-mib/nagios-root.mib new file mode 100644 index 0000000..ebde04b --- /dev/null +++ b/src-mib/nagios-root.mib | |||
@@ -0,0 +1,90 @@ | |||
1 | $Id$ | ||
2 | |||
3 | |||
4 | NAGIOS-ROOT-MIB DEFINITIONS ::= BEGIN | ||
5 | IMPORTS | ||
6 | MODULE-IDENTITY, enterprises | ||
7 | FROM SNMPv2-SMI | ||
8 | TEXTUAL-CONVENTION | ||
9 | FROM SNMPv2-TC; | ||
10 | |||
11 | |||
12 | nagios MODULE-IDENTITY | ||
13 | LAST-UPDATED "200503090000Z" -- March 9, 2005 | ||
14 | ORGANIZATION "Nagios" | ||
15 | CONTACT-INFO | ||
16 | " Subhendu Ghosh | ||
17 | |||
18 | Telephone: +1 201 232 2851 | ||
19 | Email: sghosh@users.sourceforge.net | ||
20 | |||
21 | Nagios Information: | ||
22 | http://www.nagios.org | ||
23 | " | ||
24 | DESCRIPTION | ||
25 | "Objects for Nagios(tm) NMS" | ||
26 | REVISION "200503090000Z" -- March 9, 2005 | ||
27 | DESCRIPTION | ||
28 | "Spell check" | ||
29 | REVISION "200501200000Z" --January 20, 2005 | ||
30 | DESCRIPTION | ||
31 | "Initial Version" | ||
32 | ::= {enterprises 20006} | ||
33 | |||
34 | -- | ||
35 | -- Textual Conventions | ||
36 | -- | ||
37 | |||
38 | NotifyType ::= TEXTUAL-CONVENTION | ||
39 | STATUS current | ||
40 | DESCRIPTION | ||
41 | "A string identifying the type of notification that is being sent | ||
42 | (PROBLEM, RECOVERY, ACKNOWLEDGEMENT, FLAPPINGSTART or FLAPPINGSTOP). | ||
43 | " | ||
44 | SYNTAX INTEGER { | ||
45 | problem(0), | ||
46 | recovery(1), | ||
47 | acknowledgement(2), | ||
48 | flappingstart(3), | ||
49 | flappingstop(4) | ||
50 | } | ||
51 | |||
52 | HostStateID ::= TEXTUAL-CONVENTION | ||
53 | STATUS current | ||
54 | DESCRIPTION | ||
55 | "A number that corresponds to the current state of the host: 0=UP, 1=DOWN, | ||
56 | 2=UNREACHABLE." | ||
57 | SYNTAX INTEGER { | ||
58 | up(0), | ||
59 | down(1), | ||
60 | unreachable(3) | ||
61 | } | ||
62 | |||
63 | HostStateType ::= TEXTUAL-CONVENTION | ||
64 | STATUS current | ||
65 | DESCRIPTION | ||
66 | "A string indicating the state type for the current host check (HARD or | ||
67 | SOFT). Soft states occur when host checks return a non-OK (non-UP) state | ||
68 | and are in the process of being retried. Hard states result when host | ||
69 | checks have been checked a specified maximum number of times." | ||
70 | SYNTAX INTEGER { | ||
71 | hard(0), | ||
72 | soft(1) | ||
73 | } | ||
74 | |||
75 | ServiceStateID ::= TEXTUAL-CONVENTION | ||
76 | STATUS current | ||
77 | DESCRIPTION | ||
78 | "A number that corresponds to the current state of the service: 0=OK, | ||
79 | 1=WARNING, 2=CRITICAL, 3=UNKNOWN. | ||
80 | " | ||
81 | SYNTAX INTEGER{ | ||
82 | ok(0), | ||
83 | warning(1), | ||
84 | critical(2), | ||
85 | unknown(3) | ||
86 | } | ||
87 | |||
88 | |||
89 | END | ||
90 | |||