Giter VIP home page Giter VIP logo

Comments (24)

martinm76 avatar martinm76 commented on July 22, 2024 2

from zabbix-pdf-report.

martinm76 avatar martinm76 commented on July 22, 2024 1

from zabbix-pdf-report.

victorhugopa avatar victorhugopa commented on July 22, 2024 1

To work in 6.4:
Line 285 from zabbix-pdf-report-master\inc\ZabbixAPI.class.php:

$data = $this->__callAPI('user.login', array( 'password' => $this->password, 'user' => $this->username ));
to:
$data = $this->__callAPI('user.login', array( 'password' => $this->password, 'username' => $this->username ));

from zabbix-pdf-report.

martinm76 avatar martinm76 commented on July 22, 2024

I have not had a chance to try 6.4 yet, but there is a setting in config.ini.php where you determine basically if debugging is always on (seemed to be required in earlier versions). I believe it's something like Zabbiz version and needs to be 5 or above to disable debugging output (that was never shown on screen on the earlier versions). It may not be enough, bit verify that one first 🙂

from zabbix-pdf-report.

martinm76 avatar martinm76 commented on July 22, 2024

Didn't mean to close it. Sorry

from zabbix-pdf-report.

amarodefarias avatar amarodefarias commented on July 22, 2024

Thanks for the quick turnaround. But the question was not about displaying the debug mode (and I'm glad it exists) but the message I sent initially I just changed the user and password and kept it as faithful as possible. Note at the end Invalid parameter "/": unexpected parameter "user".
I think that for this latest version there was some change in the way of login. But it's all still very new. I'm sorry for my English

I have not had a chance to try 6.4 yet, but there is a setting in config.ini.php where you determine basically if debugging is always on (seemed to be required in earlier versions). I believe it's something like Zabbiz version and needs to be 5 or above to disable debugging output (that was never shown on screen on the earlier versions). It may not be enough, bit verify that one first 🙂

from zabbix-pdf-report.

ironbishop avatar ironbishop commented on July 22, 2024

The API was changed in version 5.4, user was changed to username.

See

from zabbix-pdf-report.

amarodefarias avatar amarodefarias commented on July 22, 2024

The API was changed in version 5.4, user was changed to username.

See

* https://www.zabbix.com/documentation/5.4/en/manual/api/changes_5.2_-_5.4

* https://support.zabbix.com/browse/ZBXNEXT-6474

But in versions 5.4, 6.0 and 6.2 it is working normally. There was some change in 6.4

from zabbix-pdf-report.

ironbishop avatar ironbishop commented on July 22, 2024

yep

ZBXNEXT-8085 user.get, user.create, user.update: dropped support for deprecated property alias.
ZBXNEXT-8085 user.create, user.update: dropped support for deprecated parameter user_medias.
ZBXNEXT-8085 user.login: dropped support for deprecated parameter user.

from zabbix-pdf-report.

amarodefarias avatar amarodefarias commented on July 22, 2024

yep

ZBXNEXT-8085 user.get, user.create, user.update: dropped support for deprecated property alias. ZBXNEXT-8085 user.create, user.update: dropped support for deprecated parameter user_medias. ZBXNEXT-8085 user.login: dropped support for deprecated parameter user.

Hum... I believe that the modification in the login has to be carried out considering that then

from zabbix-pdf-report.

coffnix avatar coffnix commented on July 22, 2024

I suggest create new branch to work on zabbix 6.4 :D

from zabbix-pdf-report.

Tenchi1989 avatar Tenchi1989 commented on July 22, 2024

My internal is ubuntu 22.04 with zabbix 6.4, I managed to install but when opening the web environment and starting the session, a blank screen appears with this error: Unable to login: Array ( [code] => -32602 [message] => Invalid params. [data] => Invalid parameter "/": unexpected parameter "user". )

from zabbix-pdf-report.

iny avatar iny commented on July 22, 2024

Is there any progress? @martinm76

from zabbix-pdf-report.

iny avatar iny commented on July 22, 2024

Thanks in advance for your help, I hope the problem can be solved :) @martinm76

from zabbix-pdf-report.

amarodefarias avatar amarodefarias commented on July 22, 2024

Hello @martinm76 do you have any news about the case?

from zabbix-pdf-report.

martinm76 avatar martinm76 commented on July 22, 2024

from zabbix-pdf-report.

martinm76 avatar martinm76 commented on July 22, 2024

from zabbix-pdf-report.

amarodefarias avatar amarodefarias commented on July 22, 2024

To work in 6.4: Line 285 from zabbix-pdf-report-master\inc\ZabbixAPI.class.php:

$data = $this->__callAPI('user.login', array( 'password' => $this->password, 'user' => $this->username )); to: $data = $this->__callAPI('user.login', array( 'password' => $this->password, 'username' => $this->username ));

Thank you very much. Worked perfectly!

from zabbix-pdf-report.

martinm76 avatar martinm76 commented on July 22, 2024

I have committed an update that hopefully detects your version of Zabbix and uses the correct way to login depending on that outcome. I'm not able to test it right now, so I hope I can get some report back here it it's working or some error occurs.

from zabbix-pdf-report.

amarodefarias avatar amarodefarias commented on July 22, 2024

I have committed an update that hopefully detects your version of Zabbix and uses the correct way to login depending on that outcome. I'm not able to test it right now, so I hope I can get some report back here it it's working or some error occurs.

I tested this last change you made in my environment. Follow the error message

Unable to login: Array ( [code] => -32602 [message] => Invalid params. [data] => Invalid parameter "/": unexpected parameter "user". )

The change made by @victorhugopa worked perfectly

from zabbix-pdf-report.

martinm76 avatar martinm76 commented on July 22, 2024

from zabbix-pdf-report.

martinm76 avatar martinm76 commented on July 22, 2024

from zabbix-pdf-report.

amarodefarias avatar amarodefarias commented on July 22, 2024

I didn't get around to push the update yesterday, but have done so now. Hopefully no syntax errors. Can you test again? If debugging is enabled, a few more things should be printed.

Very good. Beautiful work! In my environment it worked perfectly. Congratulations!

from zabbix-pdf-report.

martinm76 avatar martinm76 commented on July 22, 2024

from zabbix-pdf-report.

Related Issues (20)

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.