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 Advanced troubleshooting Adding alert on existing module through the XML File

  • Adding alert on existing module through the XML File

    Posted by Christophe on April 15, 2022 at 09:36

    Hello,

    In a project, I want to add the values inserting by a python script after receiving an SNMP message. During this process, it takes time to do setting and find the best way to do.

    When I have it, I need a bit of time to see figures on field (1 month of data). After analysing them, I want to set threshold (warning and critical).

    My problem is that if I need to add it manually… as if I add it in the script, as the module is already there, when I add new informaiton in the script, these new information aren’t added.

    How can I do it simply ? (without deleting the module, and lost all my history)

    thanks for support

    Christophe

    Sancho replied 2 years, 4 months ago 2 Members · 1 Reply
  • 1 Reply
  • Sancho

    Administrator
    April 16, 2022 at 12:52
    2212 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Import of the thresholds in the XML file is only in creation, after a module has been created you need to do it in from the interface. This is because if there were a conflict, GUI and XML will be always changing values.

    Another way you can use to alter the thresholds is by using the API or CLI.