mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
zabbix: update to zabbix 3.0.1
zabbix-agent doesn't exist anymore since 3.0 '-f' option (foreground) is now in zabbix-agentd 003-change-user-and-foreground.patch fixes pending issue https://support.zabbix.com/browse/ZBX-10611 you might need to update your config file to add LogType=system Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
--- a/src/libs/zbxnix/daemon.c
|
||||
+++ b/src/libs/zbxnix/daemon.c
|
||||
@@ -300,11 +300,14 @@ int daemon_start(int allow_root, const c
|
||||
|
||||
if (0 == allow_root && 0 == getuid()) /* running as root? */
|
||||
{
|
||||
+#if 0
|
||||
+/* allow changing user and foreground */
|
||||
if (0 != (flags & ZBX_TASK_FLAG_FOREGROUND))
|
||||
{
|
||||
zbx_error("cannot run as root!");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
+#endif
|
||||
|
||||
if (NULL == user)
|
||||
user = "zabbix";
|
||||
Reference in New Issue
Block a user