aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Fincham <michael.fincham@catalyst.net.nz>2016-03-17 13:58:14 +1300
committerMichael Fincham <michael.fincham@catalyst.net.nz>2016-03-17 13:58:14 +1300
commit13a6c9bee78bd0bc991921c32043d096ff066f29 (patch)
tree65572228b8246fecc3befdb2f5157eb746da5f98
parent47583a302340f5fe2d40954f903494bc56a4d8a2 (diff)
downloadnagios-linux-firewall-checks-13a6c9bee78bd0bc991921c32043d096ff066f29.tar.gz
nagios-linux-firewall-checks-13a6c9bee78bd0bc991921c32043d096ff066f29.tar.bz2
nagios-linux-firewall-checks-13a6c9bee78bd0bc991921c32043d096ff066f29.zip
Add documentation for 47583a302340f5fe2d40954f903494bc56a4d8a2HEADmaster
-rw-r--r--README.md4
-rwxr-xr-xcheck_bird2
2 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index 3b01400..c7a2aa0 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@ Requirements: python 2.7 or python-argparse
## check_bird
<pre>
-usage: check_bird [-h] [--control-socket CONTROL_SOCKET]
+usage: check_bird [-h] [--control-socket CONTROL_SOCKET] [--ignore IGNORE]
{interfaces,bfd,ospf,bgp}
Check various aspects of a running BIRD daemon (interface states, several
@@ -24,6 +24,8 @@ optional arguments:
--control-socket CONTROL_SOCKET
location of BIRD control socket, defaults to
/run/bird/bird.ctl
+ --ignore IGNORE if supplied, a regular expression of protocol names
+ which should be ignored
</pre>
## check_conntrack
diff --git a/check_bird b/check_bird
index c483c07..7f65232 100755
--- a/check_bird
+++ b/check_bird
@@ -336,7 +336,7 @@ if __name__ == "__main__":
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('check', choices=('interfaces', 'bfd', 'ospf', 'bgp'), help='which check to run')
parser.add_argument('--control-socket', default=BIRD_CONTROL_SOCKET, help='location of BIRD control socket, defaults to %s' % BIRD_CONTROL_SOCKET)
- parser.add_argument('--ignore', default=None, help='regular expression of protocol names which should be ignored')
+ parser.add_argument('--ignore', default=None, help='if supplied, a regular expression of protocol names which should be ignored')
args = parser.parse_args()
try: