Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintenance: Support time periods types other than "one time only" #1201

Open
oldmanhere opened this issue Apr 10, 2024 · 0 comments
Open

Maintenance: Support time periods types other than "one time only" #1201

oldmanhere opened this issue Apr 10, 2024 · 0 comments
Labels
enhancement New feature or request module The issue or pull request is related to Zabbix module

Comments

@oldmanhere
Copy link

oldmanhere commented Apr 10, 2024

SUMMARY

Maintenance: Support time periods types other than "one time only" : weekly at least, next daily and monthly

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

zabbix_maintenance

ADDITIONAL INFORMATION

We need to set, for example, a maintenance period started at 1h00, every monday, for 3 hours.
Actually, the module only set a "one time period" maintenance.

To accomplish what we need, the zabbix reference provide a "time period" object that can take a timeperiod_type of 3, a dayofweek of 1 and a start_time 3600.
The minutes of 180 give the 3 hours already.
We can add a variable start_at_minutes that give the 1h start, and a variable day_of_week for the day. If day_of_week exist, then the weekly timeperiod_type can be chosen correctly and other values calculated.

No proposition for daily and monthly. you are free.

  community.zabbix.zabbix_maintenance:
    name: "Monday maintenance"
    host_groups: "Sample_group"
    state: present
    collect_data: true
    minutes: 180
    start_at_minutes: 60
    day_of_week: "monday"
@pyrodie18 pyrodie18 added enhancement New feature or request module The issue or pull request is related to Zabbix module labels Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request module The issue or pull request is related to Zabbix module
Projects
None yet
Development

No branches or pull requests

2 participants