View Full Version : Normalized Graphs
Hello community,
from searching the old posts, I learned that there is no way to have normalized graphs like memory[free]/memory[total]. Did anyone get a way around this?
Regards, Tys
Nate Bell
12-10-2005, 15:59
This is a kind of clunky solution, but you could figure out where Zabbix finds the values for memory[free] and memory[total] and write a script that normalizes that data and returns it to Zabbix via a UserParameter. You could then easily graph that data.
Nate
As nate says.. it's a clunky solution. BUT if you don't have time to dig around you can reuse the agent's code and it doesn't have to be TOO complex.
adding this to the agent's config and telling the server to retrieve it should do the trick for your above example:
UserParameter=memory[norm], memtot=$(/path/to/zabbix_get -s127.0.0.1 -k"memory[total]"); memfree=$(/path/to/zabbix_get -s127.0.0.1 -k"memory[free]"); echo "scale=4; ${memfree%.*}/${memtot%.*}" | bc
this is tested and works on a gentoo box running 1beta1 but should run on any unix/linux machine with zabbix_get and bc available.
changing the value of scale as it is passed to bc will adjust the number of signifigant digits in the result.
Thank you for the quick answers, I will go for the client-side solution. Monitoring mostly Windowshosts, I will mostly work with Autoit, already did an Acronis TrueImage Checker with that;)
Regards, Tys