ansible-collections / community.zabbix

Zabbix Ansible modules
http://galaxy.ansible.com/community/zabbix
Other
329 stars 285 forks source link

List of active events #1398

Open Pigi-102 opened 1 month ago

Pigi-102 commented 1 month ago
SUMMARY

Would it be possible to have a module that, invoked, return a list of active event like the zabbix_group_events_info or the zabbix_host_events_info but indipendent from host or group ?

ISSUE TYPE
COMPONENT NAME

zabbix_events_info

ADDITIONAL INFORMATION

I have several host in different hostgroup that have a different SLA for notifications. The 24x7 always get the notification, but thos in 9x5, if the event get triggered during night time, does not get the notification, as when the notification period starts ( say at 9.00 AM ) the event already has happened and so only the notification does not starts. With such a module I can get a list of events and create a playbook to inform someone via mail that there is a problem.

masa-orca commented 1 week ago

I think it is caused by user setting. Please check period of user_medias.

https://docs.ansible.com/ansible/latest/collections/community/zabbix/zabbix_user_module.html#parameter-user_medias/period

Pigi-102 commented 1 week ago

No, it's not. I basically would like to have a recap of every event happened during night time and are still active at the moment I run my playbook, either if the mail have been sent or not. At the moment I can get a list of all events, or a list of event filtered in some way, except for "active" state. Thanks !