PDA

View Full Version : New Media GUI - may be a bug or problem with my server!


sarathyme
30-05-2009, 06:47
I am using zabbix 1.6.3,
When i want to edit the severity options i have given for a user, i am seeing the options i have not selected before.

Steps i did:
(from Adminstration - > User -> New Media )
I define Use if severity as Not classified, (attachment 1)

It is getting properly defined in User – GUI (attachment 2)

But when I click Edit again, I am seeing the option which I did not choose at all. (attachment 3)

I looked at the code, popup_media.php, this might be an issue with the way PHP computes exponents and logarithms. (or $ operation on float)

It does not harming me, but makes little confusion.

I am not an PHP expert (yet!).
I tried replacing the exp(log(2) *$i) with pow(2,$i) it works.

Thanks
Vijay

richlv
01-06-2009, 14:14
this seems to be already fixed in 1.6 branch, revision 7336.
https://support.zabbix.com/browse/ZBX-889

you can simply checkout popup_media.php and replace the one you have.