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 Why we have in Alerts Commands, Actions and Templates?

  • Why we have in Alerts Commands, Actions and Templates?

    Posted by nydiow on February 8, 2011 at 16:05

    Hello guys,

    First of all id like to thank you guys all! Ive finished our migration from Pandora 2.0 to Pandora 3.2, everything is working like a charm!

    But, why we have commands, actions and templates?

    For example, i have a custom script to send emails called emailsend , in commands ive registered it, in actions i just create a action selecting only the emailsend (fields in blank), and templates i have one for each alert that i want, so … for me actions are useless! I could have only the Commands and Templates (if i would select the commands there)

    What is the idea? Something like Monitors Template would be much better! Cause we can assign a template and modify it! We cant do this with Alarms! Right? If we modify one alert template, we modify all of them, i just dont get it! Another example, i MUST create one template for every alert that have min and max not equals to others:

    Template 1: Min: 10 Max: 15
    Template 2: Min: 5 Max: 35

    I have to create 2 templates, cause if i assign one for each, and modify it, then we mess the other! Would be much better create one Template with generic Min Max and work as Monitors Templates (we can modify the template for each Agent)

    Thanks!

    nydiow replied 14 years ago 2 Members · 4 Replies
  • 4 Replies
  • luismi

    Member
    February 9, 2011 at 16:45
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello nydiow,

    Actions defines the way which the command is called. Command defines the “phisical” action, but in the action you can set a specific command. This is the difference.

    Imagine you have a command that sends an email, but it can be sent to two recipients, with different subject and body. Then, I can have only one command (that is generic), and two actions, each for a different destination.

    On the other hand, templates defines the conditions under which the alerts are fired, are more specific. For example, two diferents templates depending of the Max-Min condition.

    hope I have explained well.
    Regards.

  • nydiow

    Member
    February 10, 2011 at 14:49
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Luismi, sure i understand!

    But would be much better (and useful) if Alerts Templates work as Monitor Templates, dont you agree? I can create just one Alert Template and customize for each Agent that i want, not changing the template by itself!

  • luismi

    Member
    February 10, 2011 at 17:34
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi nydiow,

    Yes, I have understood, but then it would have to save a new instance of the template in the database for each module. Templates have to be yet specific to a kind of module, it is the idea. In module templates, once you have added a module template, you can modify it, but each agent have its own configuration in database.

    Anyway, I’ll open a feature request to study this possibility.

    Regards.

  • nydiow

    Member
    February 10, 2011 at 19:59
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thanks!