From 78538bc48b84bdf5f1ae0127177f07a29660c9a8 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 19 Dec 2013 18:42:57 +0100 Subject: [PATCH] Add informations about --replace-touch parameter in README file and help message --- README | 5 +++++ check_syncrepl_extended | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README b/README index 422e1a9..de4a0c1 100644 --- a/README +++ b/README @@ -20,6 +20,10 @@ value to an attribute of this object and remove it just after. The touched attribute is specify by parameter --touch. Of course, couple of DN and password provided, must have write right on this attribute. +If your prefer, you can use --replace-touch parameter to replace value +of touched attribute instead of adding the touched value. Use-ful in +case of single-value attribute. + To use this script as Nagios plugin, use -n argument Requirement @@ -66,6 +70,7 @@ Usage will be add to this attribute and remove after. The user use to connect to the LDAP directory must have write permission on this attribute on each object. + --replace-touch In touch mode, replace value instead of adding. Copyright diff --git a/check_syncrepl_extended b/check_syncrepl_extended index 6579fa9..4f397c6 100755 --- a/check_syncrepl_extended +++ b/check_syncrepl_extended @@ -20,6 +20,10 @@ # touched attribute is specify by parameter --touch. Of course, couple of # DN and password provided, must have write right on this attribute. # +# If your prefer, you can use --replace-touch parameter to replace value +# of touched attribute instead of adding the touched value. Use-ful in +# case of single-value attribute. +# # This script could be use as Nagios plugin (-n argument) # # Requirement : @@ -132,7 +136,7 @@ parser.add_option( "--touch", parser.add_option( "--replace-touch", dest="replacetouch", action="store_true", - help="In touche mode, replace value instead of adding.", + help="In touch mode, replace value instead of adding.", default=False) (options, args) = parser.parse_args()