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