Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ホストは RHEL5 で、何らかのプロセスまたはスクリプトを実行してトリガーしたいアラームは TotalSwapUsedPercent です。迅速で簡単な方法はありますか?
これにより、TotalSwapUsedPercent が得られます。
free -t | grep Swap | awk '{print ($3 / $2) * 100 "%"}'
それを監視システムやcronなど、必要なものに入れることができます。
、