sensu-plugins / sensu-plugins-memory-checks

This plugin provides native memory instrumentation for monitoring and metrics collection, including: memory usage via `free` and `vmstat`, including metrics. Note that this plugin may have cross-platform issues.
http://sensu-plugins.io
MIT License
15 stars 50 forks source link

Compatibility osx #70

Closed jjdiazgarcia closed 7 years ago

jjdiazgarcia commented 7 years ago

Resolve issue #69

Before ./check-memory-percent.sh ./check-memory-percent-old.sh: line 52: free: command not found ./check-memory-percent-old.sh: line 55: free: command not found ./check-memory-percent-old.sh: line 58: free: command not found awk: division by zero source line number 1 ./check-memory-percent-old.sh: line 63: 100-: syntax error: operand expected (error token is "-") MEM UNKNOWN -

After ./check-memory-percent.sh MEM CRITICAL - system memory usage: 100%

jjdiazgarcia commented 7 years ago

I have just added an entry in the changelog file and updated artifacts before and after change commited file

jjdiazgarcia commented 7 years ago

I have just added Linux in the second condition to be able other people to edit it to add more os

majormoses commented 7 years ago

Thanks for the contribution!