Holger Weiss
717b0e8d9c
Fix the "check_http -d" tests
2013-08-18 18:31:59 +02:00
linkslice
2a8eab6b31
added ability to check regex against http headers. booyah!
2013-08-18 18:23:11 +02:00
Holger Weiss
66003414af
tests/check_http.t: Fix whitespace issues
...
In tests/check_http.t, tabs are used for indentation.
While at it, apply another few cosmetic changes.
2012-08-10 12:49:30 +02:00
Holger Weiss
3f944a50b7
tests/check_http.t: Update the number of SSL tests
2012-08-10 12:41:41 +02:00
Holger Weiss
62d01df1fd
tests/check_http.t: Fix test case
...
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-10 12:35:16 +02:00
Sven Nierlein
843f954056
check_snmp: use single quotes for perf data labels
2012-06-27 00:02:09 +02:00
Sven Nierlein
9c886d049d
Fix performance data label containing spaces in check_snmp (Jochen Bern)
...
Add --perf-oids option for check_snmp to retain optional 1.4.14 compatibility
2012-06-26 20:53:13 +02:00
William Leibzon
181260d636
added test case for certificate checs with both warning and critical values
2012-06-25 12:54:15 +02:00
Thomas Guyot-Sionnest
4611e41bc5
check_http: check for and print the certificate cn
...
This patch adds a check for the certificate cn (hostname) to normal
certificate checks. It returns CRITICAL if th cn is missing, otherwise it
prints it in the normal output.
Patch by Stéphane Urbanovski
2011-02-04 00:54:52 -05:00
Ton Voon
1a5a83bb82
Fix for regex input of '|', being output causing problems with Nagios' parsing of
...
performance data. Now replaced with ','
2011-01-21 13:14:33 +00:00
Thomas Guyot-Sionnest
ae2a669137
Test updates...
...
1. Timetick test could fail with uptime > 115 days. Thresholds are
double type, so it's safe to put a large number even for 32bit systems.
2. Add a test based on an invalid bug report, worthy anyway.
2011-01-05 23:09:54 -05:00
Thomas Guyot-Sionnest
c49fed07c3
Fix minor test issues
...
My Test::More wouldn't print the total number of tests anymore, moving
the plan at the top appears to fix it.
At the same time I made check-http.t eval the special modules so it can
skip the tests instead of failing.
2010-11-30 23:57:04 -05:00
Thomas Guyot-Sionnest
5a2814a21b
Revert "check_snmp now considers strings returned by SNMP that contain just"
...
This reverts commit 896962a1ad .
Conflicts:
NEWS
plugins/tests/check_snmp.t
Notes:
Reverting because I rebased a patch that was doing the same thing, plus
fixing more related regressions, and both didn't work together.
I kept the tests intact except for one that wouldn't pass on 1.4.14
either
2010-11-30 22:48:43 -05:00
Thomas Guyot-Sionnest
811684ffe3
State-based tests enhancements
...
- Use /var/tmp for state if no state dir environment variable is set,
this avoid the need for a writable localstatedir during tests.
- Use "rm -f", mostly to avoid printing out garbage of the directory
doesn't exists
2010-11-30 22:33:34 -05:00
nagios
896962a1ad
check_snmp now considers strings returned by SNMP that contain just
...
numbers (according to strtod) to be a numeric value for threshold and
performance data
2010-11-15 15:43:41 +00:00
tonvoon
5c72d075de
Corrected rate_multiplier calculation
2010-06-30 13:16:32 +00:00
tonvoon
3444519014
Removed suffix of "-rate" and let user decide label via --label
2010-06-30 09:37:10 +00:00
tonvoon
752dbc20b2
Tests for --rate-multiplier option
2010-06-30 07:56:05 +00:00
tonvoon
b8e2850c1a
Added option to invert search results
2010-06-23 15:56:29 +00:00
tonvoon
1252195ed5
Display missing search string and URL when failed (Duncan Ferguson #2999924 )
2010-06-23 14:44:34 +00:00
Ton Voon
18f6835eda
Added state retention APIs. Implemented for check_snmp with --rate option.
...
See http://nagiosplugin.org/c-api-private for more details on the API.
Also updated check_snmp -l option to change the perfdata label.
2010-06-23 13:30:34 +00:00
Thomas Guyot-Sionnest
00bf32bb60
Fix tests and update NEWS file
2010-04-21 23:04:06 -04:00
Thomas Guyot-Sionnest
582034478b
Attempt at fixing check_snmp multiline output:
...
This patch tries to detect and output nicely multi-line strings. This
method is broken by design; only a count of double-quotes and escapes
could work in every situation.
2010-04-21 22:04:28 -04:00
Thomas Guyot-Sionnest
181ac1e018
Add a test that succeeds on check_snmp v1.4.13. Newer versions skip additional
...
lines so this new test fails on the current head.
Note: check_snmp v1.4.13 with multi-line strings return somewhat v3 output;
it's not exactly what the specs say but it doesn't appears to break them
either. The fix could eventually supports both v2 and v3 output formats.
2009-09-05 03:16:54 -04:00
Thomas Guyot-Sionnest
8a96ee4741
Add tests using custom snmp agent
...
Only multi-line string test for now (regression test), counter rollover
tests planed with my snmp_counters_new branch.
NB: 64bit counters are broken in NetSNMP::agent from NetSNMP version 5.4.1
and lower, but might come in handy one day
2009-07-31 03:07:38 -04:00
Matthias Eble
8e4c885ee1
Fixed crash from check_nt when -H unspecified or given multiple times (sf.net #2731755 , debian #521097 )
2009-05-01 11:16:37 +02:00
Thomas Guyot-Sionnest
e7cdcfee2a
check_http: add --onredirect=stickyport - also follow the same port
2009-03-21 02:32:50 -04:00
Thomas Guyot-Sionnest
31f2afcf4a
tests/check_http.t: Add various timeout-related tests
2009-03-20 01:21:18 -04:00
Thomas Guyot-Sionnest
37e432ec77
Revert "Add timezone support and fix checks around cert expiration" (keep the expiration fix)
...
This reverts commit d41a33a434 .
2009-03-19 01:04:33 -04:00
Thomas Guyot-Sionnest
d41a33a434
Add timezone support and fix checks around cert expiration
2009-03-18 03:34:25 -04:00
Thomas Guyot-Sionnest
d89d0b40f9
Update extended check_http tests for 0d78171...
...
Also add some tests, and make debug mode loop infinitely.
2009-03-16 03:09:15 -04:00
Ton Voon
674841e279
Create expired cert for testing purposes. Updated tests to check
...
expired and unexpired certificates
2009-03-06 00:24:38 +00:00
Ton Voon
8580335779
Added inline tests for HTTPS using HTTP::Daemon::SSL
2009-03-05 23:37:45 +00:00
Ton Voon
31efea1b49
Fixed coredump from check_nt when drive not found (Olli Hauer - SF 2179754)
2009-02-19 23:43:15 +00:00
Ton Voon
6c5f781bc5
Fixed bug where extra headers and redirect caused segfault (Dieter Van de Walle - 2089159)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2076 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-08 02:32:03 +00:00
Ton Voon
288b742ed6
check_http now has options to specify the HTTP method (Jan - 2155152)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2075 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-08 02:08:56 +00:00
Ton Voon
4181892bcc
Fix small test failure
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2056 f882894a-f735-0410-b71e-b25c423dba1c
2008-09-25 08:04:42 +00:00
Ton Voon
3b4d0bb292
Fix HTTP::Daemon::VERSION to get a fixed header size for tests
...
(Sven Nierlein)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2048 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-25 18:39:27 +00:00
Ton Voon
bb5ce4be01
Updated with more tests re: multiple status codes (Sven Nierlein)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2047 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-25 13:26:11 +00:00
Holger Weiss
c349438e32
The "-e" option now accepts a comma-delimited list of expected status
...
lines (Sven Nierlein - 1894496).
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2046 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-25 11:42:57 +00:00
Ton Voon
e61022df19
Added HTTP tests for status codes
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2045 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-22 13:08:08 +00:00
Ton Voon
baf76c7ffa
Include test for check_procs, using input file
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1955 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-18 10:59:55 +00:00
Ton Voon
a36696e454
Updated check_procs with a hidden --input-file option.
...
Include some sample outputs for testing
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1954 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-18 01:21:54 +00:00
Ton Voon
548083b2ea
Move new util_* functions to lib/
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1451 f882894a-f735-0410-b71e-b25c423dba1c
2006-07-13 12:50:23 +00:00
Ton Voon
4edea20b86
Moving parameter_list into utils_disk.h. Given list of mount points, can
...
now work out best match or exact match.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1448 f882894a-f735-0410-b71e-b25c423dba1c
2006-07-12 19:30:20 +00:00
Ton Voon
ee03f1415a
Moving check_disk functions into utils_disk.c and testing them
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1447 f882894a-f735-0410-b71e-b25c423dba1c
2006-07-12 12:15:42 +00:00
Ton Voon
a8cd7705e7
Synchronise with coreutils 2.95. Gettext now synced with coreutils,
...
so no longer development platform requirement
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1394 f882894a-f735-0410-b71e-b25c423dba1c
2006-05-18 22:05:43 +00:00
Ton Voon
34cb16d283
Internal version of basename if one not found in system
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1383 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-27 13:25:10 +00:00
Ton Voon
f5c1cf6dd4
New function to for escaped strings from command line for send/quit.
...
Adapted from Sebastian Wiesinger's patch (1292404)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1365 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-29 16:33:36 +00:00
Ton Voon
b3b7354467
mysql discovery based on mysql_config (Johan Fischer - 1359414)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1333 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-21 11:42:59 +00:00