Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Check if an LDAP attribute exist
Current Version
Last Release Date
February 4, 2010
Owner
Nagios Exchange
#=============================================================================== # # FILE: check_ldap_request.pl # # USAGE: ./check_ldap_request.pl -H hostname -b base -f filer [-s scope] [-h] # # DESCRIPTION: Nagios Plugin - Check if LDAP attribute exist # # OPTIONS: --- # REQUIREMENTS: Net::LDAP Perl library # BUGS: --- # NOTES: --- # LICENSE: This Nagios module is under GPLv2 License # AUTHOR: Pierre Mavro # COMPANY: # VERSION: 1.0 # CREATED: 09/12/2009 15:38:41 # REVISION: --- #=============================================================================== # # Installation : # - Simply put the nagios plugin check_ldap_request.pl in your nagios-plugins directory # - Install the perl module using cpan (install Net::LDAP) # #=============================================================================== # # Nagios configuration : # # define command{ # command_name check_ldap_request # command_line $USER2$/check_ldap_request.pl -H $HOSTADDRESS$ -b "dc=ldap,dc=company,dc=lan" -f "uid=pmavro" #} # #define service{ # use generic-services # hostgroup_name ldapsrv # service_description LDAP request check # check_command check_ldap_request #} # #=============================================================================== # # Usage : ./check_ldap -H hostname -b base -f filer [-s scope] [-h] # -H : LDAP server hostname or IP # -b : Base of LDAP server (ex: "dc=ldap,dc=company,dc=lan") # -f : Specify a filter (ex: "uid=pmavro") # -s : LDAP Scope (ex: sub) # -h : Print this help message # # Examples : # $ ./check_ldap_request.pl -H prd-ldap-srv -b "dc=openldap,dc=mycompany,dc=com" -f "uid=pmavro" # LDAP request OK - 'uid=pmavro' exists # # $ ./check_ldap_request.pl -H prd-ldap-srv -b "dc=openldap,dc=mycompany,dc=com" -f "cn=foo" # LDAP request CRITICAL - unable to find 'cn=foo' #
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!