Page 1 of 2

Plugins 2.1-RC1 Testing

Posted: Mon Dec 15, 2014 11:16 am
by sreinhardt
Hello all,

As we are nearing an official beta for plugins 2.1 release, I wanted to give you all the opportunity to see some of the changes for yourselves and maybe find a new bug or two, or request a feature of your own. Build instruction are below, and please note that you should only deploy these on testing systems and not in production until a full release has been made. If you have build issues please post them here, other issues with the plugins themselves once built should be a new thread in this forum please. Thanks for your time and effort!

Code: Select all

cd /tmp
git clone -b 2.1.0-beta-RC1 https://github.com/nagios-plugins/nagios-plugins.git nagios-plugins-beta
cd nagios-plugins-beta
./tools/setup
./configure --with-nagios-user=nagios --with-nagios-group=nagcmd --libexecdir=/usr/local/nagios/libexec
make
make install <- Only do this if you intend to run the with core or XI, and not just test them.
Either way you go with make install, you will have working executables in ./plugins, ./plugins-root, and ./plugins-scripts. You can change to any of those directories and execute just like from libexec normally. Feel free to check out the last 6 months or so of changes! We'll have an official RC1 out soon enough.

If you are getting make errors for missing po files or similar, you likely need to install automake, autoconf, libtool, and gettext packages. Then in the plugins root directory, run libtoolize -f and then re-run all steps from ./tools/setup and below.

Some items of interest, that I would like thoroughly tested are:

Many plugins with ssl usage - verify that ssl implementations are correct and working with expected protocols. A lot of changes were put into heartbleed, poodle, and other proper restrictions of allowed ciphers depending on the plugins usage. This is especially apparent with check_http.
Many changes and cleanup to base code shared between plugins. This may effect ini parsing, exiting, and some output messages. This was also a major part of coverity and gcc\clang cleanup.
check_procs - cgroups additions. More work is needed here to detect systems that do not support cgroups through ps commands, this only is an issue if -g is used on unsupported systems.
check_procs - additional HP-UX ps support.
check_http - chunked encoding is now supported without the use of additional flags. This is pretty awesome, but the patch may need some additional cleanup that further testing will show.
check_http - passing -k with host: ... now forces the use of your host header instead of plugins mangling and determining how it should be handled. Without a host: -k flag, normal -k operation should be in place.
check_log.sh - now has support for a warning value.
check_disk - if your system supports threading, check_disk will now thread when attempting to stat a disk. This prevents hanging on slow to respond file systems.
check_ssh - now supports ssh version checking
check_dig - now supports -4 and -6 flags
ALL plugins in /plugins/ have new timeout state changes. Please test the heck out of the code here as I will be too.

Re: Plugins 2.1-RC1 Testing

Posted: Tue Dec 16, 2014 1:00 am
by Box293
Thanks for all your hard work, giving it a go.

I'm getting the missing po files error:

Making all in po
make[2]: Entering directory `/tmp/nagios-plugins-beta/po'
test ! -f ./nagios-plugins.pot || \
test -z "fr.gmo de.gmo" || make fr.gmo de.gmo
make[3]: Entering directory `/tmp/nagios-plugins-beta/po'
rm -f fr.gmo && : -c --statistics -o fr.gmo fr.po
mv: cannot stat `t-fr.gmo': No such file or directory
make[3]: *** [fr.gmo] Error 1
make[3]: Leaving directory `/tmp/nagios-plugins-beta/po'
make[2]: *** [stamp-po] Error 2
make[2]: Leaving directory `/tmp/nagios-plugins-beta/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/nagios-plugins-beta'
make: *** [all] Error 2

I've done all these steps:
sreinhardt wrote:If you are getting make errors for missing po files or similar, you likely need to install automake, autoconf, and libtool. Then in the plugins root directory, run libtoolize -f and then re-run all steps from ./tools/setup and below.

This is on a freshly deployed Nagios XI 2014R2.0 VM (nagiosxi-2014r2.0-64.ova).

Attached is the log file of all steps taken.
2.1.0-beta-RC1.txt
(260.99 KiB) Downloaded 438 times

Re: Plugins 2.1-RC1 Testing

Posted: Tue Dec 16, 2014 3:49 am
by WillemDH
Hello,

Thanks for getting chunk encoding support on speed Spenser. I will not be able to test all the Nagios plugins, but I'm willing to test the check_http plugin. Could you give me some link to this beta version of the check_http plugin only?

Grtz

Willem

Re: Plugins 2.1-RC1 Testing

Posted: Tue Dec 16, 2014 7:52 am
by sreinhardt
Willem, It's going to be easiest if you pull the repository into something like /tmp and build there, otherwise I have to likely match a whole host of similar settings on one of my systems. If you stop after the make step, you will not have them moved into the libexec directory, but they will be available from the /tmp/nagios-plugins-beta/plugins folder.

Re: Plugins 2.1-RC1 Testing

Posted: Wed Dec 17, 2014 8:08 am
by WillemDH
Hey Spenser,

Build the repository and copied the check_http to QA first. My colleague Michiel did some tests and moved the check_http to production today. Everything seems to work as expected. We will monitor our web applications the next weeks to see if anything unexpected comes up.

Thanks again.

Willem

Re: Plugins 2.1-RC1 Testing

Posted: Fri Dec 19, 2014 7:07 pm
by mikew
Thanks for the efforts. People do not realize how important the standard Nagios plugins are to the overall future of Nagios, especially when you recognize that the C compiled plugins are 50 times more efficient that Perl, Bash, etc. Large scale installs live or die by these plugins because of resource issues.

Because of the importance, I am working on several books, one on Monitoring Windows and one on Monitoring Linux that should cover each of these plugins and the features they offer. I will shift from the current stable version to use these in the next few weeks.

My goal is to illustrate 95% of the options which each plugin offers with screenshots and also building a searchable database for Core and XI.

Currently I have 1/3 completed. Hope to have all completed by Feb. 1,2014.

Re: Plugins 2.1-RC1 Testing

Posted: Mon Dec 22, 2014 2:06 pm
by eloyd
Mike,

I am more interested in the time machine that you are using to complete your books by Feb, 2014, than I am the books themselves. :-)
Hope to have all completed by Feb. 1,2014.

Re: Plugins 2.1-RC1 Testing

Posted: Mon Dec 22, 2014 2:19 pm
by eloyd
I'm getting the same errors as Troy. This was compiled on a cloned VM of one of our internal production Nagios Core machines. Had to install git and automate on it but it is otherwise as lean as it can be as far as installed code. In other words, enough to run Nagios Core 4.0.7 and not have any extra packages.

Here's what I got. I did not try to fix it yet, in case you wanted to do that while sipping Mai Tais and Scotch over Christmas break. :-)

Code: Select all

Making all in po
make[2]: Entering directory `/tmp/nagios-plugins-beta/po'
test ! -f ./nagios-plugins.pot || \
          test -z "fr.gmo de.gmo" || make fr.gmo de.gmo
make[3]: Entering directory `/tmp/nagios-plugins-beta/po'
: --update fr.po nagios-plugins.pot
rm -f fr.gmo && : -c --statistics -o fr.gmo fr.po
mv: cannot stat `t-fr.gmo': No such file or directory
make[3]: *** [fr.gmo] Error 1
make[3]: Leaving directory `/tmp/nagios-plugins-beta/po'
make[2]: *** [stamp-po] Error 2
make[2]: Leaving directory `/tmp/nagios-plugins-beta/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/nagios-plugins-beta'
make: *** [all] Error 2

Re: Plugins 2.1-RC1 Testing

Posted: Fri Jan 09, 2015 10:19 pm
by eloyd
Just wondering if anyone managed to get past the compile?

Re: Plugins 2.1-RC1 Testing

Posted: Thu Jan 22, 2015 7:21 pm
by Box293
Not me, I've been waiting for some direction on what to do next.