check_ldap_repl.pl
changeset 15 57f440ea5ac8
parent 14 bd26976ed704
child 16 a499a7b58da1
equal deleted inserted replaced
14:bd26976ed704 15:57f440ea5ac8
    49 my $defaults = {
    49 my $defaults = {
    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/ius/plugins/config/check_ldap_repl.cfg',
    54     'config=s'      => '/etc/nagios-plugins/config/ldap_repl.cfg',
    55     'provider|p=s'  => 'ldap://provider:389',
    55     'provider|p=s'  => 'ldap://provider:389',
    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}) },
   187 
   187 
   188 =item B<--config> I<string>
   188 =item B<--config> I<string>
   189 
   189 
   190 Path to configuration file. Use this to store the binddn and its password.
   190 Path to configuration file. Use this to store the binddn and its password.
   191 Verify the ownership and B<permissions>, B<(0400)> is a good choice! (default:
   191 Verify the ownership and B<permissions>, B<(0400)> is a good choice! (default:
   192 /etc/nagios/ius/plugins/config/check_ldap_repl.cfg)
   192 /etc/nagios-plugins/config/ldap_repl.cfg)
       
   193     
   193 
   194 
   194 
   195 
   195 Example:
   196 Example:
   196 
   197 
   197  binddn = cn=admin,dc=local,dc=site
   198  binddn = cn=admin,dc=local,dc=site