会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
纪录
博客园
首页
新随笔
联系
管理
订阅
1
2
3
4
5
下一页
2020年10月10日
zabbix api使用
摘要: zabbix api使用例子 #!/usr/bin/python env # -*- coding: utf-8 -*- # Author:cc # date: 2020/9/9 from pyzabbix import ZabbixAPI, ZabbixAPIException from bson
阅读全文
posted @ 2020-10-10 10:57 jcici
阅读(344)
评论(0)
推荐(0)
2020年9月2日
elasticsearch mappings之dynamic的三种状态
摘要: elasticsearch mappings之dynamic的三种状态 **本文档操作,均在es7.3进行 一.动态映射(dynamic:true) 1.创建一个索引 PUT commodity?pretty { "settings": { "number_of_shards": 3, "numbe
阅读全文
posted @ 2020-09-02 11:27 jcici
阅读(1424)
评论(0)
推荐(0)
2020年8月24日
自动添加windows 2012用户,并在jump添加授权
摘要: #! /usr/bin/python env # -*- coding: utf-8 -*- # Author:cc # date: 2020/8/19 import random,string,json,time,os,sys,requests,subprocess def Usage(): ""
阅读全文
posted @ 2020-08-24 09:38 jcici
阅读(546)
评论(0)
推荐(0)
2020年8月6日
python 查询es数据
摘要: #!/usr/bin/python env # -*- coding: utf-8 -*- # Author:cc # date: 2020/1/9 import datetime import time from elasticsearch import Elasticsearch import
阅读全文
posted @ 2020-08-06 10:47 jcici
阅读(2544)
评论(0)
推荐(0)
2020年8月5日
python获取zabbix Triggers top100
摘要: python获取zabbix Triggers top100 1 #!/usr/bin/python env 2 # -*- coding: utf-8 -*- 3 ###################################################################
阅读全文
posted @ 2020-08-05 14:00 jcici
阅读(672)
评论(3)
推荐(0)
2020年6月16日
ssh执行命令
摘要: #!/bin/bash # #Author: panb ##此脚本用来向openresty服务器执行命令 # set -e Usage(){ echo "Usage: $0 host1 host2 ... 'command'" } if [ $# -lt 2 ];then Usage exit 0
阅读全文
posted @ 2020-06-16 14:31 jcici
阅读(248)
评论(0)
推荐(0)
2020年6月11日
自动连接jumpserver
摘要: 自动连接jumperver 一,开启google mfa验证码 1.谷歌mfa验证码 #!/usr/bin/python env # -*- coding: utf-8 -*- # Author:cc # date: 2020/6/10 import hmac, base64, struct, ha
阅读全文
posted @ 2020-06-11 11:01 jcici
阅读(867)
评论(0)
推荐(0)
2019年11月29日
filebeat+nginx 绘图时url不能模糊搜索的问题
摘要: filebeat+nginx 绘图时url不能模糊搜索的问题 1.修改之前nginx 日志配置为 这里$request_time和$upstream_response_time打上引号是因为,如果取不到这个值,这个值就位 - ,logstash会报错,所以就由字符串再转为float类型 log_fo
阅读全文
posted @ 2019-11-29 09:52 jcici
阅读(354)
评论(0)
推荐(0)
2019年11月22日
python3 ldap认证
摘要: python3 ldap认证 #! /usr/bin/python # -*- coding:utf-8 -*- # Author: panb import logging from ldap3 import Server, Connection, ALL logger = logging.getL
阅读全文
posted @ 2019-11-22 17:29 jcici
阅读(1301)
评论(0)
推荐(0)
2019年11月20日
centos7搭建LDAP
摘要: centos7搭建LDAP 一、安装Openldap [root@cc ~]# yum install -y openldap openldap-clients openldap-servers migrationtools 二、配置项 [root@cc ~]# vim /etc/openldap/
阅读全文
posted @ 2019-11-20 11:35 jcici
阅读(1055)
评论(0)
推荐(0)
1
2
3
4
5
下一页
公告