Pandora FMS Community

set create_plugin_module fails

aeleus · 16 may 2024, 14:40 · 2 mensajes · 70 visitas

  1. Inicio del debate

    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)"

  2. 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.

Entra en tu cuenta para publicar.