From 53f89ba450850990057883a92f89ed994563e4ab Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Wed, 20 Jul 2011 10:55:49 +0100 Subject: Updated mauvesend to allow an absolute time to be specified. --HG-- rename : bin/mauveclient => bin/mauvesend --- bin/mauveclient | 329 ------------------------------------------------------- bin/mauvesend | 332 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 332 insertions(+), 329 deletions(-) delete mode 100755 bin/mauveclient create mode 100755 bin/mauvesend (limited to 'bin') diff --git a/bin/mauveclient b/bin/mauveclient deleted file mode 100755 index 77b8506..0000000 --- a/bin/mauveclient +++ /dev/null @@ -1,329 +0,0 @@ -#! /usr/bin/ruby1.8 -# NAME -# mauveclient - send alert(s) to a given alert station -# -# SYNOPSIS -# mauveclient [] -# [ --help | -h ] [ --manual | -m ] [ --version | -V ] -# [--source | -o ] [--replace | -p] [--verbose | -v] -# [--id ... ] -# -# OPTIONS -# Where the alert should go. This can be either a hostname or -# an IP address, and optionally a port, separated by a colon. -# The default port is 32741. -# -# If no destination is supplied, the value from the file -# /etc/mauvealert/mauveclient.destination is used. If no -# destination can be determined, an error is raised. -# -# If a hostname is given and no port is specified, SRV records -# are used to determine where the alerts should go to. The SRV -# prefix is _mauvealert._udp. If no SRV records are found, A -# records are used instead. -# -# IPv6 addresses can be used, but must be enclosed in square -# brackets, e.g. [2001:41c8::12]. -# -# --source, -o identify the source of the alert (defaults to -# hostname, but you might want to name your monitoring -# systems more explicitly). -# -# --replace, -p Send an update replacing all other alerts for this -# source -- any previous alerts not specified in this -# update are assumed to be cleared. If you specify this -# option, you don't have to supply *any* alerts to raise -# or clear (in which case all alerts from that source -# will be cleared). -# -# --verbose, -v If you specify this option once, it will print the -# transmission ID of the packet for debugging. If you -# specify it twice, it will print the entire data -# structure. -# -# --help, -h Display a short help message, and exit. -# -# --manual, -m Display this manual, and exit. -# -# --version, -V Display the version number for Mauve and exit. -# -# You can specify any number of alerts in an update - every time you specify -# --id starts a new alert. -# -# --id, -i Unique specified for each alert raised. This should -# be unique on a per-source basis, i.e. for an -# individual application or host. -# -# --summary, -s Text for humans describing the nature of the alert, -# first 100 characters are only ones guaranteed to make -# it to pagers, twitter, SMS etc. -# -# --detail, -d HTML fragment describing the alert in more detail, -# no limit on length. -# -# --subject, -u Set the subject of the alert (i.e. the server/entity -# that this alert concerns). If no subject is -# specified, it is assumed to be the same as , -# detailed above. -# -# --raise, -r