Ad Widget

Collapse

How to monitor ldap service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chliu
    Junior Member
    • Jul 2010
    • 6

    #1

    How to monitor ldap service

    I like monitor linux ldap service via Zabbix.my os is Centos5.3; Zabbix is 1.8.2;

    1: I try use the Zabbix agent as below to get data but faild.
    net.tcp.service[ldap <,ip> <,port>]
    net.tcp.service.perf[ldap <,ip> <,port>]

    2: I try use below command.
    2.1: zabbix_get -s IP -k "net.tcp.service[ftp]" , return value is 1.
    2.2: zabbix_get -s IP -k "net.tcp.service[http]" , return value is 1.
    2.3: zabbix_get -s IP -k "net.tcp.service[ldap]" , return value is: ZBX_NOTSUPPORTED.

    How to fix this case. thanks.
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #2
    Maybe create a custom check and call the unix tool ldapsearch to test if ldap is up or down.

    Comment

    • chliu
      Junior Member
      • Jul 2010
      • 6

      #3
      Originally posted by Palmertree
      Maybe create a custom check and call the unix tool ldapsearch to test if ldap is up or down.

      Thanks for your kinds reply!
      your mean is create a item simple check (example: net.tcp.service[ldap]) to check the ldap service status. I've try, but faild.

      also, i have find few information on Zabbix website as below:
      http://www.zabbix.com/documentation/...l/config/items

      19.4. Zabbix Agent
      1.1 Key: net.tcp.service[service,<ip>,<port>]
      1.2 Description: Check if service is running and accepting TCP connections.
      1.3 Return value: 0 - service is down 1 - service is running
      2 - timeout connecting to the service
      1.4 Parameters: service - one of ssh, ntp, ldap, smtp, ftp, http, pop, nntp, imap, tcp ip - IP address (default is 127.0.0.1) port - port number (by default standard service port number is used)
      1.5 Comments: Example: net.tcp.service[ftp,,45] can be used to test availability of FTP server on TCP port 45. Old naming: check_service[*]
      Note that before Zabbix version 1.8.3 service.ntp should be used instead of ntp.

      please help check and teach me the detail of how to monitor ldap service. many thanks.

      Comment

      • chliu
        Junior Member
        • Jul 2010
        • 6

        #4
        Anyone expert have this skill? I really need no idea for this case. thanks.

        Comment

        • chliu
          Junior Member
          • Jul 2010
          • 6

          #5
          It's ok for ldap monitor via zabbix simple check (ldap,389).
          the issue is my forgot about "--with-ldap" parameter when you were configuring your Zabbix server.
          correct sample as below.
          ./configure --enable-server --enable-agent --prefix=<path> --with-pgsql --with-net-snmp --with-jabber --with-libcurl --with-ldap

          Thanks for Zabbix Jelena strong support.

          Comment

          • ScottChapman
            Junior Member
            • Dec 2013
            • 3

            #6
            So, I do have my zabbix cofigured with_LDAP and I am currently doing a simple monitor on an LDAP server.

            But I am getting really flaky results. It seems like it being reported as being down quite often (maybe a couple dozen times a day).

            However, I have a simple PHP script which is also trying to connect, and it succeeds always.

            Any idea what's going on? Are there logs someplace which might give e some clues?

            Comment

            Working...