]> git.etc.gen.nz Git - spong.git/commitdiff
Initial import
authorStephen L Johnson <sjohnson@monsters.org>
Fri, 22 Oct 1999 00:30:59 +0000 (00:30 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Fri, 22 Oct 1999 00:30:59 +0000 (00:30 +0000)
src/lib/Spong/Network/plugins/check_ssh [new file with mode: 0755]

diff --git a/src/lib/Spong/Network/plugins/check_ssh b/src/lib/Spong/Network/plugins/check_ssh
new file mode 100755 (executable)
index 0000000..19b23a1
--- /dev/null
@@ -0,0 +1,10 @@
+# Register function with the plugin registry
+$PLUGINS{'ssh'} = \&check_ssh;
+
+# Check the ssh service with the built-in check_simple routine
+sub check_ssh {
+    my ($host) = @_;
+    return &check_simple( $host, 22, "", "^SSH", "ssh" );
+}
+
+1;