aboutsummaryrefslogblamecommitdiff
path: root/nagios-force-check.1
blob: 9836247deb270ebf306bb5a027440d035c733673 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                             



                                             

















                                                                             














                                                                            
            


                                                                          

                               
.TH NAGIOS-FORCE-CHECK 1 "Nagios Force Check" "Nagscripts"
.SH NAME
.B nfc, nagios-force-check
\- Pleasant way to force a check for a Nagios host or service
.SH USAGE
.B nagios-force-check
-h
.br
.B nagios-force-check
-a
.br
.B nagios-force-check
.I HOSTNAME[/SERVICE] [HOSTNAME[/SERVICE]...]
.SH SYNOPSIS
.B nfc
webhost
.br
.B nfc
webhost/HTTP
.B
.br
.B nul
| while read -r object ; do
.br
    nfc "$object"
.br
done
.SH DESCRIPTION
.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 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-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 <tom@sanctum.geek.nz>