Zabbix Documentation 3.0

2.23.03.4In development:4.0Unsupported versions:1.82.02.43.2

User Tools

Site Tools


manual:appendix:other_issues

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
manual:appendix:other_issues [2018/07/05 06:07]
martins-v fixing page number
manual:appendix:other_issues [2018/07/11 05:35] (current)
martins-v updated version of recommendations
Line 3: Line 3:
 === Login and systemd === === Login and systemd ===
  
-Sometimes you use a //zabbix// user not only to run Zabbixbut also to log in to a host using SSH. If that host is running Zabbix ​you might crash it on logging ​out. In this case you will get something like the following in the Zabbix server log:+We recommend creating ​a //zabbix// user as system userthat is, without ability ​to log in. Some users ignore this recommendation and use the same account ​to log in (e. g. using SSH) to host running Zabbix. This might crash Zabbix daemon ​on log out. In this case you will get something like the following in Zabbix server log:
  
   zabbix_server [27730]: [file:'​selfmon.c',​line:​375] lock failed: [22] Invalid argument   zabbix_server [27730]: [file:'​selfmon.c',​line:​375] lock failed: [22] Invalid argument
Line 9: Line 9:
   zabbix_server [27706]: [file:'​log.c',​line:​238] lock failed: [22] Invalid argument   zabbix_server [27706]: [file:'​log.c',​line:​238] lock failed: [22] Invalid argument
  
-and in the Zabbix agent log:+and in Zabbix agent log:
  
   zabbix_agentd [27796]: [file:'​log.c',​line:​238] lock failed: [22] Invalid argument   zabbix_agentd [27796]: [file:'​log.c',​line:​238] lock failed: [22] Invalid argument
  
-This happens because of the default systemd setting ''​RemoveIPC=yes''​ configured in ''/​etc/​systemd/​logind.conf''​. When you log out of the system the semaphores created by zabbix ​previously are removed which causes the crash.+This happens because of default systemd setting ''​RemoveIPC=yes''​ configured in ''/​etc/​systemd/​logind.conf''​. When you log out of the system the semaphores created by Zabbix ​previously are removed which causes the crash.
  
 A quote from systemd documentation:​ A quote from systemd documentation:​
Line 25: Line 25:
   root user and other system users are excluded from the effect of this setting. Defaults to "​yes"​.   root user and other system users are excluded from the effect of this setting. Defaults to "​yes"​.
  
-To fix this issue and continue ​using //​zabbix// ​user to log in/out of the systemset ''​RemoveIPC=no''​ in ''/​etc/​systemd/​logind.conf''​ and run ''​systemctl reboot''​ to reboot the system.+There are 2 solutions to this problem: 
 +  - (recommended) Stop using //​zabbix// ​account for anything else than Zabbix processescreate a dedicated account for other things. 
 +  - (not recommended) Set ''​RemoveIPC=no''​ in ''/​etc/​systemd/​logind.conf''​ and reboot the system.