Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zabbix error - Undefined 500 Internal Server Error #19

Open
pablosouza10 opened this issue Sep 21, 2016 · 8 comments
Open

Zabbix error - Undefined 500 Internal Server Error #19

pablosouza10 opened this issue Sep 21, 2016 · 8 comments
Assignees

Comments

@pablosouza10
Copy link

I using Zabbix 3.0, in previous release work fine, but the last version show error 500.

Any help?
errorr

@nuxsmin nuxsmin self-assigned this Sep 21, 2016
@nuxsmin
Copy link
Owner

nuxsmin commented Sep 21, 2016

Is there any error at the webserver event log?

@pablosouza10
Copy link
Author

Hi nuxsmin,

the error log apache:

[Thu Sep 22 09:49:33 2016] [error] [client 192.168.XX.21] PHP Fatal error: Call to undefined function Exts\Zabbix\V225\posix_getuid() in /var/www/html/sysMonDash/inc/Exts/Zabbix/V225/ZabbixApiAbstract.class.php on line 472, referer: http://10.XX.XX.51/sysMonDash/

This 472 line is :

if($tokenCacheDir && array_key_exists('user', $params) && is_dir($tokenCacheDir))
$tokenCacheFile = $tokenCacheDir.'/.zabbixapi-token-'.md5($params['user'].'|'.posix_getuid());

PS: I using in the same server sysMonDash old version in production.

same tip?

@nuxsmin
Copy link
Owner

nuxsmin commented Sep 22, 2016

Are you running SMD on windows?. It seems that posix_getuid function is missing.

@nuxsmin
Copy link
Owner

nuxsmin commented Sep 22, 2016

I can code some hack to get it working.

@pablosouza10
Copy link
Author

No, I'm using on Centos.

I guess the problem is the .zabbixapi-token-e3afed0047b08059d0fada10f400c1e5 int the tmp dir was create from old version and conflict with new version.

@pablosouza10
Copy link
Author

Hi,

"Disable caching of auth tokens

If you want to disable the caching, set $tokenCacheDir to an empty value ''.

Work for me.

@nuxsmin
Copy link
Owner

nuxsmin commented Sep 22, 2016

Right, but I wouldn't disable auth caching forever, because it could produce a slightly server overhead.

Let me find out a solution for this issue.

@pablosouza10
Copy link
Author

Ok. great

Thanks, waiting for solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants