温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

nagios——check_memory.pl脚本测试

发布时间:2020-06-28 16:22:42 来源:网络 阅读:1131 作者:151wqooo 栏目:移动开发

 [root@wqk1 mnt]# ./check_memory.pl -h

 
check_mem.pl v1.0 - Nagios Plugin
 
usage:
 check_mem.pl -<f|u> -w <warnlevel> -c <critlevel>
 
options:
 -f           Check FREE memory
 -u           Check USED memory
 -C           Count OS caches as FREE memory
 -w PERCENT   Percent free/used when to warn
 -c PERCENT   Percent free/used when critical
 
Copyright (C) 2000 Dan Larsson <dl@tyfon.net>
check_mem.pl comes with absolutely NO WARRANTY either implied or explicit
This program is licensed under the terms of the
GNU General Public License (check source code for details)
 
 
=========================
[root@wqk1 mnt]# ./check_memory.pl -u -w 50 -c 90
WARNING - 66.7% (1372716 kB) used!|TOTAL=2059580KB;;;; USED=1372716KB;;;; FREE=686864KB;;;; CACHES=1181796KB;;;;
[root@wqk1 mnt]# ./check_memory.pl -u -w 60 -c 90
WARNING - 66.7% (1372716 kB) used!|TOTAL=2059580KB;;;; USED=1372716KB;;;; FREE=686864KB;;;; CACHES=1181792KB;;;;
[root@wqk1 mnt]# ./check_memory.pl -u -w 70 -c 90
OK - 66.7% (1372716 kB) used.|TOTAL=2059580KB;;;; USED=1372716KB;;;; FREE=686864KB;;;; CACHES=1181792KB;;;;
[root@wqk1 mnt]# ./check_memory.pl -u -w 40 -c 50
CRITICAL - 66.7% (1372840 kB) used!|TOTAL=2059580KB;;;; USED=1372840KB;;;; FREE=686740KB;;;; CACHES=1181796KB;;;;
[root@wqk1 mnt]# ./check_memory.pl -u -w 40 -c 60
CRITICAL - 66.8% (1374772 kB) used!|TOTAL=2059580KB;;;; USED=1374772KB;;;; FREE=684808KB;;;; CACHES=1181804KB;;;;
[root@wqk1 mnt]# ./check_memory.pl -u -w 40 -c 70
WARNING - 66.7% (1372840 kB) used!|TOTAL=2059580KB;;;; USED=1372840KB;;;; FREE=686740KB;;;; CACHES=1181808KB;;;;
 
 
[root@wqk1 mnt]# ./check_memory.pl -f -w 50 -c 40
CRITICAL - 33.3% (686740 kB) free!|TOTAL=2059580KB;;;; USED=1372840KB;;;; FREE=686740KB;;;; CACHES=1181800KB;;;;
[root@wqk1 mnt]# ./check_memory.pl -f -w 50 -c 30
WARNING - 33.3% (686864 kB) free!|TOTAL=2059580KB;;;; USED=1372716KB;;;; FREE=686864KB;;;; CACHES=1181800KB;;;;
[root@wqk1 mnt]# ./check_memory.pl -f -w 50 -c 20
WARNING - 33.3% (686864 kB) free!|TOTAL=2059580KB;;;; USED=1372716KB;;;; FREE=686864KB;;;; CACHES=1181816KB;;;;
[root@wqk1 mnt]# ./check_memory.pl -f -w 30 -c 20
OK - 33.3% (686740 kB) free.|TOTAL=2059580KB;;;; USED=1372840KB;;;; FREE=686740KB;;;; CACHES=1181828KB;;;;
 
 附脚本:
附件:http://down.51cto.com/data/2362604
向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI