aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-10-03Tests for check_aptGravatar Alex Bradley
Add a hidden "--input-file" option to check_apt (modelled on check_procs) so that it can take files with sample apt output as input. Add tests for my SECURITY_RE fix (debian3) and for the include, exclude and critical options.
2012-10-03Fix SourceForge bug 1904965 - check_apt: SECURITY_RE is not correctGravatar Alex Bradley
For the default security upgrade detection regular expression, match "Debian-Security" in package description when it's anywhere after the first parenthesis (not just the second space-delimited word). For example: ... (4.0.1-5.4 Debian:6.0.6/stable, Debian-Security:6.0/stable ...
2012-10-02Don't prepend "^Inst" or append a space to the "include", "exclude", orGravatar Alex Bradley
"critical" regular expressions. Instead, check for lines beginning with "Inst" using strncmp and apply the regular expressions only when such lines are found. Fixes Debian bug #522812, along the lines suggested by the bug submitter, Justin T Pryzby.
2012-09-25Merge pull request #19 from gvarisco/patch-1Gravatar Sven Nierlein
Update plugins/check_disk.c
2012-09-25Update plugins/check_disk.cGravatar Gianluca Varisco
CRITCAL -> CRITICAL typo
2012-09-25Merge pull request #18 from abradley/recoverypctGravatar Sven Nierlein
Bugfix: Detect array recovery percentages < 10% in check_linux_raid.pl
2012-09-21This patch fixes the regular expression for the array recoveryGravatar Alex Bradley
completion percentage to detect the percentage when there is more than one space between between "recovery =" and the percentage. (When the percentage is less than 10%, /proc/mdstat shows it left-padded with an extra space: "recovery = 7.6%".)
2012-08-10check_http: Update description of -C optionGravatar Holger Weiss
Mention that the -C option now accepts two comma-separated values.
2012-08-10check_http: Add missing newline to --help outputGravatar Holger Weiss
2012-08-10fixing bug in certificate experiation patch checking for bad warning ↵Gravatar William Leibzon
threshold data
2012-08-10tests/check_http.t: Fix whitespace issuesGravatar Holger Weiss
In tests/check_http.t, tabs are used for indentation. While at it, apply another few cosmetic changes.
2012-08-10tests/check_http.t: Update the number of SSL testsGravatar Holger Weiss
2012-08-10tests/check_http.t: Fix test caseGravatar Holger Weiss
Fix the test case which is meant to make sure that check_http -C <n>,<m> [...] returns a CRITICAL state if <m> is large enough.
2012-08-06NEWS: Mention fixed compilation without SSLGravatar Holger Weiss
2012-08-06check_ntp_peer: Fix --help output for -m and -nGravatar Holger Weiss
Fix the threshold specifications in the example for checking the number of truechimers. Reported by Marc Haber on the "nagios-users" mailing list (Message-ID: <20120722142840.GA6931@torres.zugschlus.de>).
2012-08-06check_ntp_peer: Fix --help output for -W and -CGravatar Holger Weiss
Mention that the check_ntp_peer plugin checks the stratum of the synchronization peer, not the stratum of the monitored server itself. Thanks to Marc Haber for bringing this up on the "nagios-users" mailing list (Message-ID: <20120722142840.GA6931@torres.zugschlus.de>).
2012-07-18check_http: Fix whitespace issuesGravatar Holger Weiss
In check_http.c, tabs aren't used for indentation.
2012-07-18check_http: Fix compilation without SSL supportGravatar Holger Weiss
The "ssl_version" variable was undeclared when the plugins were compiled --without-openssl and --without-gnutls. Bug reported by Michael LaCorte on the "nagiosplug-help" mailing list (Message-ID: <CCD30C91-A2A8-463A-82A9-F99B54F741D3@gmail.com>).
2012-07-04NEWS: Mention the new check_dbi pluginGravatar Holger Weiss
2012-07-04Merge remote-tracking branch 'github/tokkee/sh/check_dbi'Gravatar Holger Weiss
2012-07-04Re-added missing variable declarations to check_smtp.cGravatar Eric Stanley
A recent update removed the declarations for a couple variables in check_smtp.c that are still being used, which caused a failure in the compilation of check_smtp.c. This commit restores those variable declarations so the check_smtp.c will again compile.
2012-06-29check_smtp: Remove a comment regarding MAIL FROMGravatar Holger Weiss
Earlier versions of check_smtp generated an (invalid) "MAIL FROM" command without arguments by default. These days, a "MAIL FROM" command is only sent if the --from option is specified. This commit removes a comment which explains the old behaviour, and it updates a variable name accordingly.
2012-06-29check_smtp: Fix help and usage output regarding -RGravatar Holger Weiss
2012-06-29NEWS, THANKS: Mention Anders Kaseorg's changesGravatar Holger Weiss
2012-06-29check_smtp: Fix strcat overflowsGravatar Anders Kaseorg
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-06-29Die when asprintf failsGravatar Anders Kaseorg
Fixes many instances of warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-06-29check_smtp: Strip angle brackets from -f argument, if providedGravatar Anders Kaseorg
Apparently some people used -f '<nagios@example.com>' to work around the bug I just fixed in the MAIL FROM: command generation. Although the resulting command wasn't RFC-compliant, it was working with some MTAs, so let's continue to support this syntax now that we generate RFC-compliant commands. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-06-29check_smtp: Change MAIL FROM: command to comply with the SMTP standardGravatar Anders Kaseorg
Every version of the SMTP standard (from RFC 821 to the current RFC 5321) requires the address following MAIL FROM: to follow the colon immediately (with no space) and to be surrounded by angle brackets. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-06-28Remove the package.def fileGravatar Holger Weiss
The package.def file is not included in release tarballs, and I'm not aware of anyone (still) using it.
2012-06-27Remove #990948 from the BUGS fileGravatar Holger Weiss
Issue #990948 has been fixed by commit 0892c4ac28c4c2e3b6275187f845813b4cd6d320.
2012-06-27Prepare for the 1.4.16 releaseGravatar Holger Weiss
2012-06-27check_tcp: Print performance data even with -DGravatar Holger Weiss
When using the 1.4.15 release of the Nagios Plugins, a command such as check_tcp -H pop.example.com -p 995 -D 14 usually produced two lines of output, e.g.: OK - Certificate will expire on 12/13/2014 23:59. TCP OK - 0.009 second response time on port 995|time=0.008849s;;;0.000000;10.000000 The second line was removed by 4d06603060fc1233861b164870f0d3a2e0d8d2eb. However, as the old two-line output is a valid (though in this case unintended) way to spit out performance data, removing the second line might break current setups. Therefore, we revert to the old behaviour, at least for the moment. The issue was reported by Jochen Bern on the "nagiosplug-devel" mailing list (Message-ID: <4FEAE812.8030309@LINworks.de>).
2012-06-27Update the BUGS fileGravatar Holger Weiss
Remove the bug reports that were closed, and add two new items.
2012-06-27check_snmp: use single quotes for perf data labelsGravatar Sven Nierlein
2012-06-26Fix performance data label containing spaces in check_snmp (Jochen Bern)Gravatar Sven Nierlein
Add --perf-oids option for check_snmp to retain optional 1.4.14 compatibility
2012-06-26Remove team members from the THANKS fileGravatar Holger Weiss
The (current and past) team members are listed in the AUTHORS file.
2012-06-26Add Sven Nierlein to the list of AUTHORSGravatar Holger Weiss
2012-06-25added test case for certificate checs with both warning and critical valuesGravatar William Leibzon
2012-06-25check_http: added test for warning thresholdsGravatar Sven Nierlein
fixed typo in sslutils
2012-06-25updated changelogGravatar Sven Nierlein
2012-06-25applied patch that adds both critical and warning thresholds to certificate ↵Gravatar William Leibzon
expiration checks of check_tcp, check_http, check_smtp
2012-06-25check_ping: Add missing newline to die() callsGravatar Holger Weiss
Our die() function expects the caller to append the trailing newline character.
2012-06-25NEWS: Improve the wording a bitGravatar Holger Weiss
2012-06-25Merge remote-tracking branch 'github/waja/master'Gravatar Holger Weiss
Conflicts: NEWS
2012-06-24check_ping: Ignore ping(1)'s exit statusGravatar Holger Weiss
Don't return a WARNING state if the number of lost packets is greater than zero but below the specified warning threshold. This happened because the check_ping plugin used the exit status of the ping(1) utility. (#3535140 - Tobias Brox)
2012-06-23check_disk_smb: Add performance dataGravatar Holger Weiss
(Debian #654259 - Charles-Henri Larose)
2012-06-22Fix check_by_ssh test for non-Bash login shellsGravatar Holger Weiss
In the C shell and in the Z shell, the "?" character must be quoted or backslash-escaped in order to use it verbatim. Therefore, a command such as check_by_ssh -H test.example.com -l joe echo huh? might fail, depending on joe's login shell on test.example.com. Just to make sure, this commit removes most punctuation characters from our test strings.
2012-06-14check_dhcp: Don't misinterpret the "siaddr" fieldGravatar Holger Weiss
RFC 2131 (2.) says: "DHCP clarifies the interpretation of the 'siaddr' field as the address of the server to use in the next step of the client's bootstrap process." So, we shouldn't interpret this field as the DHCP server's own address. (#3503921 - Jason Ellison)
2012-06-13check_dhcp: Fix handling of "pad" optionsGravatar Holger Weiss
Don't let "pad" options[*] terminate the parsing of DHCP options. This bug was triggered by using check_dhcp against Windows 2003 DHCP servers (see #3503921). [*] Cf. RFC 2132, 3.1.
2012-06-11Improve parsing of ping6(1) outputGravatar Holger Weiss
The ping6(1) implementation provided by Debian's iputils-ping package may produce output such as the following: | 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2009ms There's a corresponding pattern in check_ping.c:458: | "%*d packets transmitted, %*d received, +%*d errors, %d%% packet loss" Without this fix, the pattern in check_ping.c:456 matched first (as sscanf(3) interprets "+3" as a match for "%d"): | "%*d packets transmitted, %*d received, %d%% loss, time" (#1894850 - Debian bug report #514588 - Matej Vela)