摘要:
1、编写python脚本监控nginx 2、将脚本check_nginx拷贝到/usr/local/nagios/libexec/下,并chmod +x ./check_nginx 如果你要监控nagios安装本机的nginx进程,请参考如下步骤: 3、在/usr/local/nagios/etc/ 阅读全文
posted @ 2016-05-20 11:41
巫谢
阅读(414)
评论(0)
推荐(0)
摘要:
python中 getopt 模块, 该模块是专门用来处理命令行参数的 函数getopt(args, shortopts, longopts = []) 参数args一般是sys.argv[1:] shortopts 短格式 (-) longopts 长格式(--) 命令行中输入: python c 阅读全文
posted @ 2016-05-20 10:17
巫谢
阅读(1090)
评论(0)
推荐(0)

浙公网安备 33010602011771号