├── CHANGES ├── LEGAL ├── LICENSE ├── MIB ├── .index ├── NAGIOS-NOTIFY-MIB └── NAGIOS-ROOT-MIB ├── Makefile ├── README └── src-mib ├── nagios-notify.mib └── nagios-root.mib /CHANGES: -------------------------------------------------------------------------------- 1 | 1.0.1 2nd April 2009 2 | NotifyType set to Gauge32, instead of Integer32, for host and service notifications (thanks to Dirk Fieldhouse) 3 | 4 | 1.0.0 25th May 2005 5 | Initial release 6 | -------------------------------------------------------------------------------- /LEGAL: -------------------------------------------------------------------------------- 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 | 11 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 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 | 294 | Copyright (C) 19yy 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 | , 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. 341 | -------------------------------------------------------------------------------- /MIB/.index: -------------------------------------------------------------------------------- 1 | NAGIOS-NOTIFY-MIB NAGIOS-NOTIFY-MIB 2 | NAGIOS-ROOT-MIB NAGIOS-ROOT-MIB 3 | -------------------------------------------------------------------------------- /MIB/NAGIOS-NOTIFY-MIB: -------------------------------------------------------------------------------- 1 | NAGIOS-NOTIFY-MIB DEFINITIONS ::= BEGIN 2 | IMPORTS 3 | MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE, 4 | Integer32, Gauge32 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 Gauge32, -- was 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 Gauge32 -- was 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 Gauge32, -- 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 Gauge32 -- 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 621 | -------------------------------------------------------------------------------- /MIB/NAGIOS-ROOT-MIB: -------------------------------------------------------------------------------- 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 87 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | VERSION = 1.0.1 2 | 3 | all: 4 | smistrip -d MIB src-mib/nagios*.mib 5 | 6 | test: 7 | smilint -p ./MIB/NAGIOS-ROOT-MIB ./MIB/NAGIOS-NOTIFY-MIB 8 | 9 | tarball: 10 | tar cvzf nagiosmib-${VERSION}.tar.gz README CHANGES LEGAL LICENSE ./MIB/*MIB 11 | md5sum nagiosmib-${VERSION}.tar.gz > nagiosmib-${VERSION}.tar.gz.md5sum 12 | 13 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | This is the initial set of MIBs for Nagios to allow traps sent from Nagios to 2 | be recognized by other NMSes. 3 | 4 | Feedback should be directed to the nagiosplug-devel list at http://nagiosplugins.org/mailinglists 5 | 6 | 7 | -------------------------------------------------------------------------------- /src-mib/nagios-notify.mib: -------------------------------------------------------------------------------- 1 | NAGIOS-NOTIFY-MIB DEFINITIONS ::= BEGIN 2 | IMPORTS 3 | MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE, 4 | Integer32, Gauge32 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 Gauge32, -- was 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 Gauge32 -- was 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 Gauge32, -- 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 Gauge32 -- 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 621 | -------------------------------------------------------------------------------- /src-mib/nagios-root.mib: -------------------------------------------------------------------------------- 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 87 | 88 | --------------------------------------------------------------------------------