随笔分类 - 运维监控
摘要:#!/bin/bash #Author: Eddie.Peng nginx_status_fun(){ #nginx状态函数 NGINX_PORT=$1 #nginx监听端口,函数的第一个参数是脚本的第二个参数,即脚本的第二个参数是端口号 NGINX_COMMAND=$2 #命令,函数的第二个参数是
阅读全文
摘要:#!/bin/bash tcp_conn_status(){ TCP_STAT=$1 ss -ant | awk 'NR>1 {++s[$1]} END {for(k in s) print k,s[k]}' > /tmp/tcp_conn.txt TCP_NUM=$(grep "$TCP_STAT
阅读全文
摘要:\ This is a configuration file for Zabbix server daemon \ To get more information about Zabbix, visit http://www.zabbix.com \ GENERAL PARAMETERS \ Opt
阅读全文