09 2018 档案

摘要:第一步:先在Telegram 注册个机器人!!! @BotFather在Telegram中添加联系人并按“开始”,然后键入: 第一个红框是个人ID号,第二个红框是组ID号 第二步:https://my.telegram.org 申请API接口 保存APP api_hash 文件 配置脚本 在zabb 阅读全文
posted @ 2018-09-11 15:17 戒爱不戒情 阅读(2237) 评论(0) 推荐(0)
摘要:安装inotify wget http://github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz tar -zxvf inotify-tools-3.14.tar.gz ./configure make && m 阅读全文
posted @ 2018-09-11 12:33 戒爱不戒情 阅读(350) 评论(0) 推荐(0)
摘要:在客户端机器上创建脚本 vim /etc/zabbix/zabbix_agentd.d/check-cert-expire.sh #!/bin/sh host=$1port=$2end_date=`openssl s_client -servername $host -host $host -por 阅读全文
posted @ 2018-09-10 14:34 戒爱不戒情 阅读(686) 评论(0) 推荐(0)
摘要:配置自定义键值 vim /etc/zabbix/zabbix_agentd.d/sanguo_check_ssh.conf 添加自定义键值 UserParameter=sanguo.check.ssh,/bin/who | wc -lUserParameter=dengchu,/bin/last 保 阅读全文
posted @ 2018-09-10 13:49 戒爱不戒情 阅读(1149) 评论(0) 推荐(0)
摘要:zabbix-agent 被动式配置 vim /etc/zabbix/zabbix_agentd.conf server修改成 zabbix-server 服务器IP地址 并打开listenPort 监听端口 保存并重启zabbix-agent 登入zabbix后台 zabbix-agent 主动式 阅读全文
posted @ 2018-09-10 13:31 戒爱不戒情 阅读(242) 评论(0) 推荐(0)
摘要:第一步:安装nginx ############安装Nginx###########yum localinstall http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm 阅读全文
posted @ 2018-09-10 13:16 戒爱不戒情 阅读(689) 评论(1) 推荐(0)