spong-message Module Template



This template assumes that you are creating a messaging function called 'teletouch_short'. The name of the file created should be 'msg_teletouch_short'. The file name should always be 'msg_' and the registry name (e.g. for the foo messaging function, the registry name is 'foo' and the file name is 'msg_foo'.

The line that has the assignment to $MSGFUNCS{'registry-name'} is the key to the registry mechanism. It's what track the registry name to the your check function.
 

# Message function for Teletouch pagers using e-mail delivery
# but using the e-mail mini status function instead. This is a

$MSGFUNCS{'teletouch_short'} = \&msg_teletouch_short;

sub msg_teletouch_short {
   my ($pager) = @_;

   &email_mini_status("$pager\@pageme.teletouch.com",'shortsubject');
   &debug( "teletouch short page sent to $pager" );
}

# Required because I'm included perl code
1;

Please note the final line. It is always required for a module file.