I have created a trigger with the following expression:
({Unix_t:vfs.fs.size[/home,free].last(0)}/{Unix_t:vfs.fs.size[/home,total].last(0)})*100<10
I get the following error in the log:
006178:20060612:173439 Division by zero. Cannot evaluate expression [1211760.000000/0.000000]
006178:20060612:173439 Division by zero. Cannot evaluate expression [1211760.000000/0.000000]
006178:20060612:173439 Evaluation of expression [1211760.000000/0.000000<100] failed [Division by zero. Cannot evaluate expression [1211760.000000/0.000000]]
006178:20060612:173439 Expression [{11916}/{11917}<100] cannot be evaluated [Division by zero. Cannot evaluate expression [1211760.000000/0.000000]]
I can run the individual commands from the command-line:
# zabbix_get -sTheMachine -kvfs.fs.size[/home,total]
32768
# zabbix_get -sTheMachine -kvfs.fs.size[/home,free]
3900
Why is that expression not working correctly? What have i done wrong?
Cheers,
Garry
({Unix_t:vfs.fs.size[/home,free].last(0)}/{Unix_t:vfs.fs.size[/home,total].last(0)})*100<10
I get the following error in the log:
006178:20060612:173439 Division by zero. Cannot evaluate expression [1211760.000000/0.000000]
006178:20060612:173439 Division by zero. Cannot evaluate expression [1211760.000000/0.000000]
006178:20060612:173439 Evaluation of expression [1211760.000000/0.000000<100] failed [Division by zero. Cannot evaluate expression [1211760.000000/0.000000]]
006178:20060612:173439 Expression [{11916}/{11917}<100] cannot be evaluated [Division by zero. Cannot evaluate expression [1211760.000000/0.000000]]
I can run the individual commands from the command-line:
# zabbix_get -sTheMachine -kvfs.fs.size[/home,total]
32768
# zabbix_get -sTheMachine -kvfs.fs.size[/home,free]
3900
Why is that expression not working correctly? What have i done wrong?
Cheers,
Garry
Comment