diff options
Diffstat (limited to 'nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis')
15 files changed, 2487 insertions, 0 deletions
diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/Makefile b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/Makefile new file mode 100644 index 0000000..f961263 --- /dev/null +++ b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/Makefile @@ -0,0 +1,11 @@ +PLUGIN := check_hp_bladechassis +MANPAGES := check_hp_bladechassis.8 + +CLEANFILES := check_hp_bladechassis check_hp_bladechassis.8 + +include ../common.mk + + +check_hp_%: src/check_hp_% + cp $< $@ + diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/CHANGES b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/CHANGES new file mode 100644 index 0000000..fa49813 --- /dev/null +++ b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/CHANGES @@ -0,0 +1,15 @@ +1.0.1 2010-01-22 +------------------ + +* Ignore components that are absent, such as power supplies and + fans. If your chassis isn't fully stacked with blades, it may not be + fully stacked with power supplies and fans either. +* Collect perl warnings and output them in a Nagios friendly way +* Plugin version information is now available in the debug output +* Manpage moved from section 3 to section 8 +* Plugin now installs in <libdir>/nagios, not <libdir>/nagios/contrib + +1.0.0 2009-08-04 +------------------ + +* Initial release diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/COPYING b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/COPYING new file mode 100644 index 0000000..94a9ed0 --- /dev/null +++ b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/COPYING @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + <program> Copyright (C) <year> <name of author> + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +<http://www.gnu.org/licenses/>. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +<http://www.gnu.org/philosophy/why-not-lgpl.html>. diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/INSTALL b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/INSTALL new file mode 100644 index 0000000..54c9078 --- /dev/null +++ b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/INSTALL @@ -0,0 +1,23 @@ +Automatic installation +---------------------- + +Run the script install.sh to install automatically. The install.sh +script will ask where to install the files, unless given the '-q' +option, which will install the files in the default location. + + +Manual installation +------------------- + +To install check_hp_bladechassis, copy the file check_hp_bladechassis to the +Nagios plugin directory (usually /usr/lib/nagios/plugins): + + cp check_hp_bladechassis /usr/lib/nagios/plugins + +To install the manual page: + + cp check_hp_bladechassis.8 /usr/share/man/man8 + +This is all. + +-trond diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/README b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/README new file mode 100644 index 0000000..0e81b9f --- /dev/null +++ b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/README @@ -0,0 +1,16 @@ +Files in this directory: + + check_hp_bladechassis - The plugin + check_hp_bladechassis.8 - Man page + check_hp_bladechassis.pod - POD (raw man page) + check_hp_bladechassis.php - PNP4Nagios template + COPYING - License information + INSTALL - Install HOWTO + CHANGES - Changelog + install.sh - Linux/UNIX install script + README - This file + +More information avilable online: + + http://folk.uio.no/trondham/software/check_hp_bladechassis.html + diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/check_hp_bladechassis b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/check_hp_bladechassis new file mode 100755 index 0000000..02e0d5a --- /dev/null +++ b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/check_hp_bladechassis @@ -0,0 +1,1004 @@ +#!/usr/bin/perl +# +# DESCRIPTION: Nagios plugin for checking the status of HP +# blade chassis via SNMP. +# +# AUTHOR: Trond H. Amundsen <t.h.amundsen@usit.uio.no> +# +# $Id: check_hp_bladechassis 16304 2010-01-22 11:20:34Z trondham $ +# +# Copyright (C) 2010 Trond H. Amundsen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +# HP ASN.1 prefix: 1.3.6.1.4.1.232 + +use strict; +use warnings; +use POSIX qw(isatty); +use Getopt::Long qw(:config no_ignore_case); + +# Global (package) variables used throughout the code +use vars qw( $NAME $VERSION $AUTHOR $CONTACT $E_OK $E_WARNING $E_CRITICAL + $E_UNKNOWN $USAGE $HELP $LICENSE $original_sigwarn + $snmp_session $snmp_error $linebreak $exit_code + $count_ioms $count_blades $global $total_wattage + %opt %reverse_exitcode %status2nagios %snmp_status %sysinfo + %nagios_alert_count %present_map + @reports @perfdata @perl_warnings + ); + +#--------------------------------------------------------------------- +# Initialization and global variables +#--------------------------------------------------------------------- + +# Small subroutine to collect any perl warnings during execution +sub collect_perl_warning { + push @perl_warnings, [@_]; +} + +# Set the WARN signal to use our collect subroutine above +$original_sigwarn = $SIG{__WARN__}; +$SIG{__WARN__} = \&collect_perl_warning; + +# Version and similar info +$NAME = 'check_hp_bladechassis'; +$VERSION = '1.0.1'; +$AUTHOR = 'Trond H. Amundsen'; +$CONTACT = 't.h.amundsen@usit.uio.no'; + +# Exit codes +$E_OK = 0; +$E_WARNING = 1; +$E_CRITICAL = 2; +$E_UNKNOWN = 3; + +# Usage text +$USAGE = <<"END_USAGE"; +Usage: $NAME -H <HOSTNAME> [OPTION]... +END_USAGE + +# Help text +$HELP = <<'END_HELP'; + +OPTIONS: + -H, --hostname Hostname or IP of the enclosure + -C, --community SNMP community string + -P, --protocol SNMP protocol version + --port SNMP port number + -p, --perfdata Output performance data + -t, --timeout Plugin timeout in seconds + -i, --info Prefix alerts with the enclosure's serial number + -v, --verbose Append extra info to alerts (part no. etc.) + -e, --extinfo Append system info to alerts + -s, --state Prefix alerts with alert state + --short-state Prefix alerts with alert state (abbreviated) + -d, --debug Debug output, reports everything + -h, --help Display this help text + -V, --version Display version info + +For more information and advanced options, see the manual page or URL: + http://folk.uio.no/trondham/software/check_hp_bladechassis.html +END_HELP + +# Version text +$LICENSE = <<"END_LICENSE"; +$NAME $VERSION +Copyright (C) 2010 $AUTHOR +License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. + +Written by $AUTHOR <$CONTACT> +END_LICENSE + +# Options with default values +%opt + = ( + 'port' => 161, # default SNMP port + 'hostname' => undef, + 'community' => 'public', # SMNP v1 or v2c + 'protocol' => 2, # default is SNMPv2c + 'username' => undef, # SMNP v3 + 'authpassword' => undef, # SMNP v3 + 'authkey' => undef, # SMNP v3 + 'authprotocol' => undef, # SMNP v3 + 'privpassword' => undef, # SMNP v3 + 'privkey' => undef, # SMNP v3 + 'privprotocol' => undef, # SMNP v3 + 'timeout' => 30, # default timeout is 30 seconds + 'verbose' => 0, + 'info' => 0, + 'extinfo' => 0, + 'help' => 0, + 'version' => 0, + 'state' => 0, + 'short-state' => 0, + 'linebreak' => undef, + 'perfdata' => undef, + 'debug' => 0, + ); + +# Get options +GetOptions('H|hostname=s' => \$opt{hostname}, + 'C|community=s' => \$opt{community}, + 'P|protocol=i' => \$opt{protocol}, + 'port=i' => \$opt{port}, + 'U|username=s' => \$opt{username}, + 'authpassword=s' => \$opt{authpassword}, + 'authkey=s' => \$opt{authkey}, + 'authprotocol=s' => \$opt{authprotocol}, + 'privpassword=s' => \$opt{privpassword}, + 'privkey=s' => \$opt{privkey}, + 'privprotocol=s' => \$opt{privprotocol}, + 't|timeout=i' => \$opt{timeout}, + 'v|verbose' => \$opt{verbose}, + 'i|info' => \$opt{info}, + 'e|extinfo' => \$opt{extinfo}, + 'h|help' => \$opt{help}, + 'V|version' => \$opt{version}, + 's|state' => \$opt{state}, + 'short-state' => \$opt{shortstate}, + 'linebreak=s' => \$opt{linebreak}, + 'p|perfdata:s' => \$opt{perfdata}, + 'd|debug' => \$opt{debug}, + ) or do { print $USAGE; exit $E_UNKNOWN; }; + +# If user requested help +if ($opt{'help'}) { + print $USAGE, $HELP; + exit $E_OK; +} + +# If user requested version info +if ($opt{'version'}) { + print $LICENSE; + exit $E_OK; +} + +# Error if hostname option is not present +if (!defined $opt{hostname}) { + print "ERROR: No hostname or address given on command line. Use the '-H' or '--hostname' option\n"; + exit $E_UNKNOWN; +} + +# Nagios error levels reversed +%reverse_exitcode + = ( + 0 => 'OK', + 1 => 'WARNING', + 2 => 'CRITICAL', + 3 => 'UNKNOWN', + ); + +# HP SNMP status (condition) +%status2nagios + = ( + 'Other' => $E_CRITICAL, + 'Ok' => $E_OK, + 'Degraded' => $E_WARNING, + 'Failed' => $E_CRITICAL, + ); + +# Status via SNMP +%snmp_status + = ( + 1 => 'Other', + 2 => 'Ok', + 3 => 'Degraded', + 4 => 'Failed', + ); + +# Present map +%present_map + = ( + 1 => 'other', + 2 => 'absent', + 3 => 'present', + 4 => 'OMG!WTF!BUG!', # for blades it can return 4, which is NOT spesified in MIB + ); + +# Reports (messages) are gathered in this array +@reports = (); + +# Setting timeout +$SIG{ALRM} = sub { + print "PLUGIN TIMEOUT: $NAME timed out after $opt{timeout} seconds\n"; + exit $E_UNKNOWN; +}; +alarm $opt{timeout}; + +# Default line break +$linebreak = isatty(*STDOUT) ? "\n" : '<br/>'; + +# Line break from option +if (defined $opt{linebreak}) { + if ($opt{linebreak} eq 'REG') { + $linebreak = "\n"; + } + elsif ($opt{linebreak} eq 'HTML') { + $linebreak = '<br/>'; + } + else { + $linebreak = $opt{linebreak}; + } +} + +# System information gathered +%sysinfo + = ( + 'serial' => 'N/A', # serial number (service tag) + 'model' => 'N/A', # system model + 'firmware' => 'N/A', # firmware version + ); + +# Counter variable +%nagios_alert_count + = ( + 'OK' => 0, + 'WARNING' => 0, + 'CRITICAL' => 0, + 'UNKNOWN' => 0, + ); + +# Number of blades +$count_blades = 0; + +# Number of IO modules +$count_ioms = 0; + +# Overall health status +$global = 'Ok'; + +# Initialize SNMP +snmp_initialize(); + +# Check that SNMP works +snmp_check(); + +#--------------------------------------------------------------------- +# Functions +#--------------------------------------------------------------------- + +# +# Store a message in the message array +# +sub report { + my ($msg, $exval, $part, $spare, $serial) = @_; + return push @reports, [ $msg, $exval, $part, $spare, $serial ]; +} + +# +# Give an error and exit with unknown state +# +sub unknown_error { + my $msg = shift; + print "ERROR: $msg\n"; + exit $E_UNKNOWN; +} + +# +# Initialize SNMP +# +sub snmp_initialize { + # Legal SNMP v3 protocols + my $snmp_v3_privprotocol = qr{\A des|aes|aes128|3des|3desde \z}xms; + my $snmp_v3_authprotocol = qr{\A md5|sha \z}xms; + + # Parameters to Net::SNMP->session() + my %param + = ( + '-port' => $opt{port}, + '-hostname' => $opt{hostname}, + '-version' => $opt{protocol}, + ); + + # Parameters for SNMP v3 + if ($opt{protocol} == 3) { + + # Username is mandatory + if (defined $opt{username}) { + $param{'-username'} = $opt{username}; + } + else { + print "SNMP ERROR: With SNMPv3 the username must be specified\n"; + exit $E_UNKNOWN; + } + + # Authpassword is optional + if (defined $opt{authpassword}) { + $param{'-authpassword'} = $opt{authpassword}; + } + + # Authkey is optional + if (defined $opt{authkey}) { + $param{'-authkey'} = $opt{authkey}; + } + + # Privpassword is optional + if (defined $opt{privpassword}) { + $param{'-privpassword'} = $opt{privpassword}; + } + + # Privkey is optional + if (defined $opt{privkey}) { + $param{'-privkey'} = $opt{privkey}; + } + + # Privprotocol is optional + if (defined $opt{privprotocol}) { + if ($opt{privprotocol} =~ m/$snmp_v3_privprotocol/xms) { + $param{'-privprotocol'} = $opt{privprotocol}; + } + else { + print "SNMP ERROR: Unknown privprotocol '$opt{privprotocol}', " + . "must be one of [des|aes|aes128|3des|3desde]\n"; + exit $E_UNKNOWN; + } + } + + # Authprotocol is optional + if (defined $opt{authprotocol}) { + if ($opt{authprotocol} =~ m/$snmp_v3_authprotocol/xms) { + $param{'-authprotocol'} = $opt{authprotocol}; + } + else { + print "SNMP ERROR: Unknown authprotocol '$opt{authprotocol}', " + . "must be one of [md5|sha]\n"; + exit $E_UNKNOWN; + } + } + } + # Parameters for SNMP v2c or v1 + elsif ($opt{protocol} == 2 or $opt{protocol} == 1) { + $param{'-community'} = $opt{community}; + } + else { + print "SNMP ERROR: Unknown SNMP version '$opt{protocol}'\n"; + exit $E_UNKNOWN; + } + + # Try to initialize the SNMP session + if ( eval { require Net::SNMP; 1 } ) { + ($snmp_session, $snmp_error) = Net::SNMP->session( %param ); + if (!defined $snmp_session) { + printf "SNMP: %s\n", $snmp_error; + exit $E_UNKNOWN; + } + } + else { + print "ERROR: Required perl module Net::SNMP not found\n"; + exit $E_UNKNOWN; + } + return; +} + +# +# Checking if SNMP works by probing for "EnclosureModel", which all +# enclosures should have +# +sub snmp_check { + my $cpqRackCommonEnclosureModel = '1.3.6.1.4.1.232.22.2.3.1.1.1.3.1'; + my $result = $snmp_session->get_request(-varbindlist => [$cpqRackCommonEnclosureModel]); + + # Typically if remote host isn't responding + if (!defined $result) { + printf "SNMP CRITICAL: %s\n", $snmp_session->error; + exit $E_CRITICAL; + } + + # If OpenManage isn't installed or is not working + if ($result->{$cpqRackCommonEnclosureModel} =~ m{\A noSuch (Instance|Object) \z}xms) { + print "SNMP ERROR: Can't determine model name\n"; + exit $E_UNKNOWN; + } + + # Store the model name + $sysinfo{model} = $result->{$cpqRackCommonEnclosureModel}; + $sysinfo{model} =~ s{\s+\z}{}xms; # remove trailing whitespace + + return; +} + +# Gets the output from SNMP result according to the OIDs checked +sub get_snmp_output { + my ($result,$oidref) = @_; + my @output = (); + + foreach my $oid (keys %{ $result }) { + my @dummy = split m{\.}xms, $oid; + my $id = pop @dummy; + --$id; + my $foo = join q{.}, @dummy; + if (exists $oidref->{$foo}) { + $output[$id]{$oidref->{$foo}} = $result->{$oid}; + } + } + return \@output; +} + +# Get enclosure status and firmware info +sub get_enclosure_status { + my @output = (); + + my $part = undef; # part number + my $spare = undef; # spare part number + my $serial = undef; # serial + my $condition = undef; # enclosure condition + + # OIDs we are interested in + my %oid + = ( + '1.3.6.1.4.1.232.22.2.3.1.1.1.5' => 'cpqRackCommonEnclosurePartNumber', # part number + '1.3.6.1.4.1.232.22.2.3.1.1.1.6' => 'cpqRackCommonEnclosureSparePartNumber', # spare + '1.3.6.1.4.1.232.22.2.3.1.1.1.7' => 'cpqRackCommonEnclosureSerialNum', # serial no. + '1.3.6.1.4.1.232.22.2.3.1.1.1.8' => 'cpqRackCommonEnclosureFWRev', # firmware rev. + '1.3.6.1.4.1.232.22.2.3.1.1.1.16' => 'cpqRackCommonEnclosureCondition', # condition + ); + + my $result = $snmp_session->get_entries(-columns => [keys %oid]); + + # Error if we don't get anything + if (!defined $result) { + printf "SNMP CRITICAL: [enclosure table] %s\n", $snmp_session->error; + exit $E_CRITICAL; + } + + @output = @{ get_snmp_output($result, \%oid) }; + + ENCL: + foreach my $out (@output) { + $sysinfo{'serial'} = $out->{cpqRackCommonEnclosureSerialNum}; + $sysinfo{'firmware'} = $out->{cpqRackCommonEnclosureFWRev}; + + $part = $out->{cpqRackCommonEnclosurePartNumber}; + $spare = $out->{cpqRackCommonEnclosureSparePartNumber}; + $serial = $out->{cpqRackCommonEnclosureSerialNum}; + $condition = $out->{cpqRackCommonEnclosureCondition}; + } + + # report global enclosure condition + report( (sprintf q{Enclosure overall health condition is %s}, $snmp_status{$condition}), + $status2nagios{$snmp_status{$condition}}, $part, $spare, $serial ); + + $global = $snmp_status{$condition}; + + return; +} + +# Check the enclosure managers +sub check_managers { + my @output = (); + + my $index = undef; # index + my $part = undef; # part number + my $spare = undef; # spare part number + my $serial = undef; # serial number + my $role = undef; # manager role (primary / secondary) + my $condition = undef; # condition + + # OIDs we are interested in + my %oid + = ( + '1.3.6.1.4.1.232.22.2.3.1.6.1.3' => 'cpqRackCommonEnclosureManagerIndex', + '1.3.6.1.4.1.232.22.2.3.1.6.1.6' => 'cpqRackCommonEnclosureManagerPartNumber', + '1.3.6.1.4.1.232.22.2.3.1.6.1.7' => 'cpqRackCommonEnclosureManagerSparePartNumber', + '1.3.6.1.4.1.232.22.2.3.1.6.1.8' => 'cpqRackCommonEnclosureManagerSerialNum', + '1.3.6.1.4.1.232.22.2.3.1.6.1.9' => 'cpqRackCommonEnclosureManagerRole', + '1.3.6.1.4.1.232.22.2.3.1.6.1.12' => 'cpqRackCommonEnclosureManagerCondition', + ); + + my $default_timeout = $snmp_session->timeout(); # get existing session timeout + $snmp_session->timeout(20); # set new session timeout + my $result = $snmp_session->get_entries(-columns => [keys %oid]); # get entries + $snmp_session->timeout($default_timeout); # reset session timeout + + # Error if we don't get anything + if (!defined $result) { + printf "ERROR: [manager table] %s\n", $snmp_session->error; + exit $E_UNKNOWN; + } + + @output = @{ get_snmp_output($result, \%oid) }; + + my %map_role + = ( + 1 => 'Standby', + 2 => 'Active', + ); + + MANAGER: + foreach my $out (@output) { + $index = $out->{cpqRackCommonEnclosureManagerIndex}; + $part = $out->{cpqRackCommonEnclosureManagerPartNumber}; + $spare = $out->{cpqRackCommonEnclosureManagerSparePartNumber}; + $serial = $out->{cpqRackCommonEnclosureManagerSerialNum}; + $role = $out->{cpqRackCommonEnclosureManagerRole}; + $condition = $out->{cpqRackCommonEnclosureManagerCondition}; + + # report manager condition + if (exists $snmp_status{$condition}) { + report( (sprintf q{Enclosure management module %d is %s, status is %s}, + $index, $map_role{$role}, $snmp_status{$condition}), + $status2nagios{$snmp_status{$condition}}, $part, $spare, $serial ); + } + else { + report( (sprintf q{Enclosure management module %d is %s, status is Unknown}, + $index, $map_role{$role}), + $E_OK, $part, $spare, $serial ); + } + } + + return; +} + + +# Check the enclosure fans +sub check_fans { + my @output = (); + + my $index = undef; # index + my $present = undef; # if device is present + my $part = undef; # part number + my $spare = undef; # spare part number + my $condition = undef; # condition + + # OIDs we are interested in + my %oid + = ( + '1.3.6.1.4.1.232.22.2.3.1.3.1.3' => 'cpqRackCommonEnclosureFanIndex', + '1.3.6.1.4.1.232.22.2.3.1.3.1.6' => 'cpqRackCommonEnclosureFanPartNumber', + '1.3.6.1.4.1.232.22.2.3.1.3.1.7' => 'cpqRackCommonEnclosureFanSparePartNumber', + '1.3.6.1.4.1.232.22.2.3.1.3.1.8' => 'cpqRackCommonEnclosureFanPresent', + '1.3.6.1.4.1.232.22.2.3.1.3.1.11' => 'cpqRackCommonEnclosureFanCondition', + ); + + my $result = $snmp_session->get_entries(-columns => [keys %oid]); + + # Error if we don't get anything + if (!defined $result) { + printf "SNMP ERROR: [fan table] %s\n", $snmp_session->error; + exit $E_UNKNOWN; + } + + @output = @{ get_snmp_output($result, \%oid) }; + + FAN: + foreach my $out (@output) { + $index = $out->{cpqRackCommonEnclosureFanIndex}; + $present = $out->{cpqRackCommonEnclosureFanPresent}; + $part = $out->{cpqRackCommonEnclosureFanPartNumber}; + $spare = $out->{cpqRackCommonEnclosureFanSparePartNumber}; + $condition = $out->{cpqRackCommonEnclosureFanCondition}; + + next FAN if $present_map{$present} ne 'present'; + + # report fan condition + report( (sprintf q{Fan %d condition is %s}, $index, $snmp_status{$condition}), + $status2nagios{$snmp_status{$condition}}, $part, $spare, q{} ); + } + + return; +} + + +# Check the blades +sub check_blades { + my @output = (); + + my $index = undef; # index + my $name = undef; # blade name + my $part = undef; # part number + my $spare = undef; # spare part number + my $serial = undef; # serial number + my $position = undef; # blade position + my $present = undef; # if device is present + my $product = undef; # product id + my $status = undef; # blade status + my $major = undef; # major fault + my $minor = undef; # minor fault + my $diag = undef; # blade fault diagnostic string + my $power = undef; # if blade is powered up + + # OIDs we are interested in + my %oid + = ( + '1.3.6.1.4.1.232.22.2.4.1.1.1.3' => 'cpqRackServerBladeIndex', + '1.3.6.1.4.1.232.22.2.4.1.1.1.4' => 'cpqRackServerBladeName', + '1.3.6.1.4.1.232.22.2.4.1.1.1.6' => 'cpqRackServerBladePartNumber', + '1.3.6.1.4.1.232.22.2.4.1.1.1.7' => 'cpqRackServerBladeSparePartNumber', + '1.3.6.1.4.1.232.22.2.4.1.1.1.8' => 'cpqRackServerBladePosition', + '1.3.6.1.4.1.232.22.2.4.1.1.1.12' => 'cpqRackServerBladePresent', + '1.3.6.1.4.1.232.22.2.4.1.1.1.16' => 'cpqRackServerBladeSerialNum', + '1.3.6.1.4.1.232.22.2.4.1.1.1.17' => 'cpqRackServerBladeProductId', + '1.3.6.1.4.1.232.22.2.4.1.1.1.21' => 'cpqRackServerBladeStatus', + '1.3.6.1.4.1.232.22.2.4.1.1.1.22' => 'cpqRackServerBladeFaultMajor', + '1.3.6.1.4.1.232.22.2.4.1.1.1.23' => 'cpqRackServerBladeFaultMinor', + '1.3.6.1.4.1.232.22.2.4.1.1.1.24' => 'cpqRackServerBladeFaultDiagnosticString', + '1.3.6.1.4.1.232.22.2.4.1.1.1.25' => 'cpqRackServerBladePowered', + ); + + my $result = $snmp_session->get_entries(-columns => [keys %oid]); + + # Error if we don't get anything + if (!defined $result) { + printf "SNMP ERROR: [blade table] %s\n", $snmp_session->error; + exit $E_UNKNOWN; + } + + @output = @{ get_snmp_output($result, \%oid) }; + + sub get { + my ($hash, $val) = @_; + return exists $hash->{$val} ? $hash->{$val} : undef; + } + + BLADE: + foreach my $out (@output) { + $index = get($out, 'cpqRackServerBladeIndex'); + $name = get($out, 'cpqRackServerBladeName'); + $part = get($out, 'cpqRackServerBladePartNumber'); + $spare = get($out, 'cpqRackServerBladeSparePartNumber'); + $serial = get($out, 'cpqRackServerBladeSerialNum'); + $position = get($out, 'cpqRackServerBladePosition'); + $present = get($out, 'cpqRackServerBladePresent'); + $product = get($out, 'cpqRackServerBladeProductId'); + $status = get($out, 'cpqRackServerBladeStatus'); + $major = get($out, 'cpqRackServerBladeFaultMajor'); + $minor = get($out, 'cpqRackServerBladeFaultMinor'); + $diag = get($out, 'cpqRackServerBladeFaultDiagnosticString'); + $power = get($out, 'cpqRackServerBladePowered'); + + next BLADE if $present_map{$present} ne 'present'; + ++$count_blades; + + $part =~ s{\s+\z}{}xms; # remove trailing whitespace + + # report blade condition + if (!defined $status) { + report( (sprintf q{Blade %d is a %s with name: %s}, + $index, $product, $name), + $E_OK, $part, $spare, $serial ); + } + else { + report( (sprintf q{Blade %d (%s, %s) status is %s}, + $index, $name, $product, $snmp_status{$status}), + $status2nagios{$snmp_status{$status}}, $part, $spare, $serial ); + } + } + + return; +} + + +# Check the enclosure power supplies +sub check_psu { + my @output = (); + + my $index = undef; # index + my $serial = undef; # serial number + my $present = undef; # if device is present + my $part = undef; # part number + my $spare = undef; # spare part number + my $currpwr = undef; # The current power output of the power supply in watts + my $status = undef; # The status of the power supply + my $inputline = undef; # The status of line input power + my $condition = undef; # The condition of the power supply + + # OIDs we are interested in + my %oid + = ( + '1.3.6.1.4.1.232.22.2.5.1.1.1.3' => 'cpqRackPowerSupplyIndex', + '1.3.6.1.4.1.232.22.2.5.1.1.1.5' => 'cpqRackPowerSupplySerialNum', + '1.3.6.1.4.1.232.22.2.5.1.1.1.6' => 'cpqRackPowerSupplyPartNumber', + '1.3.6.1.4.1.232.22.2.5.1.1.1.7' => 'cpqRackPowerSupplySparePartNumber', + '1.3.6.1.4.1.232.22.2.5.1.1.1.10' => 'cpqRackPowerSupplyCurPwrOutput', + '1.3.6.1.4.1.232.22.2.5.1.1.1.14' => 'cpqRackPowerSupplyStatus', + '1.3.6.1.4.1.232.22.2.5.1.1.1.15' => 'cpqRackPowerSupplyInputLineStatus', + '1.3.6.1.4.1.232.22.2.5.1.1.1.16' => 'cpqRackPowerSupplyPresent', + '1.3.6.1.4.1.232.22.2.5.1.1.1.17' => 'cpqRackPowerSupplyCondition', + ); + + my $result = $snmp_session->get_entries(-columns => [keys %oid]); + + # Error if we don't get anything + if (!defined $result) { + printf "SNMP ERROR: [psu table] %s\n", $snmp_session->error; + exit $E_UNKNOWN; + } + + @output = @{ get_snmp_output($result, \%oid) }; + + my %psu_status + = ( + 1 => 'noError', + 2 => 'generalFailure', + 3 => 'bistFailure', + 4 => 'fanFailure', + 5 => 'tempFailure', + 6 => 'interlockOpen', + 7 => 'epromFailed', + 8 => 'vrefFailed', + 9 => 'dacFailed', + 10 => 'ramTestFailed', + 11 => 'voltageChannelFailed', + 12 => 'orringdiodeFailed', + 13 => 'brownOut', + 14 => 'giveupOnStartup', + 15 => 'nvramInvalid', + 16 => 'calibrationTableInvalid', + ); + + my %inputline_status + = ( + 1 => 'noError', + 2 => 'lineOverVoltage', + 3 => 'lineUnderVoltage', + 4 => 'lineHit', + 5 => 'brownOut', + 6 => 'linePowerLoss', + ); + + $total_wattage = 0; + + PSU: + foreach my $out (@output) { + $index = $out->{cpqRackPowerSupplyIndex}; + $present = $out->{cpqRackPowerSupplyPresent}; + $part = $out->{cpqRackPowerSupplyPartNumber}; + $spare = $out->{cpqRackPowerSupplySparePartNumber}; + $condition = $out->{cpqRackPowerSupplyCondition}; + $serial = $out->{cpqRackPowerSupplySerialNum}; + $currpwr = $out->{cpqRackPowerSupplyCurPwrOutput}; + $status = $out->{cpqRackPowerSupplyStatus}; + $inputline = $out->{cpqRackPowerSupplyInputLineStatus}; + + next PSU if $present_map{$present} ne 'present'; + + # Calculate total power consumption + $total_wattage += $currpwr; + + # Report PSU condition + if ($snmp_status{$condition} eq 'Ok') { + report( (sprintf q{PSU %d is %s, output: %d W}, + $index, $snmp_status{$condition}, $currpwr), + $status2nagios{$snmp_status{$condition}}, $part, $spare, $serial ); + } + else { + my $msg = sprintf q{PSU %d is %s}, + $index, $snmp_status{$condition}; + $msg .= " ($psu_status{$status})" if $status >= 1; + $msg .= ", input line status: $inputline_status{$inputline}" if $inputline >= 1; + + report( $msg, $status2nagios{$snmp_status{$condition}}, $part, $spare, $serial ); + } + } + + # Collect performance data + if (defined $opt{perfdata}) { + push @perfdata, "'total_watt'=${total_wattage}W;0;0"; + } + + return; +} + + +# Check the IO modules +sub check_iom { + my @output = (); + + my $index = undef; # index + my $present = undef; # if device is present + my $part = undef; # part number + my $spare = undef; # spare part number + my $serial = undef; # serial number + my $model = undef; # The model name of the network connector + my $location = undef; # The location of the network connector within the enclosure + my $devtype = undef; # The type of interrconnect in the enclosure + + # OIDs we are interested in + my %oid + = ( + '1.3.6.1.4.1.232.22.2.6.1.1.1.3' => 'cpqRackNetConnectorIndex', + '1.3.6.1.4.1.232.22.2.6.1.1.1.6' => 'cpqRackNetConnectorModel', + '1.3.6.1.4.1.232.22.2.6.1.1.1.7' => 'cpqRackNetConnectorSerialNum', + '1.3.6.1.4.1.232.22.2.6.1.1.1.8' => 'cpqRackNetConnectorPartNumber', + '1.3.6.1.4.1.232.22.2.6.1.1.1.9' => 'cpqRackNetConnectorSparePartNumber', + '1.3.6.1.4.1.232.22.2.6.1.1.1.12' => 'cpqRackNetConnectorLocation', + '1.3.6.1.4.1.232.22.2.6.1.1.1.13' => 'cpqRackNetConnectorPresent', + '1.3.6.1.4.1.232.22.2.6.1.1.1.17' => 'cpqRackNetConnectorDeviceType', + ); + + my $result = $snmp_session->get_entries(-columns => [keys %oid]); + + # Error if we don't get anything + if (!defined $result) { + printf "SNMP ERROR: [fan table] %s\n", $snmp_session->error; + exit $E_UNKNOWN; + } + + @output = @{ get_snmp_output($result, \%oid) }; + + my %device_type + = ( + 1 => 'noconnect', + 2 => 'network', + 3 => 'fibrechannel', + 4 => 'sas', + 5 => 'inifiband', + 6 => 'pciexpress', + ); + + IOM: + foreach my $out (@output) { + $index = $out->{cpqRackNetConnectorIndex}; + $present = $out->{cpqRackNetConnectorPresent}; + $part = $out->{cpqRackNetConnectorPartNumber}; + $model = $out->{cpqRackNetConnectorModel}; + $location = $out->{cpqRackNetConnectorLocation}; + $devtype = $out->{cpqRackNetConnectorDeviceType}; + + next IOM if $present_map{$present} ne 'present'; + ++$count_ioms; + + # report IOM + report( (sprintf q{I/O module %d is type %s: %s}, + $index, $device_type{$devtype}, $model), + $E_OK, $part, $spare, $serial ); + } + + return; +} + + +# Default plugin output +sub output_default { + my $c = 0; # counter to determine linebreaks + + # Run through each message, sorted by severity level + ALERT: + foreach (sort {$a->[1] < $b->[1]} @reports) { + my ($msg, $level, $part, $spare, $serial) = @{ $_ }; + next ALERT if $level == $E_OK; + + # Prefix with service tag if specified with option '-i|--info' + if ($opt{info}) { + $msg = "[$sysinfo{serial}] " . $msg; + } + + # Prefix with nagios level if specified with option '--state' + $msg = $reverse_exitcode{$level} . ": $msg" if $opt{state}; + + # Prefix with one-letter nagios level if specified with option '--short-state' + $msg = (substr $reverse_exitcode{$level}, 0, 1) . ": $msg" if $opt{shortstate}; + + if ($opt{verbose} and $msg !~ m/overall health condition/) { + $msg .= sprintf q{ [part: %s, spare: %s, sn: %s]}, + $part eq q{} ? 'n/a' : $part, + $spare eq q{} ? 'n/a' : $spare, + $serial eq q{} ? 'n/a' : $serial; + } + + ($c++ == 0) ? print $msg : print $linebreak, $msg; + + $nagios_alert_count{$reverse_exitcode{$level}}++; + } + + return; +} + +# Debug plugin output +sub output_debug { + print " System: $sysinfo{model}\n"; + print " ServiceTag: $sysinfo{serial}\n"; + print " Firmware: $sysinfo{firmware}"; + print q{ } x (25 - length "$sysinfo{firmware}"), "Plugin version: $VERSION\n"; + if ($#reports >= 0) { + print "-----------------------------------------------------------------------------\n"; + print " System Component Status \n"; + print "=============================================================================\n"; + print " STATE | PART NO. | MESSAGE TEXT \n"; + print "---------+----------------+--------------------------------------------------\n"; + foreach (@reports) { + my ($msg, $level, $part, $spare, $serial) = @{$_}; + print q{ } x (8 - length $reverse_exitcode{$level}) . "$reverse_exitcode{$level} | " + . q{ } x (14 - length $part) . "$part | $msg\n"; + $nagios_alert_count{$reverse_exitcode{$level}}++; + } + } + + # Print system power readings + print "-----------------------------------------------------------------------------\n"; + print " System Power Readings \n"; + print "=============================================================================\n"; + print " Total power consumption: $total_wattage W\n"; + + return; +} + +# Performance data output +sub output_perfdata { + my $lb = $opt{perfdata} eq 'multiline' ? "\n" : q{ }; # line break for perfdata + print q{|}; + print join $lb, @perfdata; + return; +} + + +#===================================================================== +# Main program +#===================================================================== + +# Probe the blade chassis via SNMP +get_enclosure_status(); + +# Only check managers if global health is not Ok, or debug +if ($global ne 'Ok' or $opt{debug}) { + check_managers(); +} + +# Always these +check_fans(); +check_blades(); +check_iom(); +check_psu(); + +# Print output +if ($opt{debug}) { + output_debug(); +} +else { + output_default(); +} + +# Determine our exit code +$exit_code = $E_OK; +if ($nagios_alert_count{UNKNOWN} > 0) { $exit_code = $E_UNKNOWN; } +if ($nagios_alert_count{WARNING} > 0) { $exit_code = $E_WARNING; } +if ($nagios_alert_count{CRITICAL} > 0) { $exit_code = $E_CRITICAL; } + +# Print any perl warnings that have occured +if (@perl_warnings) { + foreach (@perl_warnings) { + chop @$_; + print "${linebreak}INTERNAL ERROR: @$_"; + } + $exit_code = $E_UNKNOWN; +} + +# Reset the WARN signal +$SIG{__WARN__} = $original_sigwarn; + +# OK message +if ($exit_code == $E_OK && !$opt{debug}) { + printf q{OK - System: '%s', SN: '%s', Firmware: '%s', hardware working fine, %d blades, %d i/o modules}, + $sysinfo{model}, $sysinfo{serial}, $sysinfo{firmware}, $count_blades, $count_ioms; +} + +# Extended info output +if ($opt{extinfo} && !$opt{debug} && $exit_code != $E_OK) { + print $linebreak; + printf '------ SYSTEM: %s, SN: %s, FW: %s', + $sysinfo{model}, $sysinfo{serial}, $sysinfo{firmware}; +} + +# Print performance data +if (defined $opt{perfdata} && !$opt{debug} && @perfdata) { + output_perfdata(); +} + +print "\n" if !$opt{debug}; + +# Exit with proper exit code +exit $exit_code; diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/check_hp_bladechassis.8 b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/check_hp_bladechassis.8 new file mode 100644 index 0000000..2c872cb --- /dev/null +++ b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/check_hp_bladechassis.8 @@ -0,0 +1,325 @@ +.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32 +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sh \" Subsection heading +.br +.if t .Sp +.ne 5 +.PP +\fB\\$1\fR +.PP +.. +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. | will give a +.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to +.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C' +.\" expand to `' in nroff, nothing in troff, for use with C<>. +.tr \(*W-|\(bv\*(Tr +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +'br\} +.\" +.\" If the F register is turned on, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. nr % 0 +. rr F +.\} +.\" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.hy 0 +.if n .na +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "CHECK_HP_BLADECHASSIS 8" +.TH CHECK_HP_BLADECHASSIS 8 "2009-08-20" "check_hp_bladechassis 1.0.1" "Nagios plugin" +.SH "NAME" +check_hp_bladechassis \- Nagios plugin for checking the status of HP +blade enclosures via SNMP +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +check_hp_bladechassis \-H <\fI\s-1HOSTNAME\s0\fR> [\fI\s-1OPTION\s0\fR]... +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +check_hp_bladechassis is a plugin for the Nagios monitoring software +that checks the hardware health status of a \s-1HP\s0 blade +enclosure/chassis. The plugin is only tested with the c7000 enclosure. +.SH "COMMON OPTIONS" +.IX Header "COMMON OPTIONS" +.IP "\-H, \-\-hostname \fI\s-1HOSTNAME\s0\fR" 4 +.IX Item "-H, --hostname HOSTNAME" +The transport address (hostname or \s-1IP\s0) of the blade enclosure you want +to monitor. This option is mandatory. +.IP "\-C, \-\-community \fI\s-1COMMUNITY\s0\fR" 4 +.IX Item "-C, --community COMMUNITY" +This option expects a string that is to be used as the \s-1SNMP\s0 community +name when using \s-1SNMP\s0 version 1 or 2c. By default the community name +is set to \f(CW\*(C`public\*(C'\fR if the option is not present. +.IP "\-p, \-\-perfdata" 4 +.IX Item "-p, --perfdata" +Collect performance data. Performance data collected is total +power usage. +.IP "\-t, \-\-timeout \fI\s-1SECONDS\s0\fR" 4 +.IX Item "-t, --timeout SECONDS" +The number of seconds after which the plugin will abort. Default +timeout is 30 seconds if the option is not present. +.IP "\-i, \-\-info" 4 +.IX Item "-i, --info" +Prefix any alerts with the enclosure serial number. +.IP "\-v, \-\-verbose" 4 +.IX Item "-v, --verbose" +In case of an alert, the part number, spare part number and serial +number of the failed component is appended to the alert message. +.IP "\-e, \-\-extinfo" 4 +.IX Item "-e, --extinfo" +Display a short summary of system information (product, serial number, +firmware and the number of blades and I/O modules) in case of an +alert. +.IP "\-s, \-\-state" 4 +.IX Item "-s, --state" +Prefix each alert with its corresponding service state (i.e. warning, +critical etc.). This is useful in case of several alerts from the same +monitored system. +.IP "\-\-short\-state" 4 +.IX Item "--short-state" +Same as the \fB\-\-state\fR option above, except that the state is +abbreviated to a single letter (W=warning, C=critical etc.). +.IP "\-d, \-\-debug" 4 +.IX Item "-d, --debug" +Debug output. Will report status on all monitored subsystems, +regardless of their alert state. Will also report total power usage. +.IP "\-h, \-\-help" 4 +.IX Item "-h, --help" +Display help text. +.IP "\-V, \-\-version" 4 +.IX Item "-V, --version" +Display version info. +.SH "ADVANCED OPTIONS" +.IX Header "ADVANCED OPTIONS" +.IP "\-P, \-\-protocol \fI\s-1PROTOCOL\s0\fR" 4 +.IX Item "-P, --protocol PROTOCOL" +\&\s-1SNMP\s0 protocol version. This option is optional and expects a digit +(i.e. \f(CW1\fR, \f(CW2\fR or \f(CW3\fR) to define the \s-1SNMP\s0 version. The default is +\&\f(CW2\fR, i.e. \s-1SNMP\s0 version 2c. +.IP "\-\-port \fI\s-1PORT\s0\fR" 4 +.IX Item "--port PORT" +\&\s-1SNMP\s0 port of the remote (monitored) system. Defaults to the well-known +\&\s-1SNMP\s0 port 161. +.IP "\-U, \-\-username \fI\s-1SECURITYNAME\s0\fR" 4 +.IX Item "-U, --username SECURITYNAME" +[SNMPv3] The User-based Security Model (\s-1USM\s0) used by SNMPv3 requires +that a securityName be specified. This option is required when using +\&\s-1SNMP\s0 version 3, and expects a string 1 to 32 octets in lenght. +.IP "\-\-authpassword \fI\s-1PASSWORD\s0\fR, \-\-authkey \fI\s-1KEY\s0\fR" 4 +.IX Item "--authpassword PASSWORD, --authkey KEY" +[SNMPv3] By default a securityLevel of \f(CW\*(C`noAuthNoPriv\*(C'\fR is assumed. If +the \-\-authpassword option is specified, the securityLevel becomes +\&\f(CW\*(C`authNoPriv\*(C'\fR. The \-\-authpassword option expects a string which is at +least 1 octet in length as argument. +.Sp +Optionally, instead of the \-\-authpassword option, the \-\-authkey option +can be used so that a plain text password does not have to be +specified in a script. The \-\-authkey option expects a hexadecimal +string produced by localizing the password with the +authoritativeEngineID for the specific destination device. The +\&\f(CW\*(C`snmpkey\*(C'\fR utility included with the Net::SNMP distribution can be +used to create the hexadecimal string (see snmpkey). +.IP "\-\-authprotocol \fI\s-1ALGORITHM\s0\fR" 4 +.IX Item "--authprotocol ALGORITHM" +[SNMPv3] Two different hash algorithms are defined by SNMPv3 which can +be used by the Security Model for authentication. These algorithms are +\&\s-1HMAC\-MD5\-96\s0 \f(CW\*(C`MD5\*(C'\fR (\s-1RFC\s0 1321) and \s-1HMAC\-SHA\-96\s0 \f(CW\*(C`SHA\-1\*(C'\fR (\s-1NIST\s0 \s-1FIPS\s0 \s-1PUB\s0 +180\-1). The default algorithm used by the plugin is \s-1HMAC\-MD5\-96\s0. This +behavior can be changed by using this option. The option expects +either the string \f(CW\*(C`md5\*(C'\fR or \f(CW\*(C`sha\*(C'\fR to be passed as argument to modify +the hash algorithm. +.IP "\-\-privpassword \fI\s-1PASSWORD\s0\fR, \-\-privkey \fI\s-1KEY\s0\fR" 4 +.IX Item "--privpassword PASSWORD, --privkey KEY" +[SNMPv3] By specifying the options \-\-privkey or \-\-privpassword, the +securityLevel associated with the object becomes +\&\f(CW\*(C`authPriv\*(C'\fR. According to SNMPv3, privacy requires the use of +authentication. Therefore, if either of these two options are present +and the \-\-authkey or \-\-authpassword arguments are missing, the +creation of the object fails. The \-\-privkey and \-\-privpassword +options expect the same input as the \-\-authkey and \-\-authpassword +options respectively. +.IP "\-\-privprotocol \fI\s-1ALGORITHM\s0\fR" 4 +.IX Item "--privprotocol ALGORITHM" +[SNMPv3] The User-based Security Model described in \s-1RFC\s0 3414 defines a +single encryption protocol to be used for privacy. This protocol, +CBC-DES \f(CW\*(C`DES\*(C'\fR (\s-1NIST\s0 \s-1FIPS\s0 \s-1PUB\s0 46\-1), is used by default or if the +string \f(CW\*(C`des\*(C'\fR is passed to the \-\-privprotocol option. The Net::SNMP +module also supports \s-1RFC\s0 3826 which describes the use of +\&\s-1CFB128\-AES\-128\s0 \f(CW\*(C`AES\*(C'\fR (\s-1NIST\s0 \s-1FIPS\s0 \s-1PUB\s0 197) in the \s-1USM\s0. The \s-1AES\s0 +encryption protocol can be selected by passing \f(CW\*(C`aes\*(C'\fR or \f(CW\*(C`aes128\*(C'\fR to +the \-\-privprotocol option. +.Sp +One of the following arguments are required: des, aes, aes128, 3des, +3desde +.IP "\-\-linebreak=\fI\s-1STRING\s0\fR" 4 +.IX Item "--linebreak=STRING" +check_hp_bladechassis will sometimes report more than one line, +e.g. if there are several alerts. If the script has a \s-1TTY\s0, it will use +regular linebreaks. If not (which is the case with \s-1NRPE\s0) it will use +\&\s-1HTML\s0 linebreaks. Sometimes it can be useful to control what the plugin +uses as a line separator, and this option provides that control. +.Sp +The argument is the exact string to be used as the line +separator. There are two exceptions, i.e. two keywords that translates +to the following: +.RS 4 +.IP "\fB\s-1REG\s0\fR" 4 +.IX Item "REG" +Regular linebreaks, i.e. \*(L"\en\*(R". +.IP "\fB\s-1HTML\s0\fR" 4 +.IX Item "HTML" +\&\s-1HTML\s0 linebreaks, i.e. \*(L"<br/>\*(R". +.RE +.RS 4 +.Sp +This is a rather special option that is normally not needed. The +default behaviour should be sufficient for most users. +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +The option \f(CW\*(C`\-\-debug\*(C'\fR (or \f(CW\*(C`\-d\*(C'\fR) can be specified to display status +of all components. +.SH "DEPENDENCIES" +.IX Header "DEPENDENCIES" +The perl module Net::SNMP is required on the Nagios host. +.SH "EXIT STATUS" +.IX Header "EXIT STATUS" +If no errors are discovered, a value of 0 (\s-1OK\s0) is returned. An exit +value of 1 (\s-1WARNING\s0) signifies one or more non-critical errors, while +2 (\s-1CRITICAL\s0) signifies one or more critical errors. +.Sp +The exit value 3 (\s-1UNKNOWN\s0) is reserved for errors within the script, +or errors getting values via \s-1SNMP\s0. +.SH "AUTHOR" +.IX Header "AUTHOR" +Written by Trond H. Amundsen <t.h.amundsen@usit.uio.no> +.SH "BUGS AND LIMITATIONS" +.IX Header "BUGS AND LIMITATIONS" +None known at present. +.SH "INCOMPATIBILITIES" +.IX Header "INCOMPATIBILITIES" +None known at present. +.Sp +Note that as of this writing, the plugin is only tested against the +c7000 enclosure. +.SH "REPORTING BUGS" +.IX Header "REPORTING BUGS" +Report bugs to <t.h.amundsen@usit.uio.no> +.SH "LICENSE AND COPYRIGHT" +.IX Header "LICENSE AND COPYRIGHT" +This program is free software: you can redistribute it and/or modify +it under the terms of the \s-1GNU\s0 General Public License as published by +the Free Software Foundation, either version 3 of the License, or (at +your option) any later version. +.Sp +This program is distributed in the hope that it will be useful, but +\&\s-1WITHOUT\s0 \s-1ANY\s0 \s-1WARRANTY\s0; without even the implied warranty of +\&\s-1MERCHANTABILITY\s0 or \s-1FITNESS\s0 \s-1FOR\s0 A \s-1PARTICULAR\s0 \s-1PURPOSE\s0. See the \s-1GNU\s0 +General Public License for more details. +.Sp +You should have received a copy of the \s-1GNU\s0 General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +<http://folk.uio.no/trondham/software/check_hp_bladechassis.html> diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/check_hp_bladechassis.php b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/check_hp_bladechassis.php new file mode 100644 index 0000000..b3525fc --- /dev/null +++ b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/check_hp_bladechassis.php @@ -0,0 +1,42 @@ +<?php +# +# PNP4Nagios template for check_hp_bladechassis +# http://folk.uio.no/trondham/software/check_hp_bladechassis.html +# +# $Id: check_hp_bladechassis.php 15736 2009-11-06 14:10:38Z trondham $ +# + +# Color for power usage in watts +$PWRcolor = "66FF00"; + +# Counters +$count = 0; # general counter + +# Title +$def_title = 'HP Blade Enclosure'; + +# Loop through the performance data +foreach ($DS as $i) { + + # Total Wattage + if(preg_match('/^total_watt/',$NAME[$i]) && $UNIT[$i] == 'W') { + $NAME[$i] = 'Total Power Usage'; + + ++$count; + $ds_name[$count] = "Total Power Consumption"; + $vlabel = "Watt"; + + $title = $ds_name[$count]; + + $opt[$count] = "--slope-mode --vertical-label \"$vlabel\" --title \"$def_title: $title\" "; + + $def[$count] = "DEF:var$i=$rrdfile:$DS[$i]:AVERAGE " ; + $def[$count] .= "AREA:var$i#$PWRcolor:\"$NAME[$i]\" " ; + $def[$count] .= "LINE:var$i#000000: " ; + $def[$count] .= "GPRINT:var$i:LAST:\"%6.0lf $UNIT[$i] last \" "; + $def[$count] .= "GPRINT:var$i:MAX:\"%6.0lf $UNIT[$i] max \" "; + $def[$count] .= "GPRINT:var$i:AVERAGE:\"%6.2lf $UNIT[$i] avg \\n\" "; + } + +} +?> diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/check_hp_bladechassis.pod b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/check_hp_bladechassis.pod new file mode 100644 index 0000000..ada33e1 --- /dev/null +++ b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/check_hp_bladechassis.pod @@ -0,0 +1,245 @@ +# Man page for check_hp_bladechassis + +# Man page created with: +# +# pod2man -s 3pm -r "`./check_hp_bladechassis -V | head -n 1`" -c 'Nagios plugin' check_hp_bladechassis.pod check_hp_bladechassis.3pm +# + + +=head1 NAME + +check_hp_bladechassis - Nagios plugin for checking the status of HP +blade enclosures via SNMP + +=head1 SYNOPSIS + +check_hp_bladechassis -H <I<HOSTNAME>> [I<OPTION>]... + +=head1 DESCRIPTION + +check_hp_bladechassis is a plugin for the Nagios monitoring software +that checks the hardware health status of a HP blade +enclosure/chassis. The plugin is only tested with the c7000 enclosure. + +=head1 COMMON OPTIONS + +=over 4 + +=item -H, --hostname I<HOSTNAME> + +The transport address (hostname or IP) of the blade enclosure you want +to monitor. This option is mandatory. + +=item -C, --community I<COMMUNITY> + +This option expects a string that is to be used as the SNMP community +name when using SNMP version 1 or 2c. By default the community name +is set to C<public> if the option is not present. + +=item -p, --perfdata + +Collect performance data. Performance data collected is total +power usage. + +=item -t, --timeout I<SECONDS> + +The number of seconds after which the plugin will abort. Default +timeout is 30 seconds if the option is not present. + +=item -i, --info + +Prefix any alerts with the enclosure serial number. + +=item -v, --verbose + +In case of an alert, the part number, spare part number and serial +number of the failed component is appended to the alert message. + +=item -e, --extinfo + +Display a short summary of system information (product, serial number, +firmware and the number of blades and I/O modules) in case of an +alert. + +=item -s, --state + +Prefix each alert with its corresponding service state (i.e. warning, +critical etc.). This is useful in case of several alerts from the same +monitored system. + +=item --short-state + +Same as the B<--state> option above, except that the state is +abbreviated to a single letter (W=warning, C=critical etc.). + +=item -d, --debug + +Debug output. Will report status on all monitored subsystems, +regardless of their alert state. Will also report total power usage. + +=item -h, --help + +Display help text. + +=item -V, --version + +Display version info. + +=back + +=head1 ADVANCED OPTIONS + +=over 4 + +=item -P, --protocol I<PROTOCOL> + +SNMP protocol version. This option is optional and expects a digit +(i.e. C<1>, C<2> or C<3>) to define the SNMP version. The default is +C<2>, i.e. SNMP version 2c. + +=item --port I<PORT> + +SNMP port of the remote (monitored) system. Defaults to the well-known +SNMP port 161. + +=item -U, --username I<SECURITYNAME> + +[SNMPv3] The User-based Security Model (USM) used by SNMPv3 requires +that a securityName be specified. This option is required when using +SNMP version 3, and expects a string 1 to 32 octets in lenght. + +=item --authpassword I<PASSWORD>, --authkey I<KEY> + +[SNMPv3] By default a securityLevel of C<noAuthNoPriv> is assumed. If +the --authpassword option is specified, the securityLevel becomes +C<authNoPriv>. The --authpassword option expects a string which is at +least 1 octet in length as argument. + +Optionally, instead of the --authpassword option, the --authkey option +can be used so that a plain text password does not have to be +specified in a script. The --authkey option expects a hexadecimal +string produced by localizing the password with the +authoritativeEngineID for the specific destination device. The +C<snmpkey> utility included with the Net::SNMP distribution can be +used to create the hexadecimal string (see L<snmpkey>). + +=item --authprotocol I<ALGORITHM> + +[SNMPv3] Two different hash algorithms are defined by SNMPv3 which can +be used by the Security Model for authentication. These algorithms are +HMAC-MD5-96 C<MD5> (RFC 1321) and HMAC-SHA-96 C<SHA-1> (NIST FIPS PUB +180-1). The default algorithm used by the plugin is HMAC-MD5-96. This +behavior can be changed by using this option. The option expects +either the string C<md5> or C<sha> to be passed as argument to modify +the hash algorithm. + +=item --privpassword I<PASSWORD>, --privkey I<KEY> + +[SNMPv3] By specifying the options --privkey or --privpassword, the +securityLevel associated with the object becomes +C<authPriv>. According to SNMPv3, privacy requires the use of +authentication. Therefore, if either of these two options are present +and the --authkey or --authpassword arguments are missing, the +creation of the object fails. The --privkey and --privpassword +options expect the same input as the --authkey and --authpassword +options respectively. + +=item --privprotocol I<ALGORITHM> + +[SNMPv3] The User-based Security Model described in RFC 3414 defines a +single encryption protocol to be used for privacy. This protocol, +CBC-DES C<DES> (NIST FIPS PUB 46-1), is used by default or if the +string C<des> is passed to the --privprotocol option. The Net::SNMP +module also supports RFC 3826 which describes the use of +CFB128-AES-128 C<AES> (NIST FIPS PUB 197) in the USM. The AES +encryption protocol can be selected by passing C<aes> or C<aes128> to +the --privprotocol option. + +One of the following arguments are required: des, aes, aes128, 3des, +3desde + +=item --linebreak=I<STRING> + +check_hp_bladechassis will sometimes report more than one line, +e.g. if there are several alerts. If the script has a TTY, it will use +regular linebreaks. If not (which is the case with NRPE) it will use +HTML linebreaks. Sometimes it can be useful to control what the plugin +uses as a line separator, and this option provides that control. + +The argument is the exact string to be used as the line +separator. There are two exceptions, i.e. two keywords that translates +to the following: + +=over 4 + +=item B<REG> + +Regular linebreaks, i.e. "\n". + +=item B<HTML> + +HTML linebreaks, i.e. "<br/>". + +=back + +This is a rather special option that is normally not needed. The +default behaviour should be sufficient for most users. + + +=head1 DIAGNOSTICS + +The option C<--debug> (or C<-d>) can be specified to display status +of all components. + +=head1 DEPENDENCIES + +The perl module Net::SNMP is required on the Nagios host. + +=head1 EXIT STATUS + +If no errors are discovered, a value of 0 (OK) is returned. An exit +value of 1 (WARNING) signifies one or more non-critical errors, while +2 (CRITICAL) signifies one or more critical errors. + +The exit value 3 (UNKNOWN) is reserved for errors within the script, +or errors getting values via SNMP. + +=head1 AUTHOR + +Written by Trond H. Amundsen <t.h.amundsen@usit.uio.no> + +=head1 BUGS AND LIMITATIONS + +None known at present. + +=head1 INCOMPATIBILITIES + +None known at present. + +Note that as of this writing, the plugin is only tested against the +c7000 enclosure. + +=head1 REPORTING BUGS + +Report bugs to <t.h.amundsen@usit.uio.no> + +=head1 LICENSE AND COPYRIGHT + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or (at +your option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see L<http://www.gnu.org/licenses/>. + +=head1 SEE ALSO + +L<http://folk.uio.no/trondham/software/check_hp_bladechassis.html> + +=cut diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/check_hp_bladechassis.spec b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/check_hp_bladechassis.spec new file mode 100644 index 0000000..76f3490 --- /dev/null +++ b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/check_hp_bladechassis.spec @@ -0,0 +1,52 @@ +Summary: A Nagios plugin to check HP blade enclosures +Name: check_hp_bladechassis +Version: 1.0.1 +Release: 1%{?dist} +License: GPL +Packager: Trond Hasle Amundsen <t.h.amundsen@usit.uio.no> +Group: Applications/System +BuildRoot: %{_tmppath}/%{name}-%{version}-root +URL: http://folk.uio.no/trondham/software/%{name}.html +Source0: http://folk.uio.no/trondham/software/%{name}-%{version}.tar.gz +BuildRequires: perl + +Requires: perl >= 5.6.0 +Requires: perl(Net::SNMP) +Requires: perl(Getopt::Long) + +%description +check_hp_bladechassis is a plugin for the Nagios monitoring +software which checks the hardware health of HP blade enclosures via +SNMP. The plugin is only tested with the c7000 enclosure. + +%prep +%setup -q + +%build +pod2man -s 8 -r "%{name} %{version}" -c "Nagios plugin" %{name}.pod %{name}.8 +gzip %{name}.8 + +%install +mkdir -p %{buildroot}/%{_libdir}/nagios/plugins +mkdir -p %{buildroot}/%{_mandir}/man8 +install -p -m 0755 %{name} %{buildroot}/%{_libdir}/nagios/plugins +install -m 0644 %{name}.8.gz %{buildroot}/%{_mandir}/man8 + +%clean +rm -rf %{buildroot} + +%files +%defattr(-, root, root, -) +%doc README COPYING CHANGES +%{_libdir}/nagios/plugins/%{name} +%attr(0755, root, root) %{_mandir}/man8/%{name}.8.gz + + +%changelog +* Fri Jan 22 2010 Trond H. Amundsen <t.h.amundsen@usit.uio.no> - 1.0.1-1 +- Version 1.0.1 +- Added buildrequires perl, fixed requires for perl modules +- New location of script and manpage + +* Fri Aug 14 2009 Trond H. Amundsen <t.h.amundsen@usit.uio.no> - 1.0.0-1 +- Initial release diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/install.sh b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/install.sh new file mode 100755 index 0000000..bbad493 --- /dev/null +++ b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis-1.0.1/install.sh @@ -0,0 +1,50 @@ +#!/bin/sh + +if [ "`uname -m`" = "x86_64" ]; then + def_install_dir=/usr/lib64/nagios/plugins +else + def_install_dir=/usr/lib/nagios/plugins +fi +def_mandir=/usr/share/man/man8 + +if [ "$1" = "-q" ]; then + install_dir=$def_install_dir + mandir=$def_mandir +else + echo -n "Plugin dir [$def_install_dir]: " + read install_dir + if [ "$install_dir" = "" ]; then + install_dir=$def_install_dir + fi + echo -n "Man page dir [$def_mandir]: " + read mandir + if [ "$mandir" = "" ]; then + mandir=$def_mandir + fi +fi + +if [ -d $install_dir ]; then + : +else + echo "ERROR: Plugin directory $install_dir doesn't exist," + echo "ERROR: or is not a directory" + exit 1 +fi + +if [ -d $mandir ]; then + : +else + echo "ERROR: Man page directory $mandir doesn't exist," + echo "ERROR: or is not a directory" + exit 1 +fi + +# The script and symlinks +cp check_hp_bladechassis $install_dir + +# The man page +cp check_hp_bladechassis.8 $mandir + +# Done +echo "done." +exit 0 diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis.cfg b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis.cfg new file mode 100644 index 0000000..458af00 --- /dev/null +++ b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/check_hp_bladechassis.cfg @@ -0,0 +1,6 @@ +# HP blade enclosure check +define command { + command_name check_hp_bladechassis + command_line /usr/lib/nagios/plugins/check_hp_bladechassis -H $HOSTADDRESS$ +} + diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/control b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/control new file mode 100644 index 0000000..1c71876 --- /dev/null +++ b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/control @@ -0,0 +1,8 @@ +Homepage: http://folk.uio.no/trondham/software/check_hp_bladechassis.html +Watch: http://folk.uio.no/trondham/software/check_hp_bladechassis.html .*href="files/check_hp_bladechassis-([0-9.]+)\.tar\.gz +Uploaders: Bernd Zeimetz <bzed@debian.org> +Description: plugin to check the hardware health of + HP blade enclosures via SNMP. + The plugin is only tested with the c7000 enclosure. +Recommends: libnet-snmp-perl +Version: 1.0.1 diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/copyright b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/copyright new file mode 100644 index 0000000..d2e757a --- /dev/null +++ b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/copyright @@ -0,0 +1,15 @@ +AUTHOR: Trond H. Amundsen <t.h.amundsen@usit.uio.no> + + +Copyright (C) 2010 Trond H. Amundsen + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/src b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/src new file mode 120000 index 0000000..51429e6 --- /dev/null +++ b/nagios-plugins-contrib-24.20190301~bpo9+1/check_hp_bladechassis/src @@ -0,0 +1 @@ +check_hp_bladechassis-1.0.1
\ No newline at end of file |