saltstack / salt

Software to automate the management and configuration of any infrastructure or application at scale. Install Salt from the Salt package repositories here:
https://docs.saltproject.io/salt/install-guide/en/latest/
Apache License 2.0
14.21k stars 5.48k forks source link

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

Open devopssankar opened 2 years ago

devopssankar commented 2 years ago

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:

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

OrangeDog commented 2 years ago

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