1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_usedMem mezzanine_patched_smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_usedMem |
2 |
--- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_usedMem 2009-02-10 18:04:31.000000000 +0100 |
3 |
+++ mezzanine_patched_smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_usedMem 2009-02-10 18:04:24.000000000 +0100 |
4 |
@@ -1,3 +1,3 @@ |
5 |
# Amount of used memory |
6 |
-UserParameter=vm.memory.size.used,free -b | grep Mem | awk '\{print $3\}' |
7 |
+UserParameter=vm.memory.size.used,echo $(($(free -b | grep Mem | awk '\{print $2\}')-$(free -b | grep 'buffers/cache' | awk '\{print $3\}'))) |
8 |
|