behroozam / zabbix-dynamic-pdf-report

zabbix pdf report for zabbix 3.2
GNU General Public License v3.0
2 stars 7 forks source link

Unable to login. Login error on Centos 7.4 and Zabbix 3.4 #2

Open joshuagordondba opened 6 years ago

joshuagordondba commented 6 years ago

Unable to logout: Array ( [code] => -32602 [message] => Invalid params. [data] => Invalid parameter "/": unexpected parameter "user". ) I get this error after trying to setup the report generator. I had SELINUX issues but they have all been resolved.

joshuagordondba commented 6 years ago

I fixed this myself. Under
private function logout() { Change this line $data = $this->callAPI('user.logout', array( 'user' => $this->username, 'auth' => self::$instance->auth_hash )); to $data = $this->__callAPI('user.logout', self::$instance->auth_hash); I found this information that lead me to this solution. https://www.zabbix.com/forum/zabbix-help/22100-zabbix-api-php-logout?t=21870