Pandora FMS Community

Automatic Alert Creation

brendan · 6 dic 2016, 20:55 · 5 mensajes · 99 visitas

  1. Inicio del debate

    Hi, Besides using the bulk operations in the web console, how can I automatically add alerts for new agents? I will be monitoring quite a few VM's, and it is not at all convenient (or viable) to have to bulk add alerts through the web console everytime a new agent is added.  In my case this could be many agents a day and I would have to constantly update them. I want to send an email when any module on any agent goes critical, without having to manually or bulk add the alerts in the web console. Is this possible some other way, or with the API or CLI?  I don't see anything related. Thank you

  2. Since I was unable to find any solution for this, I wrote a PHP script that loops through agent-modules and adds appropriate actions for each event/status change.

  3. Hello brendan, The policies allow you to generate "alert templates" to be applyed to many agents as you need, and you could then use CLI to automatize this. Policies are only available on the enterprise version tho. Kind regards, Antonio.

  4. Thanks Antonio, That's what it seemed like from my research.  Unfortunately, the cost of the Enterprise version is  not feasible for us at this point. :)

  5. Hi together. We are planning to switch from our current monitoring-solution (centreon) to pandora fms (not enterprise). With the help of the CLI / API we want to create / import new agents and users automatically from our cmdb. Here we are talking about more than 1000 agents and users and we want to get notified for every single module that switches his state. For the initial import its possible to create for every agent, for every module, for every state and every user such an alert. But when the user adds more modules after initial import he need to add such alerts again. And what if an address changes? So we need to change all alerts? Thats not viable. So i look for another solution. My next thought was to use "event responses" and use a custom command which uses the CLI / API again. So i had to create a event response which triggers when a module state changes. In my custom command i planned to firstly look for the belonging group of the agent / module. After this i wanted to look for all users that belong to this group and then look for their e-mail address. After this an e-mail should be created. But my problem is, that i cant get the information which user belongs to a group. Are their any other solutions to resolve my problem? The main-point is, that only the users which have access to a group should be notified if any module in this group change. And it should be a flexible and usable solution. Creating or modifying thousands of alerts or other configurations are not handable in a reliable productive environment if an e-mail address of an user changes or if another users is added or removed from a group. I hope you have some more nice ideas how to do this. With nice regards. Martin

Entra en tu cuenta para publicar.