/usr/lib/python2.6/site-packages/salt/runners/jobs.pyjobsrunner模块用于方便管理正在运行或者处于活动状态的job返回所有正在运行的job的报告defactive():
‘‘‘
Returnareportonallactivelyrunningjobsfromajobidcentric
perspective
CLIExample:
..code-block::bash
salt..
分类:
其他好文 时间:
2015-05-29 12:12:18
阅读次数:
199
Salt从0.11.0版本开始引入ReactorSystem。EventSystemTheeventsystemisalocalZeroMQPUBinterfacewhichfiressaltevents.ThiseventbusisanopensystemusedforsendinginformationnotifyingSaltandothersystemsaboutoperations.ReactorSLSfilesandeventtagsareassociatedinthemaster..
分类:
其他好文 时间:
2015-05-28 18:21:07
阅读次数:
173
/usr/lib/python2.6/site-packages/salt/modules/cmdmod.pycmdmod模块用于执行一些命令行‘‘
Amoduleforshellingout
Keepinmindthatthismoduleisinsecure,inthatitcangivewhomeverhas
accesstothemasterrootexecutionaccesstoallsaltminions.
‘‘‘#Importpythonlibs
importtime
..
分类:
其他好文 时间:
2015-05-28 14:17:59
阅读次数:
278
版本:zabbix2.4.4要求:监控apache错误日志文件,一出现error关键字就报警报警邮件通知到指定人知会。服务器和客户端安装,这里就不说了,重点说下配置,客户端配置:root@WebServer:/server/zabbix_agent/etc#vizabbix_agentd.conf
Server=10.52.35.70
ServerActive=10.52.35..
分类:
其他好文 时间:
2015-05-27 16:02:30
阅读次数:
1982
/usr/lib/python2.6/site-packages/salt/modules/pillar.pydefget(key,default=‘‘,merge=False,delimiter=‘:‘):
‘‘‘
..versionadded::0.14
Attempttoretrievethenamedvaluefrompillar,ifthenamedvalueisnot
availablereturnthepasseddefault.Thedefaultreturnisanemptystring...
分类:
其他好文 时间:
2015-05-27 16:02:05
阅读次数:
171
使用salt-call可以在minion本机执行salt命令/usr/bin/salt-call#!/usr/bin/python
#EASY-INSTALL-ENTRY-SCRIPT:‘salt==2014.7.0‘,‘console_scripts‘,‘salt-call‘
__requires__=‘salt==2014.7.0‘
importsys
frompkg_resourcesimportload_entry_point
if__name__==‘__main__‘:
s..
分类:
其他好文 时间:
2015-05-27 16:00:41
阅读次数:
247
zabbix源码包的安装1.解压zabbix2.2的源码包cd/usrl/local/srctarzxvfzabbix-2.2.6.tar.gz2.安装zabbixcd/usr/local/src/zabbix-2.2.6./configure--prefix=/usr/local/zabbix--enable-agentmakemakeinstallln-s/usr/local/zabbix/sbin/*/usr/local/sbin/ln-s/usr/local/zabbix/..
分类:
其他好文 时间:
2015-05-24 10:14:56
阅读次数:
285
1.测试openssl对各种见算法处理速度opensslspeed[algorithms]algorithms:各种算法eg.rsa,des,md5,sha1等。不加算法表示测试所有算法。2.openssl对数据进行加密opensslenc-ciphername[-infilename][-e][-d][-outfilename][-salt][-a/-base64]
eg.opensslencdes3-salt-a-ininitta..
分类:
其他好文 时间:
2015-05-24 06:40:45
阅读次数:
420
1. 密码安全性使用Werkzeug实现密码hashgenerate_password_hash(password, method, salt_length)将原始密码作为输入,以字符串形式输出密码的hash值,输出的值可保存在用户数据库中。method 和 salt_length的默认值就能满足大...
分类:
其他好文 时间:
2015-05-23 22:42:59
阅读次数:
1199
www.XXX.com/mod=titlebytiddefine('API_SALT_KEY', 'lizuofeng');$mod = $_GET['mod'];//所走的方法$pre_string = 'edit_';$function = $pre_string.$mod;$salt = md...
分类:
其他好文 时间:
2015-05-22 14:52:32
阅读次数:
116