]> git.etc.gen.nz Git - spong.git/commitdiff
monitor rsync
authorJan Willamowius <jan@willamowius.de>
Tue, 13 Sep 2005 14:02:01 +0000 (14:02 +0000)
committerJan Willamowius <jan@willamowius.de>
Tue, 13 Sep 2005 14:02:01 +0000 (14:02 +0000)
src/lib/Spong/Network/plugins/check_rsync [new file with mode: 0755]

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