Coder Social home page Coder Social logo

bgmot / zabbix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zabbix/zabbix

31.0 31.0 8.0 1.74 GB

This repository is a fork of official Zabbix repository https://github.com/zabbix/zabbix.git. See README why it was forked.

License: GNU General Public License v2.0

Makefile 0.47% C 38.79% Shell 0.11% PHP 50.68% C++ 0.31% M4 0.50% Perl 0.13% JavaScript 2.48% CSS 2.33% XSLT 0.01% Java 0.18% Go 3.39% PLpgSQL 0.01% SCSS 0.60% BitBake 0.01%
2fa ldap-authentication zabbix

zabbix's People

Contributors

abakaldin avatar abiba-zabbix avatar ableev avatar abrosimovs avatar aiantsen avatar aleksandrkotsegubov avatar alexv123456 avatar andrismednis avatar arimdjonokszabbix avatar arseniuss-zabbix avatar atocko avatar atumilovics-zabbix avatar bgmot avatar casperr0 avatar dimir avatar drasikhov avatar egordymov avatar gf0rgx avatar greg-zabbix avatar igorbach avatar janisn-zabbix avatar katyakuzmina avatar knaglis avatar rons4 avatar rzvejs avatar verzabbix avatar vmurzins avatar yur11 avatar zurabtielidze avatar zvjaceslavs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

zabbix's Issues

500 error for ggl.php

Hello!
i just tried to install on my Zabbix server 5.0.20 version, install succeeded.
then i enabled Google Authenticator and log out of Admin account.
then i tried to log in back, i entered user/psw, and them blank page opens, with 500 Error. tried to see on browser console - incorrect JSON.

Undefined index: case_sensitive

Hello when i 'm trying log in. I get warning
Version 6.2.1

Undefined index: case_sensitive in /usr/share/zabbix/include/classes/ldap/CLdap.php on line 241" while reading response header from upstream, client: IP, server: zabbix, request: "POST /index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/zabbix.sock:", host: "zabbix", referrer: "https://zabbix/index.php"

HTTP Error 500 for .../zabbix.php?action=twofa.edit

I run the comment "curl -L -o bg-features-install.sh https://raw.githubusercontent.com/BGmot/zabbix/6.4.7-bg/bg-scripts/bg-features-install.sh" on my Zabbix UI server and Zabbix DB server as I use separated servers.
Zabbix version is correct 6.4.7.
Here's the output of running script in Zabbix UI server
`+ set -u

  • set -o
    allexport off
    braceexpand on
    emacs off
    errexit off
    errtrace off
    functrace off
    hashall on
    histexpand off
    history off
    ignoreeof off
    interactive-comments on
    keyword off
    monitor off
    noclobber off
    noexec off
    noglob off
    nolog off
    notify off
    nounset on
    onecmd off
    physical off
    pipefail off
    posix off
    privileged off
    verbose off
    vi off
    xtrace on
  • DB_HOST=localhost
  • DB_USERNAME=zabbix
  • DB_PASSWORD=zabbix
  • DB_NAME=zabbix
  • ZABBIX_INSTALL_PATH=/usr/share/zabbix
    ++ date +%s
  • TMPDIR=/tmp/1698138488
  • VERSION=6.4.7
    ++ grep ZABBIX_VERSION /usr/share/zabbix/include/defines.inc.php
    ++ cut '-d'''' -f 4
  • ZABBIX_INSTALLED_VERSION=6.4.7
  • '[' 6.4.7 '!=' 6.4.7 ']'
  • mkdir /tmp/1698138488
  • cd /tmp/1698138488
  • curl -L -o bg-patch-6.4.7.zip https://github.com/BGmot/zabbix/raw/release/6.4-bg/bg-patch-6.4.7.zip
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
    100 101k 100 101k 0 0 229k 0 --:--:-- --:--:-- --:--:-- 229k
  • unzip bg-patch-6.4.7.zip
    Archive: bg-patch-6.4.7.zip
    inflating: bg-scripts/bg-features-install.sh
    inflating: bg-scripts/db-rename-columns.sql
    inflating: bg-scripts/db-update-pg.sql
    inflating: bg-scripts/db-update.sql
    inflating: ui/app/controllers/CControllerAuditLogList.php
    inflating: ui/app/controllers/CControllerTwofaEdit.php
    inflating: ui/app/controllers/CControllerTwofaUpdate.php
    inflating: ui/app/controllers/CControllerUserroleCreate.php
    inflating: ui/app/controllers/CControllerUserroleEdit.php
    inflating: ui/app/controllers/CControllerUserroleUpdate.php
    inflating: ui/app/views/js/administration.userrole.edit.js.php
    inflating: ui/app/views/js/reports.auditlog.list.js.php
    inflating: ui/app/views/js/users.twofa.edit.js.php
    inflating: ui/app/views/users.twofa.edit.php
    inflating: ui/assets/.gitignore
    inflating: ui/assets/styles/Duo-Frame.css
    inflating: ui/duo.php
    inflating: ui/ggl.php
    inflating: ui/gglauth/FixedBitNotation.php
    inflating: ui/gglauth/GoogleAuthenticator.php
    inflating: ui/gglauth/GoogleAuthenticatorInterface.php
    inflating: ui/gglauth/GoogleQrUrl.php
    inflating: ui/include/classes/api/API.php
    inflating: ui/include/classes/api/CApiServiceFactory.php
    inflating: ui/include/classes/api/CAudit.php
    inflating: ui/include/classes/api/services/CTwofa.php
    inflating: ui/include/classes/api/services/CUser.php
    inflating: ui/include/classes/duo/CDuoWeb.php
    inflating: ui/include/classes/helpers/CMenuHelper.php
    inflating: ui/include/classes/helpers/CRoleHelper.php
    inflating: ui/include/classes/helpers/CTwofaHelper.php
    inflating: ui/include/classes/mvc/CRouter.php
    inflating: ui/include/perm.inc.php
    inflating: ui/include/schema.inc.php
    inflating: ui/include/views/general.duo.php
    inflating: ui/include/views/general.ggl.php
    inflating: ui/index.php
    inflating: ui/js/Duo-Web-v2.js
  • echo 'Patching WebUI files...'
    Patching WebUI files...
  • cd ui
  • cp -r gglauth /usr/share/zabbix/
  • cp ggl.php /usr/share/zabbix/
    ++ date +%s
  • cp /usr/share/zabbix/index.php /usr/share/zabbix/index.php-1698138488.bak
  • cp index.php /usr/share/zabbix/
  • cp duo.php /usr/share/zabbix/
  • cp assets/styles/Duo-Frame.css /usr/share/zabbix/assets/styles/
  • cp js/Duo-Web-v2.js /usr/share/zabbix/js
  • cd include
    ++ date +%s
  • cp /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/include/defines.inc.php-1698138488.bak
    ++ grep ZBX_AUTH_2FA_NONE /usr/share/zabbix/include/defines.inc.php
  • '[' -z 'define('''ZBX_AUTH_2FA_NONE''', 0);' ']'
    ++ grep ZBX_AUTH_2FA_DUO /usr/share/zabbix/include/defines.inc.php
  • '[' -z 'define('''ZBX_AUTH_2FA_DUO''', 1);' ']'
    ++ grep ZBX_AUTH_2FA_GGL /usr/share/zabbix/include/defines.inc.php
  • '[' -z 'define('''ZBX_AUTH_2FA_GGL''', 2);' ']'
    ++ date +%s
  • cp /usr/share/zabbix/include/perm.inc.php /usr/share/zabbix/include/perm.inc.php-1698138488.bak
  • cp perm.inc.php /usr/share/zabbix/include
    ++ date +%s
  • cp /usr/share/zabbix/include/schema.inc.php /usr/share/zabbix/include/schema.inc.php-1698138488.bak
  • cp schema.inc.php /usr/share/zabbix/include
  • cp views/general.duo.php /usr/share/zabbix/include/views/
  • cp views/general.ggl.php /usr/share/zabbix/include/views/
  • cd classes/api
    ++ date +%s
  • cp /usr/share/zabbix/include/classes/api/API.php /usr/share/zabbix/include/classes/api/API.php-1698138488.bak
  • cp API.php /usr/share/zabbix/include/classes/api/
    ++ date +%s
  • cp /usr/share/zabbix/include/classes/api/CApiServiceFactory.php /usr/share/zabbix/include/classes/api/CApiServiceFactory.
  • cp CApiServiceFactory.php /usr/share/zabbix/include/classes/api/
    ++ date +%s
  • cp /usr/share/zabbix/include/classes/api/CAudit.php /usr/share/zabbix/include/classes/api/CAudit.php-1698138489.bak
  • cp CAudit.php /usr/share/zabbix/include/classes/api/
  • cd services
    ++ date +%s
  • cp /usr/share/zabbix/include/classes/api/services/CUser.php /usr/share/zabbix/include/classes/api/services/CUser.php-1698
  • cp CUser.php /usr/share/zabbix/include/classes/api/services/
  • cp CTwofa.php /usr/share/zabbix/include/classes/api/services/
  • cd ../../
  • mkdir /usr/share/zabbix/include/classes/duo/
    mkdir: cannot create directory ‘/usr/share/zabbix/include/classes/duo/’: File exists
  • cp duo/CDuoWeb.php /usr/share/zabbix/include/classes/duo/
    ++ date +%s
  • cp /usr/share/zabbix/include/classes/helpers/CMenuHelper.php /usr/share/zabbix/include/classes/helpers/CMenuHelper.php-16
  • cp helpers/CMenuHelper.php /usr/share/zabbix/include/classes/helpers/
    ++ date +%s
  • cp /usr/share/zabbix/include/classes/helpers/CRoleHelper.php /usr/share/zabbix/include/classes/helpers/CRoleHelper.php-16
  • cp helpers/CRoleHelper.php /usr/share/zabbix/include/classes/helpers/
  • cp helpers/CTwofaHelper.php /usr/share/zabbix/include/classes/helpers/
    ++ date +%s
  • cp /usr/share/zabbix/include/classes/mvc/CRouter.php /usr/share/zabbix/include/classes/mvc/CRouter.php-1698138489.bak
  • cp mvc/CRouter.php /usr/share/zabbix/include/classes/mvc/CRouter.php
  • cd ../../app/views/
  • cp users.twofa.edit.php /usr/share/zabbix/app/views/
  • cp js/users.twofa.edit.js.php /usr/share/zabbix/app/views/js/
    ++ date +%s
  • cp /usr/share/zabbix/app/views/js/administration.userrole.edit.js.php /usr/share/zabbix/app/views/js/administration.userr
  • cp js/administration.userrole.edit.js.php /usr/share/zabbix/app/views/js/
    ++ date +%s
  • cp /usr/share/zabbix/app/views/js/reports.auditlog.list.js.php /usr/share/zabbix/app/views/js/reports.auditlog.list.js.ph
  • cp js/reports.auditlog.list.js.php /usr/share/zabbix/app/views/js/
  • cd ../controllers/
    ++ date +%s
  • cp /usr/share/zabbix/app/controllers/CControllerAuditLogList.php /usr/share/zabbix/app/controllers/CControllerAuditLogLis
  • cp CControllerAuditLogList.php /usr/share/zabbix/app/controllers/
    ++ date +%s
  • cp /usr/share/zabbix/app/controllers/CControllerUserroleCreate.php /usr/share/zabbix/app/controllers/CControllerUserroleC
  • cp CControllerUserroleCreate.php /usr/share/zabbix/app/controllers/
    ++ date +%s
  • cp /usr/share/zabbix/app/controllers/CControllerUserroleEdit.php /usr/share/zabbix/app/controllers/CControllerUserroleEdi
  • cp CControllerUserroleEdit.php /usr/share/zabbix/app/controllers/
    ++ date +%s
  • cp /usr/share/zabbix/app/controllers/CControllerUserroleUpdate.php /usr/share/zabbix/app/controllers/CControllerUserroleU
  • cp CControllerUserroleUpdate.php /usr/share/zabbix/app/controllers/
  • cp -r CControllerTwofaEdit.php CControllerTwofaUpdate.php /usr/share/zabbix/app/controllers/
  • echo 'Done! Reload your browser to see changes.'
    Done! Reload your browser to see changes.
    `

Then, here's the output from Zabbix DB server
`+ set -u

  • set -o
    allexport off
    braceexpand on
    emacs off
    errexit off
    errtrace off
    functrace off
    hashall on
    histexpand off
    history off
    ignoreeof off
    interactive-comments on
    keyword off
    monitor off
    noclobber off
    noexec off
    noglob off
    nolog off
    notify off
    nounset on
    onecmd off
    physical off
    pipefail off
    posix off
    privileged off
    verbose off
    vi off
    xtrace on
  • DB_HOST=10.88.4.207
  • DB_USERNAME=zbxuser
  • DB_PASSWORD=wfQ7DcH0
  • DB_NAME=zabbix
  • ZABBIX_INSTALL_PATH=/usr/share/zabbix
    ++ date +%s
  • TMPDIR=/tmp/1698137559
  • VERSION=6.4.7
  • mkdir /tmp/1698137559
  • cd /tmp/1698137559
  • curl -L -o bg-patch-6.4.7.zip https://github.com/BGmot/zabbix/raw/release/6.4-bg/bg-patch-6.4.7.zip
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
    100 101k 100 101k 0 0 131k 0 --:--:-- --:--:-- --:--:-- 131k
  • unzip bg-patch-6.4.7.zip
    Archive: bg-patch-6.4.7.zip
    inflating: bg-scripts/bg-features-install.sh
    inflating: bg-scripts/db-rename-columns.sql
    inflating: bg-scripts/db-update-pg.sql
    inflating: bg-scripts/db-update.sql
    inflating: ui/app/controllers/CControllerAuditLogList.php
    inflating: ui/app/controllers/CControllerTwofaEdit.php
    inflating: ui/app/controllers/CControllerTwofaUpdate.php
    inflating: ui/app/controllers/CControllerUserroleCreate.php
    inflating: ui/app/controllers/CControllerUserroleEdit.php
    inflating: ui/app/controllers/CControllerUserroleUpdate.php
    inflating: ui/app/views/js/administration.userrole.edit.js.php
    inflating: ui/app/views/js/reports.auditlog.list.js.php
    inflating: ui/app/views/js/users.twofa.edit.js.php
    inflating: ui/app/views/users.twofa.edit.php
    inflating: ui/assets/.gitignore
    inflating: ui/assets/styles/Duo-Frame.css
    inflating: ui/duo.php
    inflating: ui/ggl.php
    inflating: ui/gglauth/FixedBitNotation.php
    inflating: ui/gglauth/GoogleAuthenticator.php
    inflating: ui/gglauth/GoogleAuthenticatorInterface.php
    inflating: ui/gglauth/GoogleQrUrl.php
    inflating: ui/include/classes/api/API.php
    inflating: ui/include/classes/api/CApiServiceFactory.php
    inflating: ui/include/classes/api/CAudit.php
    inflating: ui/include/classes/api/services/CTwofa.php
    inflating: ui/include/classes/api/services/CUser.php
    inflating: ui/include/classes/duo/CDuoWeb.php
    inflating: ui/include/classes/helpers/CMenuHelper.php
    inflating: ui/include/classes/helpers/CRoleHelper.php
    inflating: ui/include/classes/helpers/CTwofaHelper.php
    inflating: ui/include/classes/mvc/CRouter.php
    inflating: ui/include/perm.inc.php
    inflating: ui/include/schema.inc.php
    inflating: ui/include/views/general.duo.php
    inflating: ui/include/views/general.ggl.php
    inflating: ui/index.php
    inflating: ui/js/Duo-Web-v2.js
    ++ which mysql
  • '[' '' '!=' '' ']'
    ++ which psql
  • '[' /usr/bin/psql '!=' '' ']'
  • DB_TYPE=PostgreSQL
  • '[' PostgreSQL == MySQL ']'
  • '[' PostgreSQL == PostgreSQL ']'
  • PGPASSWORD=wfQ7DcH0
  • psql -U zbxuser -h 10.88.4.207 -d zabbix -c '\d+ users'
  • grep ggl_secret
  • '[' 1 -eq 0 ']'
  • echo 'Patching DB...'
    Patching DB...
  • '[' PostgreSQL == MySQL ']'
  • PGPASSWORD=wfQ7DcH0
  • psql -U zbxuser -h 10.88.4.207 -d zabbix
    ALTER TABLE
    ALTER TABLE
    ALTER TABLE
    ALTER TABLE
    ALTER TABLE
    ALTER TABLE
    ALTER TABLE
  • '[' 0 -eq 0 ']'
  • echo 'Database was successfully patched.'
    Database was successfully patched.
    `

I mean both scripts are run successfully. But when I click 2FA in Zabbix UI, I got internal server error.
How can I fix it?

image

Error during the first connection

Hello,

I get this error message (on the connection panel) only when the user authenticates the first time on Zabbix (v4.4.4) :
Field "userid" cannot be set to NULL

Remark: all the next connections work without any error messages.

Zabbix 6.4.7

hello, need to install 2FA with google authenticator on zabbix version 6.4.7. feature has been removed after upgrade from 6.4.6.

Installation procedure from github on the below link is for 6.4.6 script need to be modified to match zabbix version 6.4.7.

Thank you

Issue with 'Case sensitive login' option

I have patched Zabbix 5.4 successfully with https://github.com/BGmot/zabbix/blob/release/5.4-bg/bg-scripts/bg-features-install.sh

Once done have amended existing users so they correspond with AD sAMAccountName attribute. In LDAP Setting the checkbox 'Case sensitive login' was set and all existing users were able to login.
However if a user tried to log in with different capitalization, e.g. john.doe instead of John.Doe this created a new user john.doe in Zabbix.

To avoid user duplication I have unset 'Case sensitive login' checkbox. After that UI denied to login at all with error in frontend like

SQL statement execution has failed "INSERT INTO users (username,name,surname,url,passwd,roleid,userid) VALUES ('John.Doe','John Doe','','','23412b4ea46a7432c21eefb90f1354fb','2','258')".

and logline in error.log

[Thu Apr 28 22:44:44.441631 2022] [php7:notice] [pid 16654] [client 192.168.0.2:63530] PHP Notice:  Undefined variable: fields in /var/www/html/zabbix/include/classes/api/services/CUser.php on line 1454, referer: https://my.zabbix.system/zabbix/index.php
[Thu Apr 28 22:44:44.441741 2022] [php7:warn] [pid 16654] [client 192.168.0.2:63530] PHP Warning:  implode(): Invalid arguments passed in /var/www/html/zabbix/include/classes/api/services/CUser.php on line 1454, referer: https://my.zabbix.system/zabbix/index.php

6.0.8 released

FYI, 6.0.8 released.

Also appears 6.2.2 is also released, but I am only running on a test server.

Error query after upgrade zabbix 5 to 6 for ldap

Hello

need help after upgrade zabbix 5 to 6

Cannot add LDAP group
Error in query [INSERT INTO adusrgrp (adusrgrpid,name,roleid) VALUES ('5','GROUP','3')] [Unknown column 'roleid' in 'field list']
SQL statement execution has failed "INSERT INTO adusrgrp (adusrgrpid,name,roleid) VALUES ('5','GROUP','3')".

LDAP groups
Error in query [SELECT ag.adusrgrpid,ag.name,ag.roleid FROM adusrgrp ag ORDER BY ag.name LIMIT 1001] [Unknown column 'ag.roleid' in 'field list']
Error in query [SELECT adg.adusrgrpid,r.name FROM adusrgrp adg,role r WHERE adg.roleid=r.roleid AND 1=0] [Unknown column 'adg.roleid' in 'where clause']

Thank you in advance for your reply

Not able to switch to DUO or Google auth

Hi BGmot,

when I tested docker zabbix 2fa works great. But after running the install script successfully (no err) the new line under Administratorin shows me 2FA but clicking DUO or Google button nothing happened.

Restart apache2 and zabbix services not helped.

zabbix version:

ii zabbix-agent 1:6.0.21-1+debian11 amd64 Zabbix network monitoring solution - agent
ii zabbix-apache-conf 1:6.0.21-1+debian11 all Zabbix network monitoring solution - apache configuration for front-end
ii zabbix-frontend-php 1:6.0.21-1+debian11 all Zabbix network monitoring solution - PHP front-end
ii zabbix-release 1:6.0-3+debian11 all Zabbix official repository configuration
ii zabbix-server-mysql 1:6.0.21-1+debian11 amd64 Zabbix network monitoring solution - server (MySQL)
ii zabbix-sql-scripts 1:6.0.21-1+debian11 all Zabbix network monitoring solution - sql-scripts

thanks you for the advice

Undefined variable: db_user

Hello, affter install script on 6.2.1 version and made all recommendation for configuration groups and ldaps i have error.

"PHP message: PHP Notice: Undefined variable: db_user in /usr/share/zabbix/include/classes/api/services/CUser.php on line 1492PHP message: PHP Notice: Trying to access array offset on value of type null in /usr/share/zabbix/include/classes/api/services/CUser.php on line 1492PHP message: PHP Notice: Undefined index: case_sensitive in /usr/share/zabbix/include/classes/ldap/CLdap.php on line 241" while reading response header from upstream, client: IP, server: zabapp, request: "POST /index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/zabbix.sock:", host: "zabbix", referrer: "https://zabbix/index.php"

bg-patch-6.0.28.zip is incomplete

Hi,
Two errors occur when installing 6.0.28.

  • "bg-patch-6.0.28.zip" is unzipped to a directory named "bg-scripts".
+ cd bg-patch-6.0.28
bg-features-install.sh: line 26: cd: bg-patch-6.0.28: No such file or directory
  • "CAuditLog.php" is not in the zip file.
+ cp CAuditLog.php /usr/share/zabbix/include/classes/api/services/
cp: cannot stat 'CAuditLog.php': No such file or directory

best regards

Zabbix 6.0.5 + Google 2FA: Class 'Sonata\\GoogleAuthenticator\\RuntimeException' not found

Hello.

Zabbix 6.0.5 on Debian 11 environment, no errors during installations but after enabling Google 2FA, i get this when accessing zabbix after username/pw login:

PHP Fatal error: Uncaught Error: Class 'Sonata\\GoogleAuthenticator\\RuntimeException' not found in /usr/share/zabbix/gglauth/GoogleQrUrl.php:74\nStack trace:\n#0 /usr/share/zabbix/ggl.php(92): Sonata\\GoogleAuthenticator\\GoogleQrUrl::generate()\n#1 {main}\n thrown in /usr/share/zabbix/gglauth/GoogleQrUrl.php on line 74

Googling gave me suggestion to include gglauth/GoogleAuthenticatorInterface.php, but this is already in /usr/share/zabbix/ggl.php:

root@monitoring:~# grep ^include_once /usr/share/zabbix/ggl.php
include_once dirname(__FILE__).'/gglauth/FixedBitNotation.php';
include_once dirname(__FILE__).'/gglauth/GoogleAuthenticatorInterface.php';
include_once dirname(__FILE__).'/gglauth/GoogleAuthenticator.php';
include_once dirname(__FILE__).'/gglauth/GoogleQrUrl.php';
root@monitoring:~#

Please assist

A Few questions

Is there a reason why this isn't done via a pull request to make this part of the main application?

How will this work with updates to Zabbix? How will it stay maintained through updates?

support for Zabbix 5.4.8?

Any plans on updating for Zabbix 5.4.8. Was considering rolling this out to add the 2FA.

Any communication to re-integrate back into mainline Zabbix?

6.0.9 released

6.0.9 version has just been released

Also would it be possible to try an automation for release on new versions in the absence of conflict (maybe with Github Actions) or that in the future the feature could be merged in the Zabbix project?

The 2FA is really a must-have especially when you expose Zabbix to the internet

file bg-patch-6.0.19.zip seems be corrupted

Hi ,
I get this error on execution of script

[root@mtnir-zabbix2 1690281536]# wget https://github.com/BGmot/zabbix/blob/release/6.0-bg/bg-patch-6.0.19.zip
--2023-07-25 14:16:18-- https://github.com/BGmot/zabbix/blob/release/6.0-bg/bg-patch-6.0.19.zip
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5870 (5.7K) [text/plain]
Saving to: ‘bg-patch-6.0.19.zip’

bg-patch-6.0.19.zip 100%[======================================================================================>] 5.73K --.-KB/s in 0s

2023-07-25 14:16:19 (30.7 MB/s) - ‘bg-patch-6.0.19.zip’ saved [5870/5870]

[root@mtnir-zabbix2 1690281536]# unzip bg-patch-6.0.19.zip
Archive: bg-patch-6.0.19.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.

Regards

Create new super-admin role

Hello.
In version 6.2.1 if i want create new super admin role with default parameters i get error

    Undefined index: ui_administration_twofa [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerUserroleCreate->doAction() → CControllerUserroleEditGeneral->getRulesInput() → CControllerUserroleEditGeneral->getUiSectionRules() → array_map() → CControllerUserroleEditGeneral->{closure}() → CController->getInput() in include/classes/mvc/CController.php:352]
    Undefined index: ui_administration_ldap_groups [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerUserroleCreate->doAction() → CControllerUserroleEditGeneral->getRulesInput() → CControllerUserroleEditGeneral->getUiSectionRules() → array_map() → CControllerUserroleEditGeneral->{closure}() → CController->getInput() in include/classes/mvc/CController.php:352]
Invalid parameter "/1/rules/ui/25/status": an integer is expected.

Best regards

Zabbix 6.4.8

Hello,

Can you please upgrade 2FA script version from 6.4.7 to 6.4.8.

Thank you

don't work with idm or freeipa

Hey,
i have a problem with auth when i'm using freeipa ldap auth.

Freeipa uses binddn for users like this:

cn=users,cn=accounts,dc=idm,dc=local

but when analyzing the code, I found the following: in the file CUser.php string number 2240

if (preg_match('/CN=(.+?),OU=/i', $adgroup, $matches)) {

if I change OU to CN then authorization starts working and users are created using groups.

best regards

CConfigGeneralHelper not found on 6.4.13, 6.0.28

I install 2FA for zabbix 6.4.13, but i have a issue. Can you help me fix it?

[Fri Apr 12 08:39:31.584304 2024] [php7:error] [pid 19084] [client 192.168.226.1:53207] PHP Fatal error: Uncaught Error: Class 'CConfigGeneralHelper' not found in /usr/share/zabbix/include/classes/helpers/CTwofaHelper.php:6\nStack trace:\n#0 /usr/share/zabbix/include/classes/core/CAutoloader.php(77): require()\n#1 [internal function]: CAutoloader->loadClass()\n#2 /usr/share/zabbix/app/controllers/CControllerTwofaEdit.php(52): spl_autoload_call()\n#3 /usr/share/zabbix/include/classes/mvc/CController.php(480): CControllerTwofaEdit->doAction()\n#4 /usr/share/zabbix/include/classes/core/ZBase.php(638): CController->run()\n#5 /usr/share/zabbix/include/classes/core/ZBase.php(233): ZBase->processRequest()\n#6 /usr/share/zabbix/include/config.inc.php(25): ZBase->run()\n#7 /usr/share/zabbix/zabbix.php(22): require_once('/usr/share/zabb...')\n#8 {main}\n thrown in /usr/share/zabbix/include/classes/helpers/CTwofaHelper.php on line 6, referer: http://192.168.226.128/zabbix/zabbix.php?action=authentication.edit

Zabbix 6.2

How to install in zabbix 6.2?

Not found bg-path-6.2.0.zip

Group information

Hi, I don't understand, where in LDAP is group information.
My example:

cn=USER,ou=people,dc=company,dc=com
cn=GROUP,ou=groups,dc=company,dc=com and in member field is value cn=USER,ou=people,dc=company,dc=com

6.0.4 released

title says it all, how do you go about syncronizing rew releases. It looks like you both have commits at this time?

Zabbix 6.0.30 LTS: Error 500

I have gotten error 500 when selecting the 2FA option in the zabbix frontend, and the same is true for the LDAP option.

I'm using Zabbix 6.0.30 LTS and the database is mysql Ver 15.1 Distrib 10.6.16-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapp.

How to add a new device if the existing one is lost?

I have implemented the code and it is working as expected. However, I am stuck if I ever lost my phone.

I can optionally disable the 2fa and log in to the account. but, once I enable it again it will not ask to re-register the code.

Zabbix 6.0.5 No image for QR Code

Good morning, I fresh installed my zabbix in 6.0.5 and installed the Bgmot 2FA Google Authenticator and I got an issue with the plugin for the moment when the page should generate the image of the qr code I don't have the image and this error pop up in the logs :

[error] 95370#95370: *2 FastCGI sent in stderr: "PHP message: PHP Notice:  Trying to access array offset on value of type null in /usr/share/zabbix/include/classes/core/CCookieSession.php on line 194" while reading response header from upstream, client: 77.148.135.21, server: supervision.thimoty.com, request: "POST /setup.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/zabbix.sock:", host: "supervision.thimoty.com", referrer: "https://supervision.thimoty.com/setup.php"
2022/06/07 21:34:32 [error] 96103#96103: *48 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: ggl_secret in /usr/share/zabbix/include/classes/api/services/CUser.php on line 405PHP message: PHP Notice:  Undefined index: ggl_enrolled in /usr/share/zabbix/include/classes/api/services/CUser.php on line 412" while reading response header from upstream, client: 77.148.135.21, server: supervision.thimoty.com, request: "GET /ggl.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/zabbix.sock:", host: "supervision.thimoty.com", referrer: "https://supervision.thimoty.com/index.php"

I got another server with different version who work quite good :) So I am here to ask help to resolve this issue. Have a nice day guys !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.