#! /usr/bin/ruby # NAME # mauvesend - send alert(s) to a given alert station # # SYNOPSIS # mauvesend [] # [ --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/mauvesend.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