From 8757300b6fe5013efbc0841fd634eee4188cf8fc Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Fri, 8 Jul 2011 16:00:24 +0100 Subject: Update to mauveclient -- manpage. --- bin/mauveclient | 350 ++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 227 insertions(+), 123 deletions(-) (limited to 'bin/mauveclient') diff --git a/bin/mauveclient b/bin/mauveclient index 30ba57c..5e5503a 100755 --- a/bin/mauveclient +++ b/bin/mauveclient @@ -1,64 +1,158 @@ #! /usr/bin/ruby1.8 -# == Synopsis +# NAME # -# mauvesend: send alert(s) to a given alert station +# mauveclient send alert(s) to a given alert station # -# == Usage +# SYNOPSIS # -# mauvesend [destination] +# mauveclient [] # [--source | -o ] [--replace | -p] [--verbose | -v] -# [--id [alert options] ... ] +# [--id ... ] # -# : -# where the alert should go, can be one of: -# SRV record from DNS (we add _mauvealert._udp to record name) -# normal hostname (i.e. A record) -# IP address:port number +# DESCRIPTION # -# if no destination is supplied, reads parameter from file -# /etc/mauvealert/mauvesend.destination (otherwise throws an error). -# -# --source | -o : -# identify the source of the alert (defaults to hostname, but you might -# want to name your monitoring systems more explicitly). +# Blah. +# +# 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. # -# --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). +# 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]. # -# --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. +# --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. # # You can specify any number of alerts in an update - every time you specify # --id starts a new alert. # -# --id | -i : -# alert ID; unique specified for each alert raised. +# --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