diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2007-12-11 13:31:22 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2007-12-11 13:31:22 +0000 |
commit | 8cb50065632541ea83097d02182385910ee37a8c (patch) | |
tree | 5c78dfd1f2d853fe8acd7712433273bc4f21b05f /plugins/t/check_ntp.t | |
parent | ba6b4cab4125b5f07f6e37c8504824850425267f (diff) | |
download | monitoring-plugins-8cb50065632541ea83097d02182385910ee37a8c.tar.gz |
- Fix check_ntp_peer returning misleading information when an ICMP message came back
- Try to fix some servers apparently exanding the ~ in threshold ranges in t/check_ntp.t
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1864 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/t/check_ntp.t')
-rw-r--r-- | plugins/t/check_ntp.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/t/check_ntp.t b/plugins/t/check_ntp.t index ae7f0369..01a890e3 100644 --- a/plugins/t/check_ntp.t +++ b/plugins/t/check_ntp.t @@ -97,13 +97,13 @@ foreach my $plugin (@PLUGINS2) { like( $res->output, $ntp_okmatch2, "$plugin: Output match OK with jitter and stratum" ); $res = NPTest->testCmd( - "./$plugin -H $ntp_service -w 1000 -c 2000 -W ~:-1 -C 21 -j 100000 -k 200000" + "./$plugin -H $ntp_service -w 1000 -c 2000 -W \~:-1 -C 21 -j 100000 -k 200000" ); cmp_ok( $res->return_code, '==', 1, "$plugin: Warning NTP result with jitter and stratum check" ); like( $res->output, $ntp_warnmatch2, "$plugin: Output match WARNING with jitter and stratum" ); $res = NPTest->testCmd( - "./$plugin -H $ntp_service -w 1000 -c 2000 -W 20 -C 21 -j 100000 -k ~:-1" + "./$plugin -H $ntp_service -w 1000 -c 2000 -W 20 -C 21 -j 100000 -k \~:-1" ); cmp_ok( $res->return_code, '==', 2, "$plugin: Critical NTP result with jitter and stratum check" ); like( $res->output, $ntp_critmatch2, "$plugin: Output match CRITICAL with jitter and stratum" ); |