Remstats Home


  About remstats
  architecture
  Release Notes
  FAQ
  Conventions
  Prerequisites
  Installation
  Configuration
  Configuration Tools
  Servers
  Collectors
  Updater
  Monitors
      alert-monitor
          alert-email
          alert-syslog
          alert-winpopup
          alert-yahoo
      ping-monitor
      topology-monitor
  pagemakers
  run-remstats2
  CGIs
  troubleshooting
  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"


[Top] [Remstats] [SourceWorks] [RRDtool] [SourceForge]
Last updated Fri Sep 5 07:34:04 UTC 2003 by <terskine@users.sourceforge.net>.