Pages: [1]   Go Down
Author Topic: Why we have in Alerts Commands, Actions and Templates?  (Read 241 times)
0 Members and 1 Guest are viewing this topic.
nydiow
Full Member
***

Karma: 0
Offline Offline

Posts: 36


View Profile
« on: February 08, 2011, 01:05:21 PM »

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!
« Last Edit: February 08, 2011, 01:13:16 PM by nydiow » Logged

Luismi
Global Moderator
Sr. Member
*****

Karma: 6
Offline Offline

Posts: 153



View Profile
« Reply #1 on: February 09, 2011, 01:45:48 PM »

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

nydiow
Full Member
***

Karma: 0
Offline Offline

Posts: 36


View Profile
« Reply #2 on: February 10, 2011, 11:49:08 AM »

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!
Logged

Luismi
Global Moderator
Sr. Member
*****

Karma: 6
Offline Offline

Posts: 153



View Profile
« Reply #3 on: February 10, 2011, 02:34:30 PM »

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.

Logged

nydiow
Full Member
***

Karma: 0
Offline Offline

Posts: 36


View Profile
« Reply #4 on: February 10, 2011, 04:59:31 PM »

Thanks!
Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST