* check_ssh: properly parse a delayed version control string This resolves an issue with SSH servers which do not respond with their version control string as the first thing in the SSH protocol version exchange phase after connection establishment. This patch also makes sure that we disregard a potential comment in the version exchange string to avoid nonsense mismatches. In the future, we might want to add the capability to match against a user specified comment. In addition, the patch largely improves the communication towards the server, which adds better protocol adherence. Of course, new test cases are added to support the trigger and guard against regressions of the bugs solved by this patch. This fixes op5#7945 (https://bugs.op5.com/view.php?id=7945) Signed-off-by: Anton Lofgren <alofgren@op5.com> * check_ssh.t: Fix a few typos Signed-off-by: Anton Lofgren <alofgren@op5.com> * check_ssh: Handle non-alpha software versions This patch fixes a bug where we would reject version control strings that do not contain letters, because the assumption is made that they always do. This is not required by the RFC however, and there exist implementations that do not contain letters. I've also added a few references to the RFC to make the process of parsing the control string more apparent. This fixes op5#8716 (https://bugs.op5.com/view.php?id=8716) Signed-off-by: Anton Lofgren <alofgren@op5.com> * check_ssh: Fix a typo in "remote-protocol parameter remote-protcol -> remote-protocol Signed-off-by: Anton Lofgren <alofgren@op5.com> * Remove unused variable * Formating fixes * Update translations * Remove merge conflict artefact from previous merge * Set fixed include paths * Improve code style to be slightly more readable * Update test cases for different netcat behaviour and reduce sleep time --------- Signed-off-by: Anton Lofgren <alofgren@op5.com> Co-authored-by: Anton Lofgren <alofgren@op5.com> |
||
|---|---|---|
| .github | ||
| build-aux | ||
| config_test | ||
| doc | ||
| gl | ||
| lib | ||
| m4 | ||
| perlmods | ||
| pkg | ||
| plugins | ||
| plugins-root | ||
| plugins-scripts | ||
| tap | ||
| tools | ||
| .gitignore | ||
| ABOUT-NLS | ||
| acinclude.m4 | ||
| ACKNOWLEDGEMENTS | ||
| AUTHORS | ||
| autogen.sh | ||
| CODING | ||
| config.rpath | ||
| configure.ac | ||
| COPYING | ||
| FAQ | ||
| Makefile.am | ||
| mkinstalldirs | ||
| NEWS | ||
| NP-VERSION-GEN | ||
| NPTest.pm | ||
| opttest.pl | ||
| README | ||
| README.md | ||
| REQUIREMENTS | ||
| ROADMAP | ||
| SUPPORT | ||
| test.pl.in | ||
| THANKS.in | ||
Monitoring Plugins
-
For instructions on installing these plugins for use with your monitoring system, see below. In addition, generic instructions for the GNU toolchain can be found in the
INSTALLfile. -
For major changes between releases, read the
NEWSfile. -
For information on detailed changes that have been made or plugins that have been added, read the
ChangeLogfile. -
Some plugins require that you have additional programs or libraries installed on your system before they can be used. Plugins that are dependent on other programs/libraries that are missing are usually not compiled. Read the
REQUIREMENTSfile for more information. -
Individual plugins are self-documenting. All plugins that comply with the basic guidelines for development will provide detailed help when invoked with the
-hor--helpoptions.
You can check the latest plugins at:
Send an email to help@monitoring-plugins.org for assistance. Please
include the OS type and version that you are using. Also, run the plugin
with the -vvv option and provide the resulting version information. Of
course, there may be additional diagnostic information required as well.
Use good judgment.
Send an email to devel@monitoring-plugins.org for developer discussions.
For patch submissions and bug reports, please use the appropriate resources at:
Installation Instructions
-
If you are using the Git tree, you will need m4, gettext, automake, and autoconf. To start out, run:
./tools/setupFor more detail, see the developer guidelines at https://www.monitoring-plugins.org/doc/guidelines.html.
-
Run the configure script to initialize variables and create a Makefile, etc.
./configure --prefix=BASEDIRECTORY --with-cgiurl=SOMEURLReplace
BASEDIRECTORYwith the path of the directory under which your monitoring system is installed (default is/usr/local), and replaceSOMEURLwith the path used to access the monitoring system CGIs with a web browser (default is/nagios/cgi-bin). -
Compile the plugins with the following command:
make -
Install the compiled plugins and plugin scripts with the following command:
make installThe installation procedure will attempt to place the plugins in a
libexec/subdirectory in the base directory you specified with the--prefixargument to the configure script. -
There are some plugins that require setuid. If you run make install as a non-root user, they will not be installed. To install, switch to root and run:
make install-root
That's it! If you have any problems or questions, feel free to send an email to help@monitoring-plugins.org.
License Notice
You can redistribute and/or modify this software 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; with the additional exemption that compiling, linking, and/or using OpenSSL is allowed.
This software 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 COPYING file for the complete text of the GNU General Public
License, version 3.