Hi all,
I have a problem to ask.
One Item I used in zabbix is calculated, it ‘s formula is last("To_SAA-CSJCZ1_UDP-RTTSum") / last("To_SAA-CSJCZ1_UDP-NumOfRTT")
But in the log file “zabbix_server.log”
there is a error like
“error: Division by zero. Cannot evaluate expression [0/0]”
How can I avoid this error by adding some judgment, I mean if the last("To_SAA-CSJCZ1_UDP-NumOfRTT") is zero, I just set this formula’s result is “no data”, or if it’s not, then it’s will be calculated. can I ? How can I do that ?
Is there anybody can help me ?
That will be very thankful for you information.
I have a problem to ask.
One Item I used in zabbix is calculated, it ‘s formula is last("To_SAA-CSJCZ1_UDP-RTTSum") / last("To_SAA-CSJCZ1_UDP-NumOfRTT")
But in the log file “zabbix_server.log”
there is a error like
“error: Division by zero. Cannot evaluate expression [0/0]”
How can I avoid this error by adding some judgment, I mean if the last("To_SAA-CSJCZ1_UDP-NumOfRTT") is zero, I just set this formula’s result is “no data”, or if it’s not, then it’s will be calculated. can I ? How can I do that ?
Is there anybody can help me ?
That will be very thankful for you information.
Comment