check_ldap_repl.pl
changeset 16 a499a7b58da1
parent 15 57f440ea5ac8
child 17 6d1cf539d727
equal deleted inserted replaced
15:57f440ea5ac8 16:a499a7b58da1
    50     'attribute|a=s' => 'description',
    50     'attribute|a=s' => 'description',
    51     'dn|d=s'        => undef,
    51     'dn|d=s'        => undef,
    52     'binddn|D=s'    => undef,
    52     'binddn|D=s'    => undef,
    53     'password=s'    => undef,
    53     'password=s'    => undef,
    54     'config=s'      => '/etc/nagios-plugins/config/ldap_repl.cfg',
    54     'config=s'      => '/etc/nagios-plugins/config/ldap_repl.cfg',
    55     'provider|p=s'  => 'ldap://provider:389',
    55     'provider|p=s'  => 'ldapi:///',
    56     'consumer|c=s@' => 'ldap://consumer:389',
    56     'consumer|c=s@' => 'ldap://consumer:389',
    57     'wait|w=i'      => 1,
    57     'wait|w=i'      => 1,
    58     'help|h!'       => sub { pod2usage(-verbose => 1, -exitval => $ERRORS{OK}) },
    58     'help|h!'       => sub { pod2usage(-verbose => 1, -exitval => $ERRORS{OK}) },
    59     'man|m!'        => sub { pod2usage(-verbose => 2, -exitval => $ERRORS{OK}) },
    59     'man|m!'        => sub { pod2usage(-verbose => 2, -exitval => $ERRORS{OK}) },
    60     'version|V!'    => sub { version($ME, $VERSION); exit $ERRORS{OK}; }
    60     'version|V!'    => sub { version($ME, $VERSION); exit $ERRORS{OK}; }
   177 
   177 
   178 Password to use when binding to provider for update. B<PASSWORD IS SHOWN IN PROCESSES, USE CONFIG FILE!>
   178 Password to use when binding to provider for update. B<PASSWORD IS SHOWN IN PROCESSES, USE CONFIG FILE!>
   179 
   179 
   180 =item B<-p>|B<--provider> I<string>
   180 =item B<-p>|B<--provider> I<string>
   181 
   181 
   182 provider uri (default: ldap://provider:389/)
   182 provider uri (default: ldapi:///)
   183 
   183 
   184 =item B<-S>|B<--consumer> I<string>
   184 =item B<-S>|B<--consumer> I<string>
   185 
   185 
   186 consumer uri. Multiple consumers can be specified as a comma separated list (see below). (default: ldap://ldap-consumer:389/)
   186 consumer uri. Multiple consumers can be specified as a comma separated list (see below). (default: ldap://ldap-consumer:389/)
   187 
   187