Skip to content

Instantly share code, notes, and snippets.

View OsamaJBR's full-sized avatar
😎
uid=0(root) gid=0(root) groups=0(root)

Osama OsamaJBR

😎
uid=0(root) gid=0(root) groups=0(root)
  • The Neuron
View GitHub Profile
@OsamaJBR
OsamaJBR / free.sh
Last active December 4, 2017 09:04
Fix sensu-plugin-memory-check in Amazon Linux
#!/bin/bash
# What Is This:
# -------------
# In https://github.com/sensu-plugins/sensu-plugins-memory-checks/tree/master/bin
# you can see that sensu is using ( $ free -m ) to check memory
# code:
# FreeMem=$(free -m | grep buffers/cache | awk '{ print $4 }')
# if [ $? -ne 0 ]; then