[comment]: # ({eb648bc1-7c9bb1c5})
# 13 Citas problēmas

[comment]: # ({/eb648bc1-7c9bb1c5})

[comment]: # ({ef74ee16-ab4b69b8})
#### Pieteikšanās un systemd

Mēs iesakām
[izveidot](/manual/installation/install#create-user-account) *zabbix* lietotāju kā sistēmas lietotāju, t. i., bez iespējas pieteikties sistēmā. Daži lietotāji ignorē šo ieteikumu un izmanto to pašu kontu, lai pieteiktos (piem., izmantojot SSH) hostā, kurā darbojas Zabbix. Tas var izraisīt Zabbix dēmona avāriju, kad notiek atteikšanās. Šādā gadījumā Zabbix servera žurnālā redzēsiet kaut ko līdzīgu šim:

    zabbix_server [27730]: [file:'selfmon.c',line:375] lock failed: [22] Invalid argument
    zabbix_server [27716]: [file:'dbconfig.c',line:5266] lock failed: [22] Invalid argument
    zabbix_server [27706]: [file:'log.c',line:238] lock failed: [22] Invalid argument

un Zabbix aģenta žurnālā:

    zabbix_agentd [27796]: [file:'log.c',line:238] lock failed: [22] Invalid argument

Tas notiek noklusējuma systemd iestatījuma `RemoveIPC=yes` dēļ, kas konfigurēts failā `/etc/systemd/logind.conf`. Kad jūs atteicaties no sistēmas, Zabbix iepriekš izveidotie semafori tiek noņemti, un tas izraisa avāriju.

Citāts no systemd dokumentācijas:

    RemoveIPC=

    Controls whether System V and POSIX IPC objects belonging to the user shall be removed when the
    user fully logs out. Takes a boolean argument. If enabled, the user may not consume IPC resources
    after the last of the user's sessions terminated. This covers System V semaphores, shared memory
    and message queues, as well as POSIX shared memory and message queues. Note that IPC objects of the
    root user and other system users are excluded from the effect of this setting. Defaults to "yes".

Šai problēmai ir 2 risinājumi:

1.  (ieteicams) Neizmantojiet *zabbix* kontu nekam citam, izņemot Zabbix procesus; izveidojiet atsevišķu kontu citām vajadzībām.
2.  (nav ieteicams) Iestatiet `RemoveIPC=no` failā `/etc/systemd/logind.conf` un pārstartējiet sistēmu. Ņemiet vērā, ka `RemoveIPC` ir sistēmas līmeņa parametrs, un tā maiņa ietekmēs visu sistēmu.

[comment]: # ({/ef74ee16-ab4b69b8})

[comment]: # ({ce7659d9-ce7659d9})
#### Zabbix lietotāja saskarnes izmantošana aiz starpniekservera

Ja Zabbix lietotāja saskarne darbojas aiz starpniekservera, sīkdatnes ceļš
starpniekservera konfigurācijas failā ir jāpārraksta, lai tas atbilstu
apgrieztā starpniekservera ceļam. Skatiet tālāk sniegtos piemērus. Ja sīkdatnes ceļš netiek
pārrakstīts, lietotājiem var rasties autorizācijas problēmas, mēģinot
pieteikties Zabbix lietotāja saskarnē.

[comment]: # ({/ce7659d9-ce7659d9})

[comment]: # ({4db2f7ca-4db2f7ca})
##### Nginx konfigurācijas piemērs

    # ..
    location / {
    # ..
    proxy_cookie_path /zabbix /;
    proxy_pass http://192.168.0.94/zabbix/;
    # ..

[comment]: # ({/4db2f7ca-4db2f7ca})

[comment]: # ({55cc0aaf-55cc0aaf})
##### Apache konfigurācijas piemērs

    # ..
    ProxyPass "/" http://host/zabbix/
    ProxyPassReverse "/" http://host/zabbix/
    ProxyPassReverseCookiePath /zabbix /
    ProxyPassReverseCookieDomain host zabbix.example.com
    # ..

[comment]: # ({/55cc0aaf-55cc0aaf})
