-
Incident report
-
Resolution: Done
-
Trivial
-
None
-
4.4.3
-
None
Hi. We update our zabbix from 4.4.1 to 4.4.3.
Before update we use custom alertscript to send alerts by snmp. Script is in attachmend.
After update scritp returns error Read-only file system.
We modificated script and add comands: whoami, pwd, ls- la.
In error we see:
zabbix /usr/lib/zabbix/alertscripts total 7848 drwxr-xr-x. 3 zabbix zabbix 144 Dec 13 12:00 . drwxr-xr-x. 4 zabbix zabbix 49 Dec 13 10:44 .. drwxr-xr-x. 2 zabbix zabbix 6 Dec 13 11:54 delivery -rwxr-xr-x. 1 zabbix zabbix 4542 Dec 12 15:45 delivery.sh -rwxrwxrwx. 1 zabbix zabbix 1318 Dec 12 15:45 sendpic.sh -rwxr-xr-x. 1 zabbix zabbix 1013 Dec 13 12:06 ssmtp2.sh -rwxr-xr-x. 1 zabbix zabbix 1285 Dec 12 15:45 ssmtp.sh -rwxr-xr-x. 1 zabbix zabbix 555 Dec 12 15:45 teams.sh -rwxrwxrwx. 1 zabbix zabbix 8005600 Dec 12 15:45 telegram -rwxr-xr-x. 1 zabbix zabbix 148 Dec 12 15:45 telegramm.sh /usr/lib/zabbix/alertscripts/ssmtp2.sh: line 30: /usr/lib/zabbix/alertscripts/delivery/[email protected]: Read-only file system
But if we will login as zabbix and run those commads we will see:
@zabbix-test alertscripts]$ sudo su zabbix bash-4.2$ pwd /usr/lib/zabbix/alertscripts bash-4.2$ whoami zabbix bash-4.2$ ls -la total 7848 drwxr-xr-x. 3 zabbix zabbix 144 Dec 13 12:00 . drwxr-xr-x. 4 zabbix zabbix 49 Dec 13 10:44 .. drwxr-xr-x. 2 zabbix zabbix 6 Dec 13 11:54 delivery -rwxr-xr-x. 1 zabbix zabbix 4542 Dec 12 15:45 delivery.sh -rwxrwxrwx. 1 zabbix zabbix 1318 Dec 12 15:45 sendpic.sh -rwxr-xr-x. 1 zabbix zabbix 1013 Dec 13 12:06 ssmtp2.sh -rwxr-xr-x. 1 zabbix zabbix 1285 Dec 12 15:45 ssmtp.sh -rwxr-xr-x. 1 zabbix zabbix 555 Dec 12 15:45 teams.sh -rwxrwxrwx. 1 zabbix zabbix 8005600 Dec 12 15:45 telegram -rwxr-xr-x. 1 zabbix zabbix 148 Dec 12 15:45 telegramm.sh bash-4.2$ nano delivery/123 bash-4.2$ ls delivery/ 123 bash-4.2$ cat delivery/ cat: delivery/: Is a directory bash-4.2$ cat delivery/123 adwawdawd
Before update script works correctly. We don't see any updates of user alertscripts in upgrade notes. How zabbix run users alert script now? Why it can't white to dirrectory that owns him?