CentOS 7安装Grafana 4

1. 安装Grafana 4 官方文档:http://docs.grafana.org/installation/rpm/ (1). 这里介绍两种安装方式: 官方源直接安装: yum install https://grafanarel.s3.amazonaws.com/builds/grafana-4.1.2-1486989747.x86_64.rpm 或使用安装包: yum install initscripts fontconfig wget https://grafanarel.s3.a…

Zabbix3.0微信接收监控告警

系统环境:Centos 7.3 软件版本:Zabbix3.0 一、企业微信号注册和使用   企业号注册:https://work.weixin.qq.com/ 二、企业号使用教程 添加员工通讯录 登录新建的企业号,通过提前把企业成员信息添加到组织或者部门,需要填写手机号、微信号或邮箱,通过这样方式让别人扫码关注企业公众号,为了后面企业号推送消息给企业成员。 新增账户,填写信息,红框部分是必须填写的 三、创建应用 企业应用 —-> 自定义应用 —-> 创建应用 …

Zabbix监控TCP端口

安装环境:CentOS 7.3 软件版本:zabbix3.0 创建一个shell文件,写入以下内容,保存后将shell的权限设置成755 [root@120 ~]# vim /etc/zabbix/scripts/discovery_port.sh #!/bin/bash port_array=(`netstat -tnlp|egrep -i “$1″|grep -v “127.0.0.1”|awk {‘print $4′}|awk -F’:’ ‘{if ($NF~/^[0-9]*$/) pri…

Zabbix监控MySQL性能

由于MySQL5.7版本以上在命令行中不允许使用明文密码,所以需要将用户名和密码存在文件中: 认证信息文件内容如下: [client] user=zabbix password=”shengyan777.com”   监控MySQL的shell脚本内容如下: #!/bin/bash # ——————————————————————————- # FileName: check_mys…

用Python编写zabbix的API认证接口

#!/usr/bin/env python2.7 #coding=utf-8 import json import urllib2 #url请求地址 url = “http://192.168.0.100/zabbix/api_jsonrpc.php” header = {“Content-Type”: “application/json”} #认证账号以及密码 data = json.dumps( { “jsonrpc”: “2.0”, “method”: “user.login”, “par…