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

[BUG] zabbix salt state not creating a user media #62685

Open
devopssankar opened this issue Sep 14, 2022 · 1 comment
Open

[BUG] zabbix salt state not creating a user media #62685

devopssankar opened this issue Sep 14, 2022 · 1 comment
Labels
Bug broken, incorrect, or confusing behavior needs-triage

Comments

@devopssankar
Copy link

devopssankar commented Sep 14, 2022

Description
zabbix user present state is creating the user in zabbix but didn't create a user media.

Setup
saltstack is running with version 3004.2 and have two zabbix servers which are running in version 5.4.2 and 6.2.2

***Salt_State_and_Results ***

create_john:
zabbix_user.present:
- alias: johnd
- passwd: xxxxxxxxxxxxx
- firstname: John
- surname: doe
- roleid: 2
- usrgrps:
- 7
- medias:
- johnd@example.com:
- mediatype: mail
- period: '1-7,00:00-24:00'
- severity: AHD
- active: true

Initial execution of above state and when I check it doesn't create user media.

      ID: create_john
Function: zabbix_user.present
  Result: True
 Comment: User john created.
 Started: 10:04:32.486646
Duration: 1897.273 ms
 Changes:
          ----------
          john:
              ----------
              new:
                  User john created.
              old:
                  User john does not exist.

Summary for ip-10-246-106-187.ec2.internal

Succeeded: 1 (changed=1)
Failed: 0

Second time execution and thereafter, still it doesn't create / attach media to the user


      ID: create_john
Function: zabbix_user.present
  Result: True
 Comment: User john updated.
 Started: 10:42:21.519417
Duration: 4395.031 ms
 Changes:
          ----------
          medias:
              [{'active': '1', 'mediatypeid': '1', 'period': '1-7,00:00-24:00', 'sendto': 'johnd@example.com', 'severity': '32'}]

Summary for ip-10-246-106-187.ec2.internal

@devopssankar devopssankar added Bug broken, incorrect, or confusing behavior needs-triage labels Sep 14, 2022
@OrangeDog
Copy link
Contributor

Does the debug/trace logging include the requests made to zabbix? It might just be a structural error in your input (which needs formatting as a code block to see properly).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior needs-triage
Projects
None yet
Development

No branches or pull requests

2 participants