Hi all,
i have a question about Actions and media types setup. I want start a local server script from trigger, but not work.
I make a python script for test this feature in path /usr/lib/zabbix/alertscripts with bellow code:
#!/bin/env python3
import os, sys
os.popen('echo `date` >> log')
That script work fine, when run from shell, but not work from zabbix.
I setup a Media, Action and setuo a user for this media.
Following the ACL, for this files:
root@Zabbix:/usr/lib/zabbix/alertscripts# ls -l
total 4
-rwxr-xr-x 1 zabbix zabbix 71 Aug 23 01:57 hmg.py
-rw-rw-rw- 1 zabbix zabbix 0 Aug 23 01:57 log
root@Zabbix:/usr/lib/zabbix/alertscripts#
Attach the setup from GUI.
My version is Zabbix 5.0.14.
i have a question about Actions and media types setup. I want start a local server script from trigger, but not work.
I make a python script for test this feature in path /usr/lib/zabbix/alertscripts with bellow code:
#!/bin/env python3
import os, sys
os.popen('echo `date` >> log')
That script work fine, when run from shell, but not work from zabbix.
I setup a Media, Action and setuo a user for this media.
Following the ACL, for this files:
root@Zabbix:/usr/lib/zabbix/alertscripts# ls -l
total 4
-rwxr-xr-x 1 zabbix zabbix 71 Aug 23 01:57 hmg.py
-rw-rw-rw- 1 zabbix zabbix 0 Aug 23 01:57 log
root@Zabbix:/usr/lib/zabbix/alertscripts#
Attach the setup from GUI.
My version is Zabbix 5.0.14.
Comment