Pandora FMS Community

API set new_agent

Marc · 23 feb 2024, 14:47 · 5 mensajes · 67 visitas

  1. Inicio del debate

    Hi, I am trying to add an agent through the API with the set new_agent tool and when I execute the API I get the following error: For security reasons, the agent was not created. Use a group other than 0..

    And of course the group of the query is not 0

    I hope you can help me.

    Thanks

  2. hola, estoy intentando añadir un agente a través de la API con la herramienta set new_agent y al ejecutar la API me sale el siguiente error: For security reasons, the agent was not created. Use a group other than 0..

    y por supuesto el grupo de la consulta no es 0

    Espero me puedan ayudar.

    Gracias

  3. Buenos días,

    ¿Que llamada estás utilizando para crear el agente?

    Pegala a aquí para que revisemos donde está el fallo.

    Un saludo,

    Sergio B.

  4. Ya lo he solucionado muchas gracias igualmente, me faltaba por añadir el parámetro other_mode=url_encode_separator_| para que definiera la separación.

    Hay alguna forma de obtener el ID del agente una vez se ha creado?

    Gracias.

  5. Porque por lo que he visto la misma llamada a new_agent con la API devuelve el ID del agente que acaba de crear pero no recibo nada.

    Un saludo.

Entra en tu cuenta para publicar.