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 | |
| 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
| -rw-r--r-- | LEGAL | 10 | ||||
| -rw-r--r-- | LICENSE | 340 | ||||
| -rw-r--r-- | MIB/.index | 2 | ||||
| -rw-r--r-- | MIB/NAGIOS-NOTIFY-MIB | 620 | ||||
| -rw-r--r-- | MIB/NAGIOS-ROOT-MIB | 86 | ||||
| -rw-r--r-- | Makefile | 8 | ||||
| -rw-r--r-- | README | 8 | ||||
| -rw-r--r-- | src-mib/nagios-notify.mib | 622 | ||||
| -rw-r--r-- | src-mib/nagios-root.mib | 90 |
9 files changed, 1786 insertions, 0 deletions
| @@ -0,0 +1,10 @@ | |||
| 1 | |||
| 2 | All source code, binaries, documentation, information, and other files | ||
| 3 | contained in this distribution are provided AS IS with NO WARRANTY OF | ||
| 4 | ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY, AND FITNESS | ||
| 5 | FOR A PARTICULAR PURPOSE. | ||
| 6 | |||
| 7 | Nagios and the Nagios logo are registered trademarks of Ethan Galstad. | ||
| 8 | All other trademarks, servicemarks, registered trademarks, and | ||
| 9 | registered servicemarks are the property of their respective owner(s). | ||
| 10 | |||
| @@ -0,0 +1,340 @@ | |||
| 1 | GNU GENERAL PUBLIC LICENSE | ||
| 2 | Version 2, June 1991 | ||
| 3 | |||
| 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. | ||
| 5 | 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 6 | Everyone is permitted to copy and distribute verbatim copies | ||
| 7 | of this license document, but changing it is not allowed. | ||
| 8 | |||
| 9 | Preamble | ||
| 10 | |||
| 11 | The licenses for most software are designed to take away your | ||
| 12 | freedom to share and change it. By contrast, the GNU General Public | ||
| 13 | License is intended to guarantee your freedom to share and change free | ||
| 14 | software--to make sure the software is free for all its users. This | ||
| 15 | General Public License applies to most of the Free Software | ||
| 16 | Foundation's software and to any other program whose authors commit to | ||
| 17 | using it. (Some other Free Software Foundation software is covered by | ||
| 18 | the GNU Library General Public License instead.) You can apply it to | ||
| 19 | your programs, too. | ||
| 20 | |||
| 21 | When we speak of free software, we are referring to freedom, not | ||
| 22 | price. Our General Public Licenses are designed to make sure that you | ||
| 23 | have the freedom to distribute copies of free software (and charge for | ||
| 24 | this service if you wish), that you receive source code or can get it | ||
| 25 | if you want it, that you can change the software or use pieces of it | ||
| 26 | in new free programs; and that you know you can do these things. | ||
| 27 | |||
| 28 | To protect your rights, we need to make restrictions that forbid | ||
| 29 | anyone to deny you these rights or to ask you to surrender the rights. | ||
| 30 | These restrictions translate to certain responsibilities for you if you | ||
| 31 | distribute copies of the software, or if you modify it. | ||
| 32 | |||
| 33 | For example, if you distribute copies of such a program, whether | ||
| 34 | gratis or for a fee, you must give the recipients all the rights that | ||
| 35 | you have. You must make sure that they, too, receive or can get the | ||
| 36 | source code. And you must show them these terms so they know their | ||
| 37 | rights. | ||
| 38 | |||
| 39 | We protect your rights with two steps: (1) copyright the software, and | ||
| 40 | (2) offer you this license which gives you legal permission to copy, | ||
| 41 | distribute and/or modify the software. | ||
| 42 | |||
| 43 | Also, for each author's protection and ours, we want to make certain | ||
| 44 | that everyone understands that there is no warranty for this free | ||
| 45 | software. If the software is modified by someone else and passed on, we | ||
| 46 | want its recipients to know that what they have is not the original, so | ||
| 47 | that any problems introduced by others will not reflect on the original | ||
| 48 | authors' reputations. | ||
| 49 | |||
| 50 | Finally, any free program is threatened constantly by software | ||
| 51 | patents. We wish to avoid the danger that redistributors of a free | ||
| 52 | program will individually obtain patent licenses, in effect making the | ||
| 53 | program proprietary. To prevent this, we have made it clear that any | ||
| 54 | patent must be licensed for everyone's free use or not licensed at all. | ||
| 55 | |||
| 56 | The precise terms and conditions for copying, distribution and | ||
| 57 | modification follow. | ||
| 58 | |||
| 59 | GNU GENERAL PUBLIC LICENSE | ||
| 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
| 61 | |||
| 62 | 0. This License applies to any program or other work which contains | ||
| 63 | a notice placed by the copyright holder saying it may be distributed | ||
| 64 | under the terms of this General Public License. The "Program", below, | ||
| 65 | refers to any such program or work, and a "work based on the Program" | ||
| 66 | means either the Program or any derivative work under copyright law: | ||
| 67 | that is to say, a work containing the Program or a portion of it, | ||
| 68 | either verbatim or with modifications and/or translated into another | ||
| 69 | language. (Hereinafter, translation is included without limitation in | ||
| 70 | the term "modification".) Each licensee is addressed as "you". | ||
| 71 | |||
| 72 | Activities other than copying, distribution and modification are not | ||
| 73 | covered by this License; they are outside its scope. The act of | ||
| 74 | running the Program is not restricted, and the output from the Program | ||
| 75 | is covered only if its contents constitute a work based on the | ||
| 76 | Program (independent of having been made by running the Program). | ||
| 77 | Whether that is true depends on what the Program does. | ||
| 78 | |||
| 79 | 1. You may copy and distribute verbatim copies of the Program's | ||
| 80 | source code as you receive it, in any medium, provided that you | ||
| 81 | conspicuously and appropriately publish on each copy an appropriate | ||
| 82 | copyright notice and disclaimer of warranty; keep intact all the | ||
| 83 | notices that refer to this License and to the absence of any warranty; | ||
| 84 | and give any other recipients of the Program a copy of this License | ||
| 85 | along with the Program. | ||
| 86 | |||
| 87 | You may charge a fee for the physical act of transferring a copy, and | ||
| 88 | you may at your option offer warranty protection in exchange for a fee. | ||
| 89 | |||
| 90 | 2. You may modify your copy or copies of the Program or any portion | ||
| 91 | of it, thus forming a work based on the Program, and copy and | ||
| 92 | distribute such modifications or work under the terms of Section 1 | ||
| 93 | above, provided that you also meet all of these conditions: | ||
| 94 | |||
| 95 | a) You must cause the modified files to carry prominent notices | ||
| 96 | stating that you changed the files and the date of any change. | ||
| 97 | |||
| 98 | b) You must cause any work that you distribute or publish, that in | ||
| 99 | whole or in part contains or is derived from the Program or any | ||
| 100 | part thereof, to be licensed as a whole at no charge to all third | ||
| 101 | parties under the terms of this License. | ||
| 102 | |||
| 103 | c) If the modified program normally reads commands interactively | ||
| 104 | when run, you must cause it, when started running for such | ||
| 105 | interactive use in the most ordinary way, to print or display an | ||
| 106 | announcement including an appropriate copyright notice and a | ||
| 107 | notice that there is no warranty (or else, saying that you provide | ||
| 108 | a warranty) and that users may redistribute the program under | ||
| 109 | these conditions, and telling the user how to view a copy of this | ||
| 110 | License. (Exception: if the Program itself is interactive but | ||
| 111 | does not normally print such an announcement, your work based on | ||
| 112 | the Program is not required to print an announcement.) | ||
| 113 | |||
| 114 | These requirements apply to the modified work as a whole. If | ||
| 115 | identifiable sections of that work are not derived from the Program, | ||
| 116 | and can be reasonably considered independent and separate works in | ||
| 117 | themselves, then this License, and its terms, do not apply to those | ||
| 118 | sections when you distribute them as separate works. But when you | ||
| 119 | distribute the same sections as part of a whole which is a work based | ||
| 120 | on the Program, the distribution of the whole must be on the terms of | ||
| 121 | this License, whose permissions for other licensees extend to the | ||
| 122 | entire whole, and thus to each and every part regardless of who wrote it. | ||
| 123 | |||
| 124 | Thus, it is not the intent of this section to claim rights or contest | ||
| 125 | your rights to work written entirely by you; rather, the intent is to | ||
| 126 | exercise the right to control the distribution of derivative or | ||
| 127 | collective works based on the Program. | ||
| 128 | |||
| 129 | In addition, mere aggregation of another work not based on the Program | ||
| 130 | with the Program (or with a work based on the Program) on a volume of | ||
| 131 | a storage or distribution medium does not bring the other work under | ||
| 132 | the scope of this License. | ||
| 133 | |||
| 134 | 3. You may copy and distribute the Program (or a work based on it, | ||
| 135 | under Section 2) in object code or executable form under the terms of | ||
| 136 | Sections 1 and 2 above provided that you also do one of the following: | ||
| 137 | |||
| 138 | a) Accompany it with the complete corresponding machine-readable | ||
| 139 | source code, which must be distributed under the terms of Sections | ||
| 140 | 1 and 2 above on a medium customarily used for software interchange; or, | ||
| 141 | |||
| 142 | b) Accompany it with a written offer, valid for at least three | ||
| 143 | years, to give any third party, for a charge no more than your | ||
| 144 | cost of physically performing source distribution, a complete | ||
| 145 | machine-readable copy of the corresponding source code, to be | ||
| 146 | distributed under the terms of Sections 1 and 2 above on a medium | ||
| 147 | customarily used for software interchange; or, | ||
| 148 | |||
| 149 | c) Accompany it with the information you received as to the offer | ||
| 150 | to distribute corresponding source code. (This alternative is | ||
| 151 | allowed only for noncommercial distribution and only if you | ||
| 152 | received the program in object code or executable form with such | ||
| 153 | an offer, in accord with Subsection b above.) | ||
| 154 | |||
| 155 | The source code for a work means the preferred form of the work for | ||
| 156 | making modifications to it. For an executable work, complete source | ||
| 157 | code means all the source code for all modules it contains, plus any | ||
| 158 | associated interface definition files, plus the scripts used to | ||
| 159 | control compilation and installation of the executable. However, as a | ||
| 160 | special exception, the source code distributed need not include | ||
| 161 | anything that is normally distributed (in either source or binary | ||
| 162 | form) with the major components (compiler, kernel, and so on) of the | ||
| 163 | operating system on which the executable runs, unless that component | ||
| 164 | itself accompanies the executable. | ||
| 165 | |||
| 166 | If distribution of executable or object code is made by offering | ||
| 167 | access to copy from a designated place, then offering equivalent | ||
| 168 | access to copy the source code from the same place counts as | ||
| 169 | distribution of the source code, even though third parties are not | ||
| 170 | compelled to copy the source along with the object code. | ||
| 171 | |||
| 172 | 4. You may not copy, modify, sublicense, or distribute the Program | ||
| 173 | except as expressly provided under this License. Any attempt | ||
| 174 | otherwise to copy, modify, sublicense or distribute the Program is | ||
| 175 | void, and will automatically terminate your rights under this License. | ||
| 176 | However, parties who have received copies, or rights, from you under | ||
| 177 | this License will not have their licenses terminated so long as such | ||
| 178 | parties remain in full compliance. | ||
| 179 | |||
| 180 | 5. You are not required to accept this License, since you have not | ||
| 181 | signed it. However, nothing else grants you permission to modify or | ||
| 182 | distribute the Program or its derivative works. These actions are | ||
| 183 | prohibited by law if you do not accept this License. Therefore, by | ||
| 184 | modifying or distributing the Program (or any work based on the | ||
| 185 | Program), you indicate your acceptance of this License to do so, and | ||
| 186 | all its terms and conditions for copying, distributing or modifying | ||
| 187 | the Program or works based on it. | ||
| 188 | |||
| 189 | 6. Each time you redistribute the Program (or any work based on the | ||
| 190 | Program), the recipient automatically receives a license from the | ||
| 191 | original licensor to copy, distribute or modify the Program subject to | ||
| 192 | these terms and conditions. You may not impose any further | ||
| 193 | restrictions on the recipients' exercise of the rights granted herein. | ||
| 194 | You are not responsible for enforcing compliance by third parties to | ||
| 195 | this License. | ||
| 196 | |||
| 197 | 7. If, as a consequence of a court judgment or allegation of patent | ||
| 198 | infringement or for any other reason (not limited to patent issues), | ||
| 199 | conditions are imposed on you (whether by court order, agreement or | ||
| 200 | otherwise) that contradict the conditions of this License, they do not | ||
| 201 | excuse you from the conditions of this License. If you cannot | ||
| 202 | distribute so as to satisfy simultaneously your obligations under this | ||
| 203 | License and any other pertinent obligations, then as a consequence you | ||
| 204 | may not distribute the Program at all. For example, if a patent | ||
| 205 | license would not permit royalty-free redistribution of the Program by | ||
| 206 | all those who receive copies directly or indirectly through you, then | ||
| 207 | the only way you could satisfy both it and this License would be to | ||
| 208 | refrain entirely from distribution of the Program. | ||
| 209 | |||
| 210 | If any portion of this section is held invalid or unenforceable under | ||
| 211 | any particular circumstance, the balance of the section is intended to | ||
| 212 | apply and the section as a whole is intended to apply in other | ||
| 213 | circumstances. | ||
| 214 | |||
| 215 | It is not the purpose of this section to induce you to infringe any | ||
| 216 | patents or other property right claims or to contest validity of any | ||
| 217 | such claims; this section has the sole purpose of protecting the | ||
| 218 | integrity of the free software distribution system, which is | ||
| 219 | implemented by public license practices. Many people have made | ||
| 220 | generous contributions to the wide range of software distributed | ||
| 221 | through that system in reliance on consistent application of that | ||
| 222 | system; it is up to the author/donor to decide if he or she is willing | ||
| 223 | to distribute software through any other system and a licensee cannot | ||
| 224 | impose that choice. | ||
| 225 | |||
| 226 | This section is intended to make thoroughly clear what is believed to | ||
| 227 | be a consequence of the rest of this License. | ||
| 228 | |||
| 229 | 8. If the distribution and/or use of the Program is restricted in | ||
| 230 | certain countries either by patents or by copyrighted interfaces, the | ||
| 231 | original copyright holder who places the Program under this License | ||
| 232 | may add an explicit geographical distribution limitation excluding | ||
| 233 | those countries, so that distribution is permitted only in or among | ||
| 234 | countries not thus excluded. In such case, this License incorporates | ||
| 235 | the limitation as if written in the body of this License. | ||
| 236 | |||
| 237 | 9. The Free Software Foundation may publish revised and/or new versions | ||
| 238 | of the General Public License from time to time. Such new versions will | ||
| 239 | be similar in spirit to the present version, but may differ in detail to | ||
| 240 | address new problems or concerns. | ||
| 241 | |||
| 242 | Each version is given a distinguishing version number. If the Program | ||
| 243 | specifies a version number of this License which applies to it and "any | ||
| 244 | later version", you have the option of following the terms and conditions | ||
| 245 | either of that version or of any later version published by the Free | ||
| 246 | Software Foundation. If the Program does not specify a version number of | ||
| 247 | this License, you may choose any version ever published by the Free Software | ||
| 248 | Foundation. | ||
| 249 | |||
| 250 | 10. If you wish to incorporate parts of the Program into other free | ||
| 251 | programs whose distribution conditions are different, write to the author | ||
| 252 | to ask for permission. For software which is copyrighted by the Free | ||
| 253 | Software Foundation, write to the Free Software Foundation; we sometimes | ||
| 254 | make exceptions for this. Our decision will be guided by the two goals | ||
| 255 | of preserving the free status of all derivatives of our free software and | ||
| 256 | of promoting the sharing and reuse of software generally. | ||
| 257 | |||
| 258 | NO WARRANTY | ||
| 259 | |||
| 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY | ||
| 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN | ||
| 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES | ||
| 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED | ||
| 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
| 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS | ||
| 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE | ||
| 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, | ||
| 268 | REPAIR OR CORRECTION. | ||
| 269 | |||
| 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | ||
| 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR | ||
| 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, | ||
| 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING | ||
| 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED | ||
| 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY | ||
| 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER | ||
| 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE | ||
| 278 | POSSIBILITY OF SUCH DAMAGES. | ||
| 279 | |||
| 280 | END OF TERMS AND CONDITIONS | ||
| 281 | |||
| 282 | How to Apply These Terms to Your New Programs | ||
| 283 | |||
| 284 | If you develop a new program, and you want it to be of the greatest | ||
| 285 | possible use to the public, the best way to achieve this is to make it | ||
| 286 | free software which everyone can redistribute and change under these terms. | ||
| 287 | |||
| 288 | To do so, attach the following notices to the program. It is safest | ||
| 289 | to attach them to the start of each source file to most effectively | ||
| 290 | convey the exclusion of warranty; and each file should have at least | ||
| 291 | the "copyright" line and a pointer to where the full notice is found. | ||
| 292 | |||
| 293 | <one line to give the program's name and a brief idea of what it does.> | ||
| 294 | Copyright (C) 19yy <name of author> | ||
| 295 | |||
| 296 | This program is free software; you can redistribute it and/or modify | ||
| 297 | it under the terms of the GNU General Public License as published by | ||
| 298 | the Free Software Foundation; either version 2 of the License, or | ||
| 299 | (at your option) any later version. | ||
| 300 | |||
| 301 | This program is distributed in the hope that it will be useful, | ||
| 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 304 | GNU General Public License for more details. | ||
| 305 | |||
| 306 | You should have received a copy of the GNU General Public License | ||
| 307 | along with this program; if not, write to the Free Software | ||
| 308 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 309 | |||
| 310 | |||
| 311 | Also add information on how to contact you by electronic and paper mail. | ||
| 312 | |||
| 313 | If the program is interactive, make it output a short notice like this | ||
| 314 | when it starts in an interactive mode: | ||
| 315 | |||
| 316 | Gnomovision version 69, Copyright (C) 19yy name of author | ||
| 317 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | ||
| 318 | This is free software, and you are welcome to redistribute it | ||
| 319 | under certain conditions; type `show c' for details. | ||
| 320 | |||
| 321 | The hypothetical commands `show w' and `show c' should show the appropriate | ||
| 322 | parts of the General Public License. Of course, the commands you use may | ||
| 323 | be called something other than `show w' and `show c'; they could even be | ||
| 324 | mouse-clicks or menu items--whatever suits your program. | ||
| 325 | |||
| 326 | You should also get your employer (if you work as a programmer) or your | ||
| 327 | school, if any, to sign a "copyright disclaimer" for the program, if | ||
| 328 | necessary. Here is a sample; alter the names: | ||
| 329 | |||
| 330 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program | ||
| 331 | `Gnomovision' (which makes passes at compilers) written by James Hacker. | ||
| 332 | |||
| 333 | <signature of Ty Coon>, 1 April 1989 | ||
| 334 | Ty Coon, President of Vice | ||
| 335 | |||
| 336 | This General Public License does not permit incorporating your program into | ||
| 337 | proprietary programs. If your program is a subroutine library, you may | ||
| 338 | consider it more useful to permit linking proprietary applications with the | ||
| 339 | library. If this is what you want to do, use the GNU Library General | ||
| 340 | Public License instead of this License. | ||
diff --git a/MIB/.index b/MIB/.index new file mode 100644 index 0000000..5c7c628 --- /dev/null +++ b/MIB/.index | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | NAGIOS-NOTIFY-MIB NAGIOS-NOTIFY-MIB | ||
| 2 | NAGIOS-ROOT-MIB NAGIOS-ROOT-MIB | ||
diff --git a/MIB/NAGIOS-NOTIFY-MIB b/MIB/NAGIOS-NOTIFY-MIB new file mode 100644 index 0000000..a6bfceb --- /dev/null +++ b/MIB/NAGIOS-NOTIFY-MIB | |||
| @@ -0,0 +1,620 @@ | |||
| 1 | NAGIOS-NOTIFY-MIB DEFINITIONS ::= BEGIN | ||
| 2 | IMPORTS | ||
| 3 | MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE, | ||
| 4 | Integer32 | ||
| 5 | FROM SNMPv2-SMI | ||
| 6 | nagios,NotifyType,HostStateID,HostStateType,ServiceStateID | ||
| 7 | FROM NAGIOS-ROOT-MIB; | ||
| 8 | |||
| 9 | nagiosNotify MODULE-IDENTITY | ||
| 10 | LAST-UPDATED "200503090000Z" -- March 9, 2005 | ||
| 11 | ORGANIZATION "Nagios" | ||
| 12 | CONTACT-INFO | ||
| 13 | " Subhendu Ghosh | ||
| 14 | |||
| 15 | Telephone: +1 201 232 2851 | ||
| 16 | Email: sghosh@users.sourceforge.net | ||
| 17 | |||
| 18 | Nagios Information: | ||
| 19 | http://www.nagios.org | ||
| 20 | " | ||
| 21 | DESCRIPTION | ||
| 22 | "Objects for Nagios(tm) events. There are 2 primary tables | ||
| 23 | reflecting the division in Nagios for Host events and | ||
| 24 | Service events. | ||
| 25 | |||
| 26 | The event tables are extended by the HostNotifyTable and the | ||
| 27 | ServiceNotifyTable to keep track of the notifications based on events. | ||
| 28 | |||
| 29 | The tables entries themselves are not accessible but are used for OID | ||
| 30 | entries for TRAP/INFORM notifications. | ||
| 31 | |||
| 32 | These objects are based on the macros defined in Nagios v2.0 | ||
| 33 | " | ||
| 34 | REVISION "200503090000Z" -- March 9, 2005 | ||
| 35 | DESCRIPTION | ||
| 36 | "Spell check" | ||
| 37 | REVISION "200501200000Z" --January 20, 2005 | ||
| 38 | DESCRIPTION | ||
| 39 | "Initial Version" | ||
| 40 | ::= { nagios 1 } | ||
| 41 | |||
| 42 | |||
| 43 | nagiosHostEventTable OBJECT-TYPE | ||
| 44 | SYNTAX SEQUENCE OF HostEventEntry | ||
| 45 | MAX-ACCESS not-accessible | ||
| 46 | STATUS current | ||
| 47 | DESCRIPTION | ||
| 48 | "Table of Nagios host events" | ||
| 49 | ::= { nagiosNotify 1 } | ||
| 50 | |||
| 51 | HostEventEntry ::= SEQUENCE { | ||
| 52 | nHostEventIndex Integer32, | ||
| 53 | nHostname OCTET STRING, | ||
| 54 | nHostAlias OCTET STRING, | ||
| 55 | nHostStateID HostStateID, | ||
| 56 | nHostStateType HostStateType, | ||
| 57 | nHostAttempt Integer32, | ||
| 58 | nHostDurationSec Integer32, | ||
| 59 | nHostGroupName OCTET STRING, | ||
| 60 | nHostLastCheck INTEGER, | ||
| 61 | nHostLastChange INTEGER, | ||
| 62 | nHostLastUp INTEGER, | ||
| 63 | nHostLastDown INTEGER, | ||
| 64 | nHostLastUnreachable INTEGER, | ||
| 65 | nHostOutput OCTET STRING, | ||
| 66 | nHostPerfData OCTET STRING | ||
| 67 | } | ||
| 68 | |||
| 69 | nagiosHostEventEntry OBJECT-TYPE | ||
| 70 | SYNTAX HostEventEntry | ||
| 71 | MAX-ACCESS not-accessible | ||
| 72 | STATUS current | ||
| 73 | DESCRIPTION | ||
| 74 | "Each notification event" | ||
| 75 | INDEX { nHostEventIndex } | ||
| 76 | ::= { nagiosHostEventTable 1 } | ||
| 77 | |||
| 78 | nHostEventIndex OBJECT-TYPE | ||
| 79 | SYNTAX Integer32 (1..65535) | ||
| 80 | MAX-ACCESS not-accessible | ||
| 81 | STATUS current | ||
| 82 | DESCRIPTION | ||
| 83 | "This object uniquely identifies this host event entry. It is generated | ||
| 84 | by the SNMP application and is not related to any Nagios data." | ||
| 85 | ::= { nagiosHostEventEntry 1 } | ||
| 86 | |||
| 87 | nHostname OBJECT-TYPE | ||
| 88 | SYNTAX OCTET STRING | ||
| 89 | MAX-ACCESS read-only | ||
| 90 | STATUS current | ||
| 91 | DESCRIPTION | ||
| 92 | "Hostname as specified in the Nagios configuration file." | ||
| 93 | ::= { nagiosHostEventEntry 2 } | ||
| 94 | |||
| 95 | nHostAlias OBJECT-TYPE | ||
| 96 | SYNTAX OCTET STRING | ||
| 97 | MAX-ACCESS read-only | ||
| 98 | STATUS current | ||
| 99 | DESCRIPTION | ||
| 100 | "The host alias as specified in the Nagios configuration file" | ||
| 101 | ::= { nagiosHostEventEntry 3 } | ||
| 102 | |||
| 103 | nHostStateID OBJECT-TYPE | ||
| 104 | SYNTAX HostStateID | ||
| 105 | MAX-ACCESS read-only | ||
| 106 | STATUS current | ||
| 107 | DESCRIPTION | ||
| 108 | "The host state as defined by the HOSTSTATEID macro" | ||
| 109 | ::= { nagiosHostEventEntry 4 } | ||
| 110 | |||
| 111 | nHostStateType OBJECT-TYPE | ||
| 112 | SYNTAX HostStateType | ||
| 113 | MAX-ACCESS read-only | ||
| 114 | STATUS current | ||
| 115 | DESCRIPTION | ||
| 116 | "The host state as defined by the HOSTSTATETYPE macro" | ||
| 117 | ::= { nagiosHostEventEntry 5 } | ||
| 118 | |||
| 119 | nHostAttempt OBJECT-TYPE | ||
| 120 | SYNTAX Integer32 | ||
| 121 | MAX-ACCESS read-only | ||
| 122 | STATUS current | ||
| 123 | DESCRIPTION | ||
| 124 | "The number of the current host check retry. For instance, if this is the | ||
| 125 | second time that the host is being rechecked, this will be the number two. | ||
| 126 | Current attempt number is really only useful when writing host event | ||
| 127 | handlers for soft states that take a specific action based on the host retry | ||
| 128 | number. The host state as defined by the HOSTSTATEID macro" | ||
| 129 | ::= { nagiosHostEventEntry 6 } | ||
| 130 | |||
| 131 | nHostDurationSec OBJECT-TYPE | ||
| 132 | SYNTAX Integer32 | ||
| 133 | MAX-ACCESS read-only | ||
| 134 | STATUS current | ||
| 135 | DESCRIPTION | ||
| 136 | "A number indicating the number of seconds that the host has spent in its | ||
| 137 | current state" | ||
| 138 | ::= { nagiosHostEventEntry 7 } | ||
| 139 | |||
| 140 | nHostGroupName OBJECT-TYPE | ||
| 141 | SYNTAX OCTET STRING | ||
| 142 | MAX-ACCESS read-only | ||
| 143 | STATUS current | ||
| 144 | DESCRIPTION | ||
| 145 | "The short name of the hostgroup that this host belongs to. This value is | ||
| 146 | taken from the hostgroup_name directive in the hostgroup definition. If the | ||
| 147 | host belongs to more than one hostgroup this macro will contain the name of | ||
| 148 | just one of them." | ||
| 149 | ::= { nagiosHostEventEntry 8 } | ||
| 150 | |||
| 151 | nHostLastCheck OBJECT-TYPE | ||
| 152 | SYNTAX INTEGER | ||
| 153 | MAX-ACCESS read-only | ||
| 154 | STATUS current | ||
| 155 | DESCRIPTION | ||
| 156 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
| 157 | indicating the time at which a check of the host was last performed." | ||
| 158 | ::= { nagiosHostEventEntry 9 } | ||
| 159 | |||
| 160 | nHostLastChange OBJECT-TYPE | ||
| 161 | SYNTAX INTEGER | ||
| 162 | MAX-ACCESS read-only | ||
| 163 | STATUS current | ||
| 164 | DESCRIPTION | ||
| 165 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
| 166 | indicating the time the host last changed state." | ||
| 167 | ::= { nagiosHostEventEntry 10 } | ||
| 168 | |||
| 169 | nHostLastUp OBJECT-TYPE | ||
| 170 | SYNTAX INTEGER | ||
| 171 | MAX-ACCESS read-only | ||
| 172 | STATUS current | ||
| 173 | DESCRIPTION | ||
| 174 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
| 175 | indicating the time at which the host was last detected as being in an UP | ||
| 176 | state." | ||
| 177 | ::= { nagiosHostEventEntry 11 } | ||
| 178 | |||
| 179 | nHostLastDown OBJECT-TYPE | ||
| 180 | SYNTAX INTEGER | ||
| 181 | MAX-ACCESS read-only | ||
| 182 | STATUS current | ||
| 183 | DESCRIPTION | ||
| 184 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
| 185 | indicating the time at which the host was last detected as being in an | ||
| 186 | DOWN state." | ||
| 187 | ::= { nagiosHostEventEntry 12 } | ||
| 188 | |||
| 189 | nHostLastUnreachable OBJECT-TYPE | ||
| 190 | SYNTAX INTEGER | ||
| 191 | MAX-ACCESS read-only | ||
| 192 | STATUS current | ||
| 193 | DESCRIPTION | ||
| 194 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
| 195 | indicating the time at which the host was last detected as being in an | ||
| 196 | UNREACHABLE state." | ||
| 197 | ::= { nagiosHostEventEntry 13 } | ||
| 198 | |||
| 199 | nHostOutput OBJECT-TYPE | ||
| 200 | SYNTAX OCTET STRING | ||
| 201 | MAX-ACCESS read-only | ||
| 202 | STATUS current | ||
| 203 | DESCRIPTION | ||
| 204 | "The text output from the last host check (i.e. Ping OK)." | ||
| 205 | ::= { nagiosHostEventEntry 14 } | ||
| 206 | |||
| 207 | nHostPerfData OBJECT-TYPE | ||
| 208 | SYNTAX OCTET STRING | ||
| 209 | MAX-ACCESS read-only | ||
| 210 | STATUS current | ||
| 211 | DESCRIPTION | ||
| 212 | "This object contains any performance data that may have been returned | ||
| 213 | by the last host check." | ||
| 214 | ::= { nagiosHostEventEntry 15 } | ||
| 215 | |||
| 216 | |||
| 217 | |||
| 218 | -- | ||
| 219 | -- Host Notifications | ||
| 220 | |||
| 221 | nagiosHostNotifyTable OBJECT-TYPE | ||
| 222 | SYNTAX SEQUENCE OF HostNotifyEntry | ||
| 223 | MAX-ACCESS not-accessible | ||
| 224 | STATUS current | ||
| 225 | DESCRIPTION | ||
| 226 | "Table of Nagios host notifications" | ||
| 227 | ::= {nagiosNotify 2} | ||
| 228 | |||
| 229 | HostNotifyEntry ::= SEQUENCE { | ||
| 230 | nHostNotifyType NotifyType, | ||
| 231 | nHostNotifyNum Integer32, | ||
| 232 | nHostAckAuthor OCTET STRING, | ||
| 233 | nHostAckComment OCTET STRING | ||
| 234 | } | ||
| 235 | |||
| 236 | nagiosHostNotifyEntry OBJECT-TYPE | ||
| 237 | SYNTAX HostNotifyEntry | ||
| 238 | MAX-ACCESS not-accessible | ||
| 239 | STATUS current | ||
| 240 | DESCRIPTION | ||
| 241 | "Nagios host notifications extends the nagiosHostEventTable when a | ||
| 242 | notification is generated for an event." | ||
| 243 | INDEX { nHostEventIndex } | ||
| 244 | ::= { nagiosHostNotifyTable 1 } | ||
| 245 | |||
| 246 | nHostNotifyType OBJECT-TYPE | ||
| 247 | SYNTAX NotifyType | ||
| 248 | MAX-ACCESS read-only | ||
| 249 | STATUS current | ||
| 250 | DESCRIPTION | ||
| 251 | "This identifies the type of notification that is being sent | ||
| 252 | (PROBLEM, RECOVERY, ACKNOWLEDGEMENT, FLAPPINGSTART or FLAPPINGSTOP)" | ||
| 253 | ::= { nagiosHostNotifyEntry 1 } | ||
| 254 | |||
| 255 | nHostNotifyNum OBJECT-TYPE | ||
| 256 | SYNTAX NotifyType | ||
| 257 | MAX-ACCESS read-only | ||
| 258 | STATUS current | ||
| 259 | DESCRIPTION | ||
| 260 | "This identifies the current notification number for the service or host. | ||
| 261 | The notification number increases by one (1) each time a new notification | ||
| 262 | is sent out for a host or service (except for acknowledgements). The | ||
| 263 | notification number is reset to 0 when the host or service recovers | ||
| 264 | (after the recovery notification has gone out). Acknowledgements do not | ||
| 265 | cause the notification number to increase." | ||
| 266 | ::= { nagiosHostNotifyEntry 2 } | ||
| 267 | |||
| 268 | nHostAckAuthor OBJECT-TYPE | ||
| 269 | SYNTAX OCTET STRING | ||
| 270 | MAX-ACCESS read-only | ||
| 271 | STATUS current | ||
| 272 | DESCRIPTION | ||
| 273 | "A string containing the name of the user who acknowledged the host | ||
| 274 | problem. This macro is only valid in notifications where the | ||
| 275 | $NOTIFICATIONTYPE$ macro is set to ACKNOWLEDGEMENT." | ||
| 276 | ::= { nagiosHostNotifyEntry 3 } | ||
| 277 | |||
| 278 | nHostAckComment OBJECT-TYPE | ||
| 279 | SYNTAX OCTET STRING | ||
| 280 | MAX-ACCESS read-only | ||
| 281 | STATUS current | ||
| 282 | DESCRIPTION | ||
| 283 | "A string containing the acknowledgement comment that was entered by | ||
| 284 | the user who acknowledged the host problem. This macro is only valid | ||
| 285 | in notifications where the $NOTIFICATIONTYPE$ macro is set to ACKNOWLEDGEMENT" | ||
| 286 | ::= { nagiosHostNotifyEntry 4 } | ||
| 287 | |||
| 288 | |||
| 289 | -- | ||
| 290 | -- Service Events | ||
| 291 | -- | ||
| 292 | |||
| 293 | |||
| 294 | nagiosSvcEventTable OBJECT-TYPE | ||
| 295 | SYNTAX SEQUENCE OF SvcEventEntry | ||
| 296 | MAX-ACCESS not-accessible | ||
| 297 | STATUS current | ||
| 298 | DESCRIPTION | ||
| 299 | "Table of Nagios service notifications" | ||
| 300 | ::= { nagiosNotify 3 } | ||
| 301 | |||
| 302 | SvcEventEntry ::= SEQUENCE { | ||
| 303 | nSvcEventIndex Integer32, | ||
| 304 | nSvcHostname OCTET STRING, | ||
| 305 | nSvcHostAlias OCTET STRING, | ||
| 306 | nSvcHostStateID HostStateID, | ||
| 307 | nSvcHostStateType HostStateType, | ||
| 308 | nSvcDesc OCTET STRING, | ||
| 309 | nSvcStateID ServiceStateID, | ||
| 310 | nSvcAttempt Integer32, | ||
| 311 | nSvcDurationSec Integer32, | ||
| 312 | nSvcGroupName OCTET STRING, | ||
| 313 | nSvcLastCheck INTEGER, | ||
| 314 | nSvcLastChange INTEGER, | ||
| 315 | nSvcLastOK INTEGER, | ||
| 316 | nSvcLastWarn INTEGER, | ||
| 317 | nSvcLastCrit INTEGER, | ||
| 318 | nSvcLastUnkn INTEGER, | ||
| 319 | nSvcOutput OCTET STRING, | ||
| 320 | nSvcPerfData OCTET STRING | ||
| 321 | } | ||
| 322 | |||
| 323 | nagiosSvcEventEntry OBJECT-TYPE | ||
| 324 | SYNTAX SvcEventEntry | ||
| 325 | MAX-ACCESS not-accessible | ||
| 326 | STATUS current | ||
| 327 | DESCRIPTION | ||
| 328 | "Table of Nagios service events." | ||
| 329 | INDEX { nSvcEventIndex } | ||
| 330 | ::= { nagiosSvcEventTable 1 } | ||
| 331 | |||
| 332 | nSvcEventIndex OBJECT-TYPE | ||
| 333 | SYNTAX Integer32 (1..65535) | ||
| 334 | MAX-ACCESS not-accessible | ||
| 335 | STATUS current | ||
| 336 | DESCRIPTION | ||
| 337 | "This object uniquely identifies this service event entry" | ||
| 338 | ::= { nagiosSvcEventEntry 1 } | ||
| 339 | |||
| 340 | nSvcHostname OBJECT-TYPE | ||
| 341 | SYNTAX OCTET STRING | ||
| 342 | MAX-ACCESS read-only | ||
| 343 | STATUS current | ||
| 344 | DESCRIPTION | ||
| 345 | "Hostname as specified in the Nagios configuration file." | ||
| 346 | ::= { nagiosSvcEventEntry 2 } | ||
| 347 | |||
| 348 | nSvcHostAlias OBJECT-TYPE | ||
| 349 | SYNTAX OCTET STRING | ||
| 350 | MAX-ACCESS read-only | ||
| 351 | STATUS current | ||
| 352 | DESCRIPTION | ||
| 353 | "The host alias as specified in the Nagios configuration file" | ||
| 354 | ::= { nagiosSvcEventEntry 3 } | ||
| 355 | |||
| 356 | nSvcHostStateID OBJECT-TYPE | ||
| 357 | SYNTAX HostStateID | ||
| 358 | MAX-ACCESS read-only | ||
| 359 | STATUS current | ||
| 360 | DESCRIPTION | ||
| 361 | "A number that corresponds to the current state of the service: 0=OK, | ||
| 362 | 1=WARNING, 2=CRITICAL, 3=UNKNOWN." | ||
| 363 | ::= { nagiosSvcEventEntry 4 } | ||
| 364 | |||
| 365 | nSvcHostStateType OBJECT-TYPE | ||
| 366 | SYNTAX HostStateType | ||
| 367 | MAX-ACCESS read-only | ||
| 368 | STATUS current | ||
| 369 | DESCRIPTION | ||
| 370 | "Whether the host is in a hard or soft state." | ||
| 371 | ::= { nagiosSvcEventEntry 5 } | ||
| 372 | |||
| 373 | nSvcDesc OBJECT-TYPE | ||
| 374 | SYNTAX OCTET STRING | ||
| 375 | MAX-ACCESS read-only | ||
| 376 | STATUS current | ||
| 377 | DESCRIPTION | ||
| 378 | "This value is taken from the description directive of the service | ||
| 379 | definition." | ||
| 380 | ::= { nagiosSvcEventEntry 6 } | ||
| 381 | |||
| 382 | nSvcStateID OBJECT-TYPE | ||
| 383 | SYNTAX ServiceStateID | ||
| 384 | MAX-ACCESS read-only | ||
| 385 | STATUS current | ||
| 386 | DESCRIPTION | ||
| 387 | " A number that corresponds to the current state of the service: 0=OK, | ||
| 388 | 1=WARNING, 2=CRITICAL, 3=UNKNOWN" | ||
| 389 | ::= { nagiosSvcEventEntry 7 } | ||
| 390 | |||
| 391 | nSvcAttempt OBJECT-TYPE | ||
| 392 | SYNTAX Integer32 | ||
| 393 | MAX-ACCESS read-only | ||
| 394 | STATUS current | ||
| 395 | DESCRIPTION | ||
| 396 | "The number of the current service check retry. For instance, if this is | ||
| 397 | the second time that the service is being rechecked, this will be the | ||
| 398 | number two. Current attempt number is really only useful when writing | ||
| 399 | service event handlers for soft states that take a specific action based | ||
| 400 | on the service retry number." | ||
| 401 | ::= { nagiosSvcEventEntry 8 } | ||
| 402 | |||
| 403 | nSvcDurationSec OBJECT-TYPE | ||
| 404 | SYNTAX Integer32 | ||
| 405 | MAX-ACCESS read-only | ||
| 406 | STATUS current | ||
| 407 | DESCRIPTION | ||
| 408 | "A number indicating the number of seconds that the service has spent in | ||
| 409 | its current state." | ||
| 410 | ::= { nagiosSvcEventEntry 9 } | ||
| 411 | |||
| 412 | nSvcGroupName OBJECT-TYPE | ||
| 413 | SYNTAX OCTET STRING | ||
| 414 | MAX-ACCESS read-only | ||
| 415 | STATUS current | ||
| 416 | DESCRIPTION | ||
| 417 | "The short name of the servicegroup that this service belongs to. This | ||
| 418 | value is taken from the servicegroup_name directive in the servicegroup | ||
| 419 | definition. If the service belongs to more than one servicegroup this | ||
| 420 | object will contain the name of just one of them." | ||
| 421 | ::= { nagiosSvcEventEntry 10 } | ||
| 422 | |||
| 423 | nSvcLastCheck OBJECT-TYPE | ||
| 424 | SYNTAX INTEGER | ||
| 425 | MAX-ACCESS read-only | ||
| 426 | STATUS current | ||
| 427 | DESCRIPTION | ||
| 428 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
| 429 | indicating the time at which a check of the service was last performed." | ||
| 430 | ::= { nagiosSvcEventEntry 11 } | ||
| 431 | |||
| 432 | nSvcLastChange OBJECT-TYPE | ||
| 433 | SYNTAX INTEGER | ||
| 434 | MAX-ACCESS read-only | ||
| 435 | STATUS current | ||
| 436 | DESCRIPTION | ||
| 437 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
| 438 | indicating the time the service last changed state." | ||
| 439 | ::= { nagiosSvcEventEntry 12 } | ||
| 440 | |||
| 441 | nSvcLastOK OBJECT-TYPE | ||
| 442 | SYNTAX INTEGER | ||
| 443 | MAX-ACCESS read-only | ||
| 444 | STATUS current | ||
| 445 | DESCRIPTION | ||
| 446 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
| 447 | indicating the time at which the service was last detected as being in an | ||
| 448 | OK state." | ||
| 449 | ::= { nagiosSvcEventEntry 13 } | ||
| 450 | |||
| 451 | nSvcLastWarn OBJECT-TYPE | ||
| 452 | SYNTAX INTEGER | ||
| 453 | MAX-ACCESS read-only | ||
| 454 | STATUS current | ||
| 455 | DESCRIPTION | ||
| 456 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
| 457 | indicating the time at which the service was last detected as being in a | ||
| 458 | WARNING state." | ||
| 459 | ::= { nagiosSvcEventEntry 14 } | ||
| 460 | |||
| 461 | nSvcLastCrit OBJECT-TYPE | ||
| 462 | SYNTAX INTEGER | ||
| 463 | MAX-ACCESS read-only | ||
| 464 | STATUS current | ||
| 465 | DESCRIPTION | ||
| 466 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
| 467 | indicating the time at which the service was last detected as being in a | ||
| 468 | CRITICAL state." | ||
| 469 | ::= { nagiosSvcEventEntry 15 } | ||
| 470 | |||
| 471 | nSvcLastUnkn OBJECT-TYPE | ||
| 472 | SYNTAX INTEGER | ||
| 473 | MAX-ACCESS read-only | ||
| 474 | STATUS current | ||
| 475 | DESCRIPTION | ||
| 476 | "This is a timestamp in time_t format (seconds since the UNIX epoch) | ||
| 477 | indicating the time at which the service was last detected as being in an | ||
| 478 | UNKNOWN state." | ||
| 479 | ::= { nagiosSvcEventEntry 16 } | ||
| 480 | |||
| 481 | nSvcOutput OBJECT-TYPE | ||
| 482 | SYNTAX OCTET STRING | ||
| 483 | MAX-ACCESS read-only | ||
| 484 | STATUS current | ||
| 485 | DESCRIPTION | ||
| 486 | "The text output from the last service check (i.e. Ping OK)." | ||
| 487 | ::= { nagiosSvcEventEntry 17 } | ||
| 488 | |||
| 489 | nSvcPerfData OBJECT-TYPE | ||
| 490 | SYNTAX OCTET STRING | ||
| 491 | MAX-ACCESS read-only | ||
| 492 | STATUS current | ||
| 493 | DESCRIPTION | ||
| 494 | "This object contains any performance data that may have been returned by | ||
| 495 | the last service check." | ||
| 496 | ::= { nagiosSvcEventEntry 18 } | ||
| 497 | |||
| 498 | |||
| 499 | -- | ||
| 500 | -- Service Notifications | ||
| 501 | -- | ||
| 502 | |||
| 503 | nagiosSvcNotifyTable OBJECT-TYPE | ||
| 504 | SYNTAX SEQUENCE OF SvcNotifyEntry | ||
| 505 | MAX-ACCESS not-accessible | ||
| 506 | STATUS current | ||
| 507 | DESCRIPTION | ||
| 508 | "Table of Nagios service notifications." | ||
| 509 | ::= { nagiosNotify 4 } | ||
| 510 | |||
| 511 | SvcNotifyEntry ::= SEQUENCE { | ||
| 512 | nSvcNotifyType NotifyType, | ||
| 513 | nSvcNotifyNum Integer32, | ||
| 514 | nSvcAckAuthor OCTET STRING, | ||
| 515 | nSvcAckComment OCTET STRING | ||
| 516 | } | ||
| 517 | |||
| 518 | nagiosSvcNotifyEntry OBJECT-TYPE | ||
| 519 | SYNTAX SvcNotifyEntry | ||
| 520 | MAX-ACCESS not-accessible | ||
| 521 | STATUS current | ||
| 522 | DESCRIPTION | ||
| 523 | "Nagios service notifications extends the nagiosSvcEnevtsTable when | ||
| 524 | a notification is generated for an event." | ||
| 525 | INDEX { nSvcEventIndex } | ||
| 526 | ::= { nagiosSvcNotifyTable 1} | ||
| 527 | |||
| 528 | |||
| 529 | nSvcNotifyType OBJECT-TYPE | ||
| 530 | SYNTAX NotifyType | ||
| 531 | MAX-ACCESS read-only | ||
| 532 | STATUS current | ||
| 533 | DESCRIPTION | ||
| 534 | "A string identifying the type of notification that is being sent | ||
| 535 | (PROBLEM, RECOVERY, ACKNOWLEDGEMENT, FLAPPINGSTART or FLAPPINGSTOP)." | ||
| 536 | ::= { nagiosSvcNotifyEntry 1 } | ||
| 537 | |||
| 538 | nSvcNotifyNum OBJECT-TYPE | ||
| 539 | SYNTAX Integer32 | ||
| 540 | MAX-ACCESS read-only | ||
| 541 | STATUS current | ||
| 542 | DESCRIPTION | ||
| 543 | "The current notification number for the service or host. The notification | ||
| 544 | number increases by one (1) each time a new notification is sent out for a | ||
| 545 | host or service (except for acknowledgements). The notification number is | ||
| 546 | reset to 0 when the host or service recovers (after the recovery | ||
| 547 | notification has gone out). Acknowledgements do not cause the notification | ||
| 548 | number to increase." | ||
| 549 | ::= { nagiosSvcNotifyEntry 2 } | ||
| 550 | |||
| 551 | nSvcAckAuthor OBJECT-TYPE | ||
| 552 | SYNTAX OCTET STRING | ||
| 553 | MAX-ACCESS read-only | ||
| 554 | STATUS current | ||
| 555 | DESCRIPTION | ||
| 556 | "A string containing the name of the user who acknowledged the service | ||
| 557 | problem. This object is only valid in notifications where the | ||
| 558 | nSvcNotifyType object is set to ACKNOWLEDGEMENT." | ||
| 559 | ::= { nagiosSvcNotifyEntry 3 } | ||
| 560 | |||
| 561 | nSvcAckComment OBJECT-TYPE | ||
| 562 | SYNTAX OCTET STRING | ||
| 563 | MAX-ACCESS read-only | ||
| 564 | STATUS current | ||
| 565 | DESCRIPTION | ||
| 566 | "A string containing the acknowledgement comment that was entered by the | ||
| 567 | user who acknowledged the service problem. This object is only valid in | ||
| 568 | notifications where the nSvcNotifyType object is set to ACKNOWLEDGEMENT." | ||
| 569 | ::= { nagiosSvcNotifyEntry 4 } | ||
| 570 | |||
| 571 | |||
| 572 | -- | ||
| 573 | -- Events and Notifications | ||
| 574 | -- | ||
| 575 | |||
| 576 | nHostEvent NOTIFICATION-TYPE | ||
| 577 | OBJECTS { nHostname, nHostStateID, nHostStateType, nHostAttempt, | ||
| 578 | nHostDurationSec, nHostGroupName, nHostLastCheck, nHostLastChange, | ||
| 579 | nHostOutput } | ||
| 580 | STATUS current | ||
| 581 | DESCRIPTION | ||
| 582 | "The SNMP trap that is generated as a result of an event with the host | ||
| 583 | in Nagios." | ||
| 584 | |||
| 585 | ::= { nagiosNotify 5 } | ||
| 586 | |||
| 587 | nHostNotify NOTIFICATION-TYPE | ||
| 588 | OBJECTS { nHostNotifyType, nHostNotifyNum, nHostAckAuthor, nHostAckComment, | ||
| 589 | nHostname, nHostStateID, nHostStateType, nHostAttempt, | ||
| 590 | nHostDurationSec, nHostGroupName, nHostLastCheck, nHostLastChange, | ||
| 591 | nHostOutput } | ||
| 592 | STATUS current | ||
| 593 | DESCRIPTION | ||
| 594 | "The SNMP trap that is generated as a result of an event requiring | ||
| 595 | notification for a host in Nagios." | ||
| 596 | ::= { nagiosNotify 6 } | ||
| 597 | |||
| 598 | nSvcEvent NOTIFICATION-TYPE | ||
| 599 | OBJECTS { nHostname, nHostStateID, nSvcDesc, nSvcStateID, nSvcAttempt, | ||
| 600 | nSvcDurationSec, nSvcGroupName, nSvcLastCheck, nSvcLastChange, | ||
| 601 | nSvcOutput } | ||
| 602 | STATUS current | ||
| 603 | DESCRIPTION | ||
| 604 | "The SNMP trap that is generated as a result of an event with the service | ||
| 605 | in Nagios." | ||
| 606 | ::= { nagiosNotify 7 } | ||
| 607 | |||
| 608 | nSvcNotify NOTIFICATION-TYPE | ||
| 609 | OBJECTS { nSvcNotifyType, nSvcNotifyNum, nSvcAckAuthor, nSvcAckComment, | ||
| 610 | nHostname, nHostStateID, nSvcDesc, nSvcStateID, nSvcAttempt, | ||
| 611 | nSvcDurationSec, nSvcGroupName, nSvcLastCheck, nSvcLastChange, | ||
| 612 | nSvcOutput } | ||
| 613 | STATUS current | ||
| 614 | DESCRIPTION | ||
| 615 | "The SNMP trap that is generated as a result of an event requiring | ||
| 616 | notification for a service in Nagios." | ||
| 617 | ::= { nagiosNotify 8 } | ||
| 618 | |||
| 619 | |||
| 620 | END | ||
diff --git a/MIB/NAGIOS-ROOT-MIB b/MIB/NAGIOS-ROOT-MIB new file mode 100644 index 0000000..1aa88eb --- /dev/null +++ b/MIB/NAGIOS-ROOT-MIB | |||
| @@ -0,0 +1,86 @@ | |||
| 1 | NAGIOS-ROOT-MIB DEFINITIONS ::= BEGIN | ||
| 2 | IMPORTS | ||
| 3 | MODULE-IDENTITY, enterprises | ||
| 4 | FROM SNMPv2-SMI | ||
| 5 | TEXTUAL-CONVENTION | ||
| 6 | FROM SNMPv2-TC; | ||
| 7 | |||
| 8 | |||
| 9 | nagios MODULE-IDENTITY | ||
| 10 | LAST-UPDATED "200503090000Z" -- March 9, 2005 | ||
| 11 | ORGANIZATION "Nagios" | ||
| 12 | CONTACT-INFO | ||
| 13 | " Subhendu Ghosh | ||
| 14 | |||
| 15 | Telephone: +1 201 232 2851 | ||
| 16 | Email: sghosh@users.sourceforge.net | ||
| 17 | |||
| 18 | Nagios Information: | ||
| 19 | http://www.nagios.org | ||
| 20 | " | ||
| 21 | DESCRIPTION | ||
| 22 | "Objects for Nagios(tm) NMS" | ||
| 23 | REVISION "200503090000Z" -- March 9, 2005 | ||
| 24 | DESCRIPTION | ||
| 25 | "Spell check" | ||
| 26 | REVISION "200501200000Z" --January 20, 2005 | ||
| 27 | DESCRIPTION | ||
| 28 | "Initial Version" | ||
| 29 | ::= {enterprises 20006} | ||
| 30 | |||
| 31 | -- | ||
| 32 | -- Textual Conventions | ||
| 33 | -- | ||
| 34 | |||
| 35 | NotifyType ::= TEXTUAL-CONVENTION | ||
| 36 | STATUS current | ||
| 37 | DESCRIPTION | ||
| 38 | "A string identifying the type of notification that is being sent | ||
| 39 | (PROBLEM, RECOVERY, ACKNOWLEDGEMENT, FLAPPINGSTART or FLAPPINGSTOP). | ||
| 40 | " | ||
| 41 | SYNTAX INTEGER { | ||
| 42 | problem(0), | ||
| 43 | recovery(1), | ||
| 44 | acknowledgement(2), | ||
| 45 | flappingstart(3), | ||
| 46 | flappingstop(4) | ||
| 47 | } | ||
| 48 | |||
| 49 | HostStateID ::= TEXTUAL-CONVENTION | ||
| 50 | STATUS current | ||
| 51 | DESCRIPTION | ||
| 52 | "A number that corresponds to the current state of the host: 0=UP, 1=DOWN, | ||
| 53 | 2=UNREACHABLE." | ||
| 54 | SYNTAX INTEGER { | ||
| 55 | up(0), | ||
| 56 | down(1), | ||
| 57 | unreachable(3) | ||
| 58 | } | ||
| 59 | |||
| 60 | HostStateType ::= TEXTUAL-CONVENTION | ||
| 61 | STATUS current | ||
| 62 | DESCRIPTION | ||
| 63 | "A string indicating the state type for the current host check (HARD or | ||
| 64 | SOFT). Soft states occur when host checks return a non-OK (non-UP) state | ||
| 65 | and are in the process of being retried. Hard states result when host | ||
| 66 | checks have been checked a specified maximum number of times." | ||
| 67 | SYNTAX INTEGER { | ||
| 68 | hard(0), | ||
| 69 | soft(1) | ||
| 70 | } | ||
| 71 | |||
| 72 | ServiceStateID ::= TEXTUAL-CONVENTION | ||
| 73 | STATUS current | ||
| 74 | DESCRIPTION | ||
| 75 | "A number that corresponds to the current state of the service: 0=OK, | ||
| 76 | 1=WARNING, 2=CRITICAL, 3=UNKNOWN. | ||
| 77 | " | ||
| 78 | SYNTAX INTEGER{ | ||
| 79 | ok(0), | ||
| 80 | warning(1), | ||
| 81 | critical(2), | ||
| 82 | unknown(3) | ||
| 83 | } | ||
| 84 | |||
| 85 | |||
| 86 | END | ||
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5c075f3 --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | all: | ||
| 2 | smistrip -d MIB src-mib/nagios*.mib | ||
| 3 | |||
| 4 | test: | ||
| 5 | smilint -p ./MIB/NAGIOS-ROOT-MIB ./MIB/NAGIOS-NOTIFY-MIB | ||
| 6 | |||
| 7 | |||
| 8 | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | $Id$ | ||
| 2 | |||
| 3 | This is the initial set of MIBs for Nagios to allow traps sent from Nagios to | ||
| 4 | be recognized by other NMSes. | ||
| 5 | |||
| 6 | Feedback should be directed to the nagiosplug-devel list. | ||
| 7 | |||
| 8 | |||
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 | |||
