aboutsummaryrefslogtreecommitdiff
path: root/nagios-downtime.1
blob: c4ef61410c1b3e09fea021c20596c77c44124771 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.TH NAGIOS-DOWNTIME 1 "Nagios Downtime" "Nagscripts"
.SH NAME
.B ndt, nagios-downtime
\- Pleasant way to script fixed downtime for a Nagios host or service
.SH USAGE
.B nagios-downtime
-h
.br
.B nagios-downtime
.I HOSTNAME[/SERVICE]
.I START
.I END
.I [COMMENT]
.SH SYNOPSIS
.B ndt
webhost now 10pm 'Upgrading to latest OS release'
.PP
.B ndt
webhost/HTTP now 10pm 'Upgrading Apache HTTPD'
.PP
for hostname in ns{1..3} ; do
.br
.B
    ndt
"$hostname" 'sunday 3:00am' 'sunday 4:00am' 'Outage for entire DNS system for upgrades'
.br
done
.SH DESCRIPTION
.B nagios-downtime
will format and attempt to write a Nagios command to the Nagios commands file
which it expects to find at /usr/local/nagios/var/rw/nagios.cmd to schedule
downtime for a particular host or service. The two date fields
.I START
and
.I END
may be given in any form understood by
.I date(1)
with the
.I --date
option.
.PP
The user's current login name will be used as the author field for the
downtime, taking into account any use of
.I sudo(8)
changes. Note that the
.I COMMENT
parameter is optional.
.SH SEE ALSO
nagios-acknowledge(1), nagios-force-check(1)
.SH AUTHOR
Tom Ryder <tom@sanctum.geek.nz>
.PP