-
11 年前
-
11 年前
nagios 监控网卡带宽脚本
Shell/Python 运维监控
#!/bin/bash #set nagios status STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 usage (){ echo -en "Usage: $0 -d [ eth|bond ]\nFor example:\t$0 -d bond0 -w 100[B|K|M|G] -c 2…
-
11 年前
nagios 监控物理内存使用率脚本
Shell/Python
Linux 空闲内存计算方式 空闲内存=free+buffers+cached #!/bin/bash #nagios exit code STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 help () { local command=`basename $0` echo "NA…
Linux运维笔记|自动化运维攻城狮

