--- /dev/null
+# Register function with the plugin registry
+$PLUGINS{'imap'} = \&check_imap;
+
+# Check the imap service with the built-in check_simple routine
+sub check_imap {
+ my ($host) = @_;
+ return &check_simple( $host, 143, "", "OK", "imap" );
+}
+
+1;
--- /dev/null
+# Register function with the plugin registry
+$PLUGINS{'nntp'} = \&check_nntp;
+
+# Check the nntp service with the built-in check_simple routine
+sub check_nntp {
+ my ($host) = @_;
+ return &check_simple( $host, 119, "", "^\s*200", "nntp" );
+}
+
+1;
--- /dev/null
+# Register function with the plugin registry
+$PLUGINS{'smtp'} = \&check_smtp;
+
+# Check the smtp service with the built-in check_simple routine
+sub check_smtp {
+ my ($host) = @_;
+ return &check_simple( $host, 25, "", "^\s*220", "smtp" );
+}
+
+1;