Handle negative values properly with check_snmp

check_snmp becomes capable of evaluating negative values properly,
but it might be returning CRITICALs where it used to return OK and was ignored,
if a negative value turns out to actually be a valid value.
If negative values are valid, this can be worked around,
by adding "~:" to the warning/critical threshold : 100 -> ~:100
Fix check_mysql.c client options from file

If you don't specify a group or a file to read data from the plugin tries to read from several files that don't exist and no groups.
check_ldap: add certificate support

Here's a patch adding the certificate expiration check feature to the ldap
plugin, based on the http plugin. For some unknown reason, probably due to
the way secure connection is established, it doesn't work with the --ssl
options, only for the --starttls one.
--
Just turning attached patch of github issue #1067 into a push request.
(Closes #1067)
check_swap: returns OK, if no swap activated

My swap was not activated on boot for unknown reason and nagios does not
report this as a problem. Here is an example:

[root@kecom ~]# rpm -q nagios-plugins
nagios-plugins-1.4.13-11.fc10.i386
[root@kecom ~]# /usr/lib/nagios/plugins/check_swap -w 80% -c 40% -c 1 -w 2
SWAP CRITICAL - 100% free (0 MB out of 0 MB) |swap=0MB;0;0;0;0

If there is no swap and users is trying to test percentage of free swap,
consider 0 MB free swap space as problem, or of free/total raises division
by zero, then set percentage to 0%, not to 100%.
--
Just turning attached patch of github issue #896 into a push request.
(Closes #896)
check_ssh: check protocol

It would be useful to be able to detect the protocols supported by the remote
ssh server to locate any using the insecure ssh v1 protocol. This patch
attempts to match against the protocol string in the ssh response.

Example:

check_ssh -H my.host.com -P 2.0
--
Just turning attached patch of github issue #780 into a push request.
(Closes #780)
check_mailq: adding nullmailer support

Just turning attached patch of github issue #740 into a push request.
(Closes #740)
check_disk: no longer hangs on hanging filesystems

Just turning attached patch of github issue #867 into a push request.
check_dns: add AAAA,MX,TXT,SRV,CNAME

Just turning attached patch of github issue #894 into a push request.
check_disk: show troubled partition in verbose mode

Just turning attached patch of github issue #984 into a push request.

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.
print subject name in certificate check

Just turning attached patch of github issue #1028 into a push request
(with small adjustments).

Submitted by osk on 2011-12-19 18:01:48

This patch prints the subject name in certificate checks.
It also changes the date format to the more common YYYY-MM-DD HH:MM (unless AMERICAN_DATE_FORMAT is defined).