mjaepel / ZbxWallboard

Wallboard with active triggers/problems of Zabbix Monitoring
19 stars 10 forks source link

Unidentified index. Name, surname, in Wallboard.php #4

Closed Lurch440 closed 5 years ago

Lurch440 commented 5 years ago

Hi,

This kind of error. Other it works just fine.

Screenshot_2019-03-27 IT Environment Health

Zabbix version 4.0 The user for Wallboard is in the guest group. Guest are able to view just a few host groups. Screenshot_2019-03-27 Configuration of user groups

When I login (top-right) of the Wallboard, I am able to add acknowledges, and there are no error message. Screenshot_2019-03-27 IT Environment Health(1)

mjaepel commented 5 years ago

Seems that your user have empty name/surname in Zabbix. You could set this as workaround and the warning will disappear. But you are right the wallboard should check this also and display the username instead.

Lurch440 commented 5 years ago

That's the weird thing. Names are given for each user. Screenshot_2019-03-27 Configuration of users

Lurch440 commented 5 years ago

... but even when I am signed into Wallboard as myself, and there are no error message, the comment still doesn't show my name.

mjaepel commented 5 years ago

I tested it with Zabbix 4.0.5 again and I am unable to reproduce it. Name is always displayed if set on user in Zabbix. If not then the PHP warnings occur. So I could fix the PHP warnings but I have no idea why the names are missing in your setup.

Which Zabbix auth backend do you use? intern, ldap or http? Is the user information for acknowlegement in Zabbix frontend correctly shown?

Maybe you could add a debug output to classes/Wallboard.php - Line 269

    var_dump($EVENT);
    foreach ($EVENT[0]["acknowledges"] as $ACKED_MSG) {

You will see the raw data in acknowledge details overlay. There should no sensitive data - please copy the text.

Lurch440 commented 5 years ago

Ahhh... am using LDAP. So, it’s probably looking not looking for givenName or SN.

I’ll make a local user a test with that.

Log to follow when i get to the office.

Cheers,

Alex

[cid:part1.A23C47F4.E631EAC3@metcalfe.fi]+358 (0)404 160 190<tel:+358%20404%20160%20190>

[cid:part2.3968616F.1ACEA6E7@metcalfe.fi]https://telegram.me/aksu358

[cid:part4.A94BCD95.50FA5DBA@metcalfe.fi] alexmetcalfe.blogsite.orghttp://alexmetcalfe.blogsite.org/

[cid:part6.1518F622.CDDF0E56@metcalfe.fi]aksu358callto://aksu358

On 28 Mar 2019, at 23.09, Firewire2002 notifications@github.com<mailto:notifications@github.com> wrote:

I tested it with Zabbix 4.0.5 again and I am unable to reproduce it. Name is always displayed if set on user in Zabbix. If not then the PHP warnings occur. So I could fix the PHP warnings but I have no idea why the names are missing in your setup.

Which Zabbix auth backend do you use? intern, ldap or http? Is the user information for acknowlegement in Zabbix frontend correctly shown?

Maybe you could add a debug output to classes/Wallboard.php - Line 269

    var_dump($EVENT);
    foreach ($EVENT[0]["acknowledges"] as $ACKED_MSG) {

You will see the raw data in acknowledge details overlay. There should no sensitive data - please copy the text.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/zbxwallboard/ZbxWallboard/issues/4#issuecomment-477772050, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK0AUxADSAi9-ArcphoodrWtL4QjMrICks5vbS-XgaJpZM4cNoL5.

mjaepel commented 5 years ago

It's not related to auth backend. It's easier: The user which is used for wallboard is not allowed to read user information. "Zabbix User" and "Zabbix Admin" could only see their own user details but not of other users. Only "Zabbix SuperAdmin" is allowed to read it.

So I could only display what I get from Zabbix API. ;)

mjaepel commented 5 years ago

It's the same in Zabbix frontend:

Inaccessible_user

mjaepel commented 5 years ago

Fixed in a8ddeb6c857dbccc38c3c8db67655e1b61083ec5 and Release v2019-03-29