Pandora FMS Community

Non initialised module

Vitoi · 20 jul 2011, 0:08 · 5 mensajes · 55 visitas

  1. Inicio del debate

    Script:

    BUSCA=`ldapsearch -x -h $1 2> error`
    
    if [ ${#BUSCA} = 0 ];
    then
            echo 0
    else
            echo 1
    fi
    

    This return 1 when LDAP is online and 0 when LDAP is offline... But when I try to load the module it doesn't initialize. Why? I have a similar for checking DNS Server and it works just fine:

    BUSCA=`nslookup $1 | grep $2`
    
    if [ ${#BUSCA} = 0 ];
    then
            echo 0
    else
            echo 1
    fi
    
  2. Hi Vitoi.   Check the output of your script. Most of the times, the "Non initialised" error is associated to the output of the check. Maybe the 'ldapsearch' call is taking too much to respond or a firewall is blocking the communication. Regards.

  3. Are you running the script in pandora server?

  4. Sorry, my bad... Just had to add "sh " on the "Plug-in command" /var/www/pandora_console/attachment/plugin/ldap.sh to sh /var/www/pandora_console/attachment/plugin/ldap.sh

  5. I'm happy to know that you made it work. Regards.

Entra en tu cuenta para publicar.