Remstats Home


  About remstats
  Release Notes
  FAQ
  Conventions
  Prerequisites
  Installation
  Configuration
  Configuration Tools
  Servers
  Collectors
  Updater
  Monitors
      alert-monitor
          alerter
          alert-email
          alert-winpopup
      ping-monitor
      topology-monitor
  run-remstats
  CGIs
  do-traceroutes
  Miscellany
  Thank-you
  Index


  Live Data

  Remstats was written by
  Thomas Erskine at the
  CRC in Canada and now
  at SourceWorks.

[Top] [Prev] [Next]

alert-email - an alert sending script

This is a simple script intended to be run by the alerter. Like all alert-senders, it takes one argument on the command-line: the "address" to send the alert to. The text of the alert is fed to this script on stdin.

It sends the alert text to "address" via email, by invoking sendmail, though there's no reason that it couldn't be re-written to do an SMTP injection directly if some-one wanted to. With no error-checking, it could be re-written as:

	#!/bin/sh
	/usr/lib/sendmail "$1"


Last updated Tue Apr 16 19:09:16 PDT 2002 by <thomas.erskine@sourceworks.com>.
[SourceWorks] [Top] [RRDtool]