Pandora FMS Community

PANDORA API-ACCESS

Meriem Boudjemahi · 25 mar 2025, 16:37 · 2 mensajes · 156 visitas

  1. Inicio del debate

    Sure! Here’s a reformulation of your situation in English:


    Issue with Accessing the Pandora FMS API Interface

    I am unable to access the API interface for Pandora FMS through the link http://192.168.122.1/pandora_console/include/api.php due to an authentication error.

    I also cannot run the following command successfully:

    BEARER="Authorization: Bearer xxx"  # Replace with your tokenURL="http://192.168.1.100/pandora_console/include/api.php"  # Replace with your IP or domainAPI_QUERY="/api/v1/agent"  # Replace with the API call you wish to makecurl -k -H "$BEARER" "$URL$API_QUERY" && echo ""What should I do, please?
    
  2. Hello,

    You need to make sure that you have the API parameters in both console and pandora_server.conf file matching.

    In the Console General Setup you will find a field API Password, make sure that field has the same password as the console_api_pass inside the pandora_server.conf file.

    Once you made sure both passwords match, execute this API check and see if you get the OK result:

    http://127.0.0.1/pandora_console/include/api.php?op=get&op2=test&apipass=1234&user=admin&pass=pandora
    

    Make sure to replace the values from the URL parameters for the IP and both the apiass=YOURAPIPASS, user=CONSOLEUSER&pass=CONSOLEUSERPASS

    Kind regards,

    Sergio B.

Entra en tu cuenta para publicar.