Welcome to Pandora FMS Community!

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

Welcome to Pandora FMS Community Forums Community support set create_plugin_module fails

  • set create_plugin_module fails

    Posted by aeleus on May 16, 2024 at 14:40

    I have had success with “get” commands, but not with “set”. When running the following command, it returns “The Id does not exist in database”.

    curl –insecure ‘https://pfms.domain.tld/pandora_console/include/api.php?apipass=1234&user=apiuser&pass=pandora&op=set&op2=create_plugin_module&id=exam

    ple&other=prueba|0|1|2|0|0||0|0||0|0|127.0.0.1|0||0|300|0|0|0|0|plugin%20module%20from%20api|4|2|admin|pass|-p%20max&other_mode=url_encode_separator_|’

    I copied it from the example provided in the docs: External API [current] (pandorafms.com)

    apiuser is an “Administrator user”

    I have an agent named “example”

    This is a brand-new, clean installation:

    Version v7.0NG.776 – Community

    Current package 776

    MR version MR68

    BuildPC240314

    NAME=”Rocky Linux”

    VERSION=”8.9 (Green Obsidian)”

    vic replied 6 months, 1 week ago 2 Members · 1 Reply
  • 1 Reply
  • vic

    Administrator
    May 16, 2024 at 15:41
    1533 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi aeleus,

    You will need to replace the parameters in the example with information that does exist in the database.

    Check that all fields are correct.

    Best regards,
    Víc.