From 63734f52ab1b4b2c17545b26fc41016d6bbd80bd Mon Sep 17 00:00:00 2001 From: Monitoring Plugins Development Team Date: Sat, 18 Jan 2014 03:40:24 -0500 Subject: Project rename initial commit. This is an initial take at renaming the project to Monitoring Plugins. It's not expected to be fully complete, and it is expected to break things (The perl module for instance). More testing will be required before this goes mainline. --- plugins/t/check_disk.t | 4 ++-- plugins/t/check_dns.t | 2 +- plugins/t/check_http.t | 22 +++++++++++----------- 3 files changed, 14 insertions(+), 14 deletions(-) (limited to 'plugins/t') diff --git a/plugins/t/check_disk.t b/plugins/t/check_disk.t index 39b4ca9f..7e0f74b7 100644 --- a/plugins/t/check_disk.t +++ b/plugins/t/check_disk.t @@ -4,7 +4,7 @@ # # -# TODO: Add in tests for perf data. Need to beef up Nagios::Plugin::Performance to cater for max, min, etc +# TODO: Add in tests for perf data. Need to beef up Monitoring::Plugin::Performance to cater for max, min, etc use strict; use Test::More; @@ -37,7 +37,7 @@ cmp_ok( $c, '==', 2, "Got two mountpoints in output"); # Get perf data -# Should use Nagios::Plugin +# Should use Monitoring::Plugin my @perf_data = sort(split(/ /, $result->perf_output)); diff --git a/plugins/t/check_dns.t b/plugins/t/check_dns.t index 64aaf0ce..2c903db9 100644 --- a/plugins/t/check_dns.t +++ b/plugins/t/check_dns.t @@ -17,7 +17,7 @@ my $successOutput = '/DNS OK: [\.0-9]+ seconds? response time/'; my $hostname_valid = getTestParameter( "NP_HOSTNAME_VALID", "A valid (known to DNS) hostname", - "nagios.com" + "monitoring-plugins.org" ); my $hostname_valid_ip = getTestParameter( diff --git a/plugins/t/check_http.t b/plugins/t/check_http.t index 29086737..5bd27d2b 100644 --- a/plugins/t/check_http.t +++ b/plugins/t/check_http.t @@ -31,8 +31,8 @@ my $internet_access = getTestParameter( "NP_INTERNET_ACCESS", "yes"); my $host_tcp_http2 = getTestParameter( "NP_HOST_TCP_HTTP2", - "A host providing an index page containing the string 'nagios'", - "nagios.org" ); + "A host providing an index page containing the string 'monitoring'", + "monitoring-plugins.org" ); $res = NPTest->testCmd( @@ -62,23 +62,23 @@ cmp_ok( $res->return_code, '==', 2, "Webserver $hostname_invalid not valid" ); like( $res->output, "/Unable to open TCP socket|Socket timeout after/", "Output OK"); SKIP: { - skip "No host serving nagios in index file", 7 unless $host_tcp_http2; + skip "No host serving monitoring in index file", 7 unless $host_tcp_http2; - $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -r 'nagios'" ); - cmp_ok( $res->return_code, "==", 0, "Got a reference to 'nagios'"); + $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -r 'monitoring'" ); + cmp_ok( $res->return_code, "==", 0, "Got a reference to 'monitoring'"); - $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -r 'nAGiOs'" ); - cmp_ok( $res->return_code, "==", 2, "Not got 'nAGiOs'"); + $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -r 'mONiTORing'" ); + cmp_ok( $res->return_code, "==", 2, "Not got 'mONiTORing'"); like ( $res->output, "/pattern not found/", "Error message says 'pattern not found'"); - $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -R 'nAGiOs'" ); - cmp_ok( $res->return_code, "==", 0, "But case insensitive doesn't mind 'nAGiOs'"); + $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -R 'mONiTORing'" ); + cmp_ok( $res->return_code, "==", 0, "But case insensitive doesn't mind 'mONiTORing'"); - $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -r 'nagios' --invert-regex" ); + $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -r 'monitoring' --invert-regex" ); cmp_ok( $res->return_code, "==", 2, "Invert results work when found"); like ( $res->output, "/pattern found/", "Error message says 'pattern found'"); - $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -r 'nAGiOs' --invert-regex" ); + $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -r 'mONiTORing' --invert-regex" ); cmp_ok( $res->return_code, "==", 0, "And also when not found"); } SKIP: { -- cgit v1.2.3-74-g34f1