Comments (24)
from zabbix-pdf-report.
from zabbix-pdf-report.
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.
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.
Didn't mean to close it. Sorry
from zabbix-pdf-report.
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.
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
from zabbix-pdf-report.
The API was changed in version 5.4,
user
was changed tousername
.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.
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.
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.
I suggest create new branch to work on zabbix 6.4 :D
from zabbix-pdf-report.
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.
Is there any progress? @martinm76
from zabbix-pdf-report.
Thanks in advance for your help, I hope the problem can be solved :) @martinm76
from zabbix-pdf-report.
Hello @martinm76 do you have any news about the case?
from zabbix-pdf-report.
from zabbix-pdf-report.
from zabbix-pdf-report.
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.
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.
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.
from zabbix-pdf-report.
from zabbix-pdf-report.
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.
from zabbix-pdf-report.
Related Issues (20)
- clarification about renaming HOT 3
- API call to http://andrewfarley.com/zabbix_php_api
- PHP Warning - Unable to establish API call HOT 2
- PDF reporter is listing only some of the host groups. HOT 9
- Empty report HOT 15
- Hide hosts with no graphs HOT 2
- generated on doc or docx HOT 3
- Report without graps HOT 4
- Empty line HOT 1
- Error in php and curl exits in zabbix-pdf-report index HOT 2
- project working on 5.2? HOT 6
- how to install plugin on zabbix 4+ and nginx? HOT 2
- Zabbix-pdf-report/inc/ZabbixAPI.class.php on line 324 HOT 3
- Does zabbix-pdf-report work zabbix 6 ? HOT 1
- Hosts Groups is empty HOT 2
- unable to create pdf report on zabbix 6.2 HOT 3
- Hello, after consulting the generation of pdf, there are blank pages at the end, is there a solution? HOT 1
- Chinese garbled code HOT 2
- Empty groups list HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zabbix-pdf-report.