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-force-check.1 | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) (limited to 'nagios-force-check.1') diff --git a/nagios-force-check.1 b/nagios-force-check.1 index 27d7114..9836247 100644 --- a/nagios-force-check.1 +++ b/nagios-force-check.1 @@ -7,7 +7,10 @@ -h .br .B nagios-force-check -.I HOSTNAME[/SERVICE] +-a +.br +.B nagios-force-check +.I HOSTNAME[/SERVICE] [HOSTNAME[/SERVICE]...] .SH SYNOPSIS .B nfc webhost @@ -26,11 +29,24 @@ done .B nagios-force-check 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 force a -check of a particular host (and all its services) or just one particular -service. +check of at least one particular host (and all its services) or at least one +particular service. +.P +You can use the +.B -a +switch on its own (with no targets specified) to force checks on all problem +services returned by +.B nagios-problem-list(1) +-- this is equivalent to running something like: +.P +npl | while read -r object ; do +.br + nfc "$object" +.br +done .SH SEE ALSO -nagios-acknowledge(1), nagios-downtime(1) +nagios-acknowledge(1), nagios-data-search(1), nagios-descendent-list(1), +nagios-downtime(1), nagios-notification-switch(1), nagios-problem-list(1), +nagios-unhandled-list(1) .SH AUTHOR Tom Ryder -.PP - -- cgit v1.2.3