Monitor Memory on Windows & Unix via SNMP

Monitor Memory Usage on Windows & Unix hosts using SNMP

checkMemoryviaSNMP <version> <community-string> <remote-host> <warn> <crit> <send-metric-to-graphite-server>(optional)
root@jserver:# 
root@jserver:# time ./checkMemoryviaSNMP -v2 public gearman001.phs.blah.com 30 90 graphite,10.10.10.10,2003,typical

WARNING: Used = [ 3.26154 GB ], Installed = [ 5.71509 GB ], PCT.Used = [ 57.069% ], Available.Memory = [ 2.00291 GB ]. Buffer = [ 137.594 MB ], Cached = [ 1.3849 GB ]. Thresholds: [ W=(30%) / C=(90%) ].  System Information = [ Linux gearman001.phs.blah.com 2.6.32-504.30.3.el6.x86_64 #1 SMP Thu Jul 9 15:20:47 EDT 2015 x86_64 ].

real    0m0.23s
user    0m0.03s
sys     0m0.02s
root@jserver:#
root@jserver:# ./checkMemoryviaSNMP public dgphx002.phx.kinglazy.dev 30 90 graphite,127.0.0.1,2003,typical
(OR)

root@jserver:# ./checkMemoryviaSNMP public dgphx002.phx.kinglazy.dev 30 90 -g U:/var/run/collectd-unixsock,collectd