Welcome to Pandora FMS Community!

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

Tagged: 

  • Command line, Create SNMP module

    Posted by newen on March 22, 2022 at 16:54

    Hi Im trying to create a module with the cli, and cant get it to work, there is an example in the documentation, but doesnt work, using my values

    perl pandora_manage.pl /etc/pandora/pandora_server.conf --create_snmp_module 'My module' remote_snmp_inc 'My agent' 192.168.12.123 8080 1 mycommunity myoid 'Module description'

    it gives me this error

    [ERROR] Parameters error: 9 received | 12-41 necessary.

    So the example doesnt have all the parameters needed?

    Also there is a list of parameters in the documentation, I assume that must be placed in order, but what if I dont want to use some of them, just as an example imagina that I dont want to use module_port, how I indicate that that parameter will not be used?

    Parameters: <module_name> <module_kind> <agent_name> <module_address> <module_port> <version> [<community> <oid> <description> <module_group> <min> <max> <post_process> <interval> <warning_min> <warning_max> <critical_min> <critical_max> <history_data> <snmp3_priv_method> <snmp3_priv_pass> <snmp3_sec_level> <snmp3_auth_method> <snmp3_auth_user> <snmp3_auth_pass> <ff_threshold> <warning_str> <critical_str> <enable_unknown_events> <each_ff> <ff_threshold_normal> <ff_treshold_warning> <ff_threshold_critical> <critical_instructions> <warning_instructions> <unknown_instructions>] <use_agent_alias>Parameters: <module_name><module_kind><agent_name><module_address><module_port><version>[<community> <oid><description><module_group><min><max><post_process><interval><warning_min><warning_max><critical_min><critical_max><history_data><snmp3_priv_method><snmp3_priv_pass><snmp3_sec_level><snmp3_auth_method><snmp3_auth_user><snmp3_auth_pass><ff_threshold><warning_str><critical_str><enable_unknown_events><each_ff><ff_threshold_normal><ff_treshold_warning><ff_threshold_critical><critical_instructions><warning_instructions><unknown_instructions>]</unknown_instructions></warning_instructions></critical_instructions></ff_threshold_critical></ff_treshold_warning></ff_threshold_normal></each_ff></enable_unknown_events></critical_str></warning_str></ff_threshold></snmp3_auth_pass></snmp3_auth_user></snmp3_auth_method></snmp3_sec_level></snmp3_priv_pass></snmp3_priv_method></history_data></critical_max></critical_min></warning_max></warning_min></interval></post_process></max></min></module_group></description></oid></community></version></module_port></module_address></agent_name></module_kind></module_name>

    Thanks

    vic replied 2 years ago 2 Members · 1 Reply
  • 1 Reply
  • vic

    Administrator
    March 22, 2022 at 18:29
    1279 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    1
    Down
    Drop it
    ::

    Hi Newen,

    I have made tests, it is necessary to add more parameters, I attach the execution of the command:

    perl pandora_manage.pl /etc/pandora/pandora_server.conf /etc/pandora/pandora_server.conf --create_snmp_module 'NAME-TEST' remote_snmp_inc 'SNMP' 192.168.70.200 161 1 network025 .1.3.6.1.2.1.2.2.1.10.1 'Module Desc' 'GeneralGroup' 0 0 0 300

    The necessary parameters are as follows:

    <module_group> <min> <max> <post_process> <interval>

    Anyway I have opened an internal ticket for the documentation team to add these parameters in the wiki example.

    Best regards,

    Víc.