diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-06-20 13:08:15 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-06-20 13:08:15 +1200 |
commit | cdc34fa78b326bd241aae7399190c739e25bf025 (patch) | |
tree | 2d12fdf161b74dcde13baf33bb46f0137f443952 /nagios-acknowledge.1 | |
parent | Remove silly symlinks (diff) | |
download | nagscripts-3023a404a59a8ec51e9ebe0b5fea3a4f9f8ddf0c.tar.gz nagscripts-3023a404a59a8ec51e9ebe0b5fea3a4f9f8ddf0c.zip |
Update to latest version with MKLivestatusmk-livestatus
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.
Diffstat (limited to 'nagios-acknowledge.1')
-rw-r--r-- | nagios-acknowledge.1 | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/nagios-acknowledge.1 b/nagios-acknowledge.1 index 48f31f7..2641acf 100644 --- a/nagios-acknowledge.1 +++ b/nagios-acknowledge.1 @@ -8,28 +8,25 @@ .br .B nagios-acknowledge [-n] -.I HOSTNAME[/SERVICE] +.I (HOSTNAME[/SERVICE][,HOSTNAME[,SERVICE],...]|-) .I [COMMENT] .SH SYNOPSIS -.B nac -webhost 'DDoS I think, fixing' -.PP -.B nac --n webhost/HTTP 'Apache HTTPD crashed, fixing' -.PP -for hostname in ns{1..3} ; do +nac webhost 'DDoS I think, fixing' .br -.B - nac -"$hostname" 'DNS is completely rooted, addressing now' +nac -n webhost/HTTP 'Apache HTTPD crashed, fixing' .br -done +nac authns1,authns2,recdns1,recdns2 'DNS is all buggered' +.br +npl | grep abc-example | nac - 'Power problems at abc-example' .SH DESCRIPTION .B nagios-acknowledge 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 acknowledge a problem for a particular host or service. .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 user's current login name will be used as the author field for the acknowledgement, taking into account any use of .I sudo(8) @@ -40,8 +37,8 @@ parameter is optional. By default, the script won't send an ACKNOWLEDGEMENT notification. Add a -n option if you actually want to do this. .SH SEE ALSO -nagios-downtime(1), nagios-force-check(1) +nagios-data-search(1), nagios-descendent-list(1), nagios-downtime(1), +nagios-force-check(1), nagios-problem-list(1), nagios-unhandled-list(1) .SH AUTHOR Tom Ryder <tom@sanctum.geek.nz> .PP - |