grafana / grafana-zabbix

Zabbix plugin for Grafana dashboard
http://play.grafana-zabbix.org
Apache License 2.0
2.08k stars 458 forks source link

[Bug report] problem with ITEM.VALUE and ITEM.LASTVALUE #396

Closed w-HA closed 6 years ago

w-HA commented 7 years ago

Alexander ,

I think there is a problem with display ITEM.VALUE in grafana-zabbix

Side zabbix i have itemlastvaluezabbix

and side grafana-zabbix itemlastvaluegrafana

In my trigger name in red equal to macro {ITEM.LASTVALUE} and in blue equal to { ITEM.VALUE}

This is my exact trigger name SNMPTRAP: bouygues - ERROR valista multiple - {{ITEM.LASTVALUE}.regsub("^(.{19})", [Last: \1])} [First: {ITEM.VALUE}]

For information , i use regsub function to keep only the 19 first characters about {ITEM.LASTVALUE}

Thanks for your help

zabbix-server 3.2.5 grafana version 3.1.1 grafana-zabbix app 3.3.0

Benoit

alexanderzobnin commented 7 years ago

Can you trace api request for this case? Because for triggers I just use api flags for expanding macros.

w-HA commented 7 years ago

alexander,

I ask to zabbix more information about {ITEM.VALUE} and {ITEM.LASTVALUE} Their response The same value in you case - it's not a problem, it's expected. Because when the alert was generated - the value caused it and it was latest value came to trigger before alert generation. For traps I can recommend to use only {ITEM.VALUE} macro because {ITEM.LASTVALUE} may mislead in some cases.

_thumb_50570

In Attachment you can see in trigger {ITEM.VALUE} = {ITEM.LASTVALUE} so i suppose zabbix plugin trigger information so there isn't problem side zabbix plugin

Howerer , an interesting information is in event information . (please see in attachment file )

So is it possible to have this information in plugin zabbix ( new column events )

Thanks Benoit

alexanderzobnin commented 7 years ago

Unfortunately, an image was compressed. Can you attach high-res picture?

w-HA commented 7 years ago

Alexander,

Please find new image

Benoit

De : Alexander Zobnin [mailto:notifications@github.com] Envoyé : vendredi 26 mai 2017 09:12 À : alexanderzobnin/grafana-zabbix Cc : DESFEUX Benoit DMGP/WHA; Author Objet : Re: [alexanderzobnin/grafana-zabbix] [Bug report] problem with ITEM.VALUE and ITEM.LASTVALUE (#396)

Unfortunately, an image was compressed. Can you attach high-res picture?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/alexanderzobnin/grafana-zabbix/issues/396#issuecomment-304210079, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AR3lTRJxCyk0IMMTDNBDeNIgZYSFIjdxks5r9ntdgaJpZM4Ne3Sx.


Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you.