Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

  • API set new_agent

    Posted by Marc on February 23, 2024 at 14:47

    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

    Marc replied 4 months, 3 weeks ago 2 Members · 4 Replies
  • 4 Replies
  • Marc

    Member
    February 23, 2024 at 14:48
    37 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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

  • Sergio

    Administrator
    February 23, 2024 at 14:55
    1103 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    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.

    • Marc

      Member
      February 26, 2024 at 13:17
      37 Karma points
      Community rank: tentacle-noob-1 Tentacle noob
      Like it
      Up
      0
      Down
      Drop it
      ::

      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.

      • Marc

        Member
        February 27, 2024 at 10:30
        37 Karma points
        Community rank: tentacle-noob-1 Tentacle noob
        Like it
        Up
        0
        Down
        Drop it
        ::

        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.