From cdc34fa78b326bd241aae7399190c739e25bf025 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 20 Jun 2016 13:08:15 +1200 Subject: Update to latest version with MKLivestatus No longer using NDOUtils at work, these are much nicer and more likely to work with any given Nagios installation now anyway. Added nagios-data-search, nagios-downtstream-list, nagios-exists, nagios-problem-list, and nagios-unhandled-list. --- nagios-downtime.1 | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'nagios-downtime.1') diff --git a/nagios-downtime.1 b/nagios-downtime.1 index c4ef614..3581651 100644 --- a/nagios-downtime.1 +++ b/nagios-downtime.1 @@ -7,29 +7,28 @@ -h .br .B nagios-downtime -.I HOSTNAME[/SERVICE] +.I (HOSTNAME[/SERVICE][,HOSTNAME[,SERVICE],...]|-) .I START .I END .I [COMMENT] .SH SYNOPSIS -.B ndt -webhost now 10pm 'Upgrading to latest OS release' +ndt webhost now 10pm 'Upgrading to latest Ubuntu release' .PP -.B ndt -webhost/HTTP now 10pm 'Upgrading Apache HTTPD' -.PP -for hostname in ns{1..3} ; do +ndt webhost/HTTP now 10pm 'Upgrading Apache HTTPD' .br -.B - ndt -"$hostname" 'sunday 3:00am' 'sunday 4:00am' 'Outage for entire DNS system for upgrades' +ndt authns1,authns2,recdns1,recdns2 'sunday 3:00am' 'sunday 4:00am' 'Outage for entire DNS system for upgrades' .br -done +nds abc-example | ndt - 9am 10am 'Power problems at abc-example' .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 +downtime for given hosts or services. +.PP +Multiple hosts or services can be separated by commas, and the special value - +allows hosts or services to be read from stdin. +.PP +The two date fields .I START and .I END @@ -46,8 +45,8 @@ changes. Note that the .I COMMENT parameter is optional. .SH SEE ALSO -nagios-acknowledge(1), nagios-force-check(1) +nagios-acknowledge(1), nagios-data-search(1), nagios-descendent-list(1), +nagios-force-check(1), nagios-notification-switch(1), nagios-problem-list(1), +nagios-unhandled-list(1) .SH AUTHOR Tom Ryder -.PP - -- cgit v1.2.3