check_procs: Add delay after forking in test

Forking raises a race condition, where the parent might run the
test before the child has had time to fork. If that happens,
an error similar to this is produced:
 Failed test 'Output correct'
 at ./t/check_procs.t line 32.
                 'PROCS OK: 0 processes with args 'sleep 7' | processes=0;;;0;'
   doesn't match '/^PROCS OK: 1 process?/'

Sleeping a bit should avoid the problem. It might be enough to
sleep less than a second, but perl's built-in sleep function only
supports integer seconds.

In our build environment, the build failed 3 of 4 times before
this patch. After the patch it failed 0 of 7 times.

Signed-off-by: Mikael Falkvidd <mfalkvidd@op5.com>
plugins/tests/check_http.t: Adjust date strings

Adjust the expected date strings to the now-localized output produced by
plugins/sslutils.c.

Closes #1275.
Use "C" locale when running test suite

Some of our tests check locale-dependent plugin output, so let's make
sure "make test" is always using the "C" locale.
check_disk: show troubled partition in verbose mode

I'm submitting a small patch to check_disk that will show which partitions are
actually causing the error state. This helps the human operator to quickly
identify the exact issue. I made it so a single -v flag is required so it
doesn't harm legacy code that may be parsing the original style of output.

Thanks to Jason Benguerel.
no need for the signed off messages in our changelog

Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
tools/generate-change-log: workaround for broken Text::Wrap

workaround for broken Text::Wrap:
"This shouldn't happen at /usr/share/perl/5.18/Text/Wrap.pm line 84."
changing huge to overflow make generating changelogs work again at
the price of not having changelog strictly cut of at 80 columns
anymore. Words longer than 80 characters will now printed in one
line. This mainly affects old sf.net urls.

Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
check_ntp_peer: do not use uninitialized results for max state

s/t/jresult are not initialized if there is no corresponding threshold
supplied. So we shouldn't use them for calculating our result.

Signed-off-by: Sven Nierlein <sven@nierlein.de>
plugins/t/check_dns.t - Fix Perl Warning

Resolves perl not understanding /d within "".

Apply& merge broke, this is taken from https://github.com/monitoring-plugins/monitoring-plugins/commit/c5a64eeef8340ff39fafb21878d92139b4c1fb73
tests: check_disk_smb may exit with critical for unresponsive hosts too

Unknown (ex. debian 7)
%> ./check_disk_smb -H 1.1.1.1 -s np_foobar -vvv
/usr/bin/smbclient //1.1.1.1/np_foobar -U guest% -c du
No Answer from Client

Critical (ex. debian 8)
%> ./check_disk_smb -H 1.1.1.1 -s np_foobar -vvv
/usr/bin/smbclient //1.1.1.1/np_foobar -U guest% -c du
Connection to 1.1.1.1 failed
CRITICAL

Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
tests: negate test fails when not run from plugins folder

Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
tests: skip extented snmp tests if snmpd has no perl support

solaris snmpd has no perl support by default, so this test will fail.

Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
check_by_ssh: added --hostname support

just like the guidelines and the help already suggests.

Signed-off-by: Sven Nierlein <sven@nierlein.de>
check_log.sh: droping path from basename while evaluating PROGNAME (Closes Debian Bug #758662)
Setting PATH at first
Add check_ifstatus option to ignore interfaces by name

Ignoring by index is not always an option, as the index can change on
chassis switches as blade configurations change.