Software to automate the management and configuration of any infrastructure or application at scale. Install Salt from the Salt package repositories here:
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'}]
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).
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.
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
Summary for ip-10-246-106-187.ec2.internal