"check_ldap" is executed on the remote host via NRPE, not the local host. Your command definition "check_ldap" in commands.cfg is therefore not used.
You should include -H $ARG1$ somewhere in your command definition in nrpe.cfg on your remote host or hardcode it. Mathieu Mangesh Dhamale wrote: > hi, > > My service output > > Ldap Status UNKNOWN 06-08-2008 12:29:01 0d 0h 21m 5s 3/3 check_ldap: > Please specify the host name > > > I have configured ldap on Nagios Server as follows, > > vi commands.cfg > > define command{ > command_name check_ldap > command_line $USER1$/check_nrpe!check_ldap -H $HOSTADDRESS$ > -p $ARG1$ -b $ARG2$ > } > vi localhost > > define service{ > use generic-service > host_name server > service_description Ldap Status > check_command check_nrpe!check_ldap -H 192.168.100.80 > } > and remote site (on ldap server) > > vi nrpe.cfg > > command[check_ldap]=/usr/local/nagios/libexec/check_ldap -w 5 -c 10 > > anyone help, what wrong with this configuration. > > > Regards, > > Mangesh Dhamale ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null