nuxsmin / sysMonDash

Systems Monitor Dashboard, monitoring dashboard for Nagios, Icinga Check_MK and Zabbix
GNU General Public License v3.0
34 stars 13 forks source link

zabbix class problems #28

Open nobless opened 6 years ago

nobless commented 6 years ago

PHP message: PHP Notice: Trying to get property 'clock' of non-object in /public/inc/SMD/Backend/Zabbix.class.php on line 145

*2262 FastCGI sent in stderr: "PHP message: PHP Notice: Trying to get property 'acknowledged' of non-object in/public/inc/SMD/Backend/Zabbix.class.php on line 140

nuxsmin commented 6 years ago

Hello!

Which version of Zabbix are you running?. It seems that something went wrong when retrieving the lastEvent data from Zabbix

nobless commented 6 years ago

There are multiple zabbix versions from 2.2 - 4.0, mainly 3.4.7 versions

nuxsmin commented 6 years ago

Hmm, it might be the reason, since SMD has been tested from 2.0 to 3.0 but not on newer versions

nobless commented 6 years ago

okay, i will try to disable 4.0 zabbix backend and will report how it goes! if there will be a problem any chances on supporting 4.0 version ?

nuxsmin commented 6 years ago

I think it could be accomplished, but let me take look to the new Zabbix API, it seems that some data has changed.

Thanks for the feedback!

nobless commented 6 years ago

ok found it, i get these errors with one of zabbix 3.4.8 backend, but i have another backend with same version but no such errors.

also found it gets one trigger from somewhere which doesn't exist on that zabbix server, and this trigger have bad time sorting: image

UPDATE: found an problem it was an host with bad triggered time, thats why it was parsed in wrong way. and got 'clock' and 'acknowledged' errors.