Earthworm Module: ewnotify
Contributed by:
Function
Monitors a ring for ACTIVATE_MODULE or alarm messages; generates email and posts a message to a ring for an instance of activated_scripts.
Details
Monitors a ring for ACTIVATE_MODULE or alarm messages; generates email and posts a message to a ring for an instance of activated_scripts.
ACTIVATE_MODULE messages are considered as tests, while the others (THRESH_ALARM or ACCEL_ALARM) are considered real; except for the subject line of the email, and the first token of the message for activate_scripts (TEST, THRESH_ALARM or ACCEL_ALARM), the behavior in all 3 cases is identical: the body of the email and ring message will be a copy of the body of the message that ewnotify read in.
Example Configuration File
# # ewnotify Configuration File # MyModuleId MOD_EWNOTIFY # this module's id InRing TEST_RING # Transport ring to read messages from OutRing HYPO_RING # Transport ring to write messages to ScriptModule MOD_ACT_SCR # Instance of ACTIVATED_SCRIPTS to trigger SendMailTo someone@gmail.com SendMailTo someoneelse@gmail.com MailServer smtp.gmail.com # # The Subject commands may NOT have a comment on the same line as the command # AlarmSubject EWNotify: Alarm raised TestSubject EWNotify: Test signaled # # SendMailFrom is only needed by Windows # SendMailFrom ewnotify@gmail.com