码迷,mamicode.com
首页 >  
搜索关键字:ansible playbook smokeping    ( 2592个结果
python获取服务器信息
python通过ansible获取服务器基本信息:#!/usr/bin/envpython #coding:utf-8 defsever_info(ip) cmd="/usr/bin/ansible{ip}-msetup".format(ip=ip) raw_info=subprocess.check_output(cmd,shell=True) base_info=json.loads(raw_info.split(‘=>‘)[1])[‘ansible_facts‘] cpu..
分类:编程语言   时间:2017-03-15 12:53:43    阅读次数:223
ansible 普通用户执行命令
首先需要了解ssh普通用户登陆的做法:1.普通用户ssh免密登陆举个例子:[A@source~]$sshuser@10.0.0.1表示当前用户A(可以是root或者任何其他用户)以用户user登陆10.0.0.1,如果省略用户,即:ssh10.0.0.1,表示以当前用户A登陆这里记住两个用户:A:当前用户,执行ssh的用户user..
分类:其他好文   时间:2017-03-14 21:44:00    阅读次数:484
Django 检查数据备份结果
目的:利用ansible获取后端服务器数据每天备份结果平台:Django1.views.py中添加函数defbackup_status(request): arg_mysql="du-sh/backup/mysql/db/`date-I`" arg_mongo="du-sh/backup/mongodb/`date-I`" arg_data=‘tail-n3/var/log/rsync_data.`date+"%Y%m%d2301"-d"-1day"`‘..
分类:其他好文   时间:2017-03-14 21:39:31    阅读次数:204
ansible 部署 zabbix客户端 脚本
[root@CASupport1~]#treeansible ansible ├──get-pip.py ├──hosts ├──roles │└──zabbix │├──default │├──files ││├──tcp_status.conf ││├──tcp_status.log ││└──tcp_status.sh │├──handlers │├──meta │├──tasks ││└──mai..
分类:其他好文   时间:2017-03-14 21:27:20    阅读次数:177
centos7离线安装ansible
centos7离线安装ansible:1、通过在线的centos7将rpm包下载好了,上传到指定服务器。下载官方repo,rpm-iUvhhttp://dl.Fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpmyumdownloaderansibleyumdownloaderpython-keyczaryumdownloaderpython-httplib2yumdow..
分类:其他好文   时间:2017-03-14 14:01:56    阅读次数:924
ansbile简单应用
一、简介 Ansible is a radically simple configuration-management, application deployment, task-execution, and multinode orchestration engine. Design Princi ...
分类:其他好文   时间:2017-03-12 11:32:44    阅读次数:529
自动化运维工具Ansible详细部署
一、基础介绍==========================================================================================1、简介ansible是新出现的自动化运维工具,基于Python开发,集合了众多运维工具(puppet、cfengine、chef、func、fabric)的优点,实现了批量系统配置、批量程序部署..
分类:其他好文   时间:2017-03-10 11:12:33    阅读次数:218
一个与zabbix-agentd有关的playbooks任务
--- -hosts:urun remote_user:root tasks: -name:copyzabbixkeyconfigfile copy:src=/etc/zabbix/zabbix_agentd.conf.d/get_disk_io.confdest=/etc/zabbix/zabbix_agentd.conf.d/ -name:copydiskioscriptfile copy:src=/etc/zabbix/get_sda_riops.pydest=/etc/zabbix/ -name:re..
分类:其他好文   时间:2017-03-10 01:02:08    阅读次数:126
Zabbix系统介绍
监控概述 硬件监控 IPMI介绍文档:http://www.ibm.com/developerworks/cn/linux/l-ipmi/ 温度:使用ipmi对硬件温度,进行监控 硬盘:使用MegaCli工具查看Raid磁盘阵列状态 系统监控 CPU: lscpu命令查看cpu详细信息 uptime... ...
分类:其他好文   时间:2017-03-09 19:55:18    阅读次数:279
centos7 安装smokeping
最近需要使用smokeping监控各个办公点到机房出口的网络质量。 网上查了下发现安装步骤都很复杂,以下是本人使用centos 7 安装smokeping的步骤。 首先安装yum源 yum install epel-release -y 然后安装smokeping yum install smoke ...
分类:其他好文   时间:2017-03-09 11:55:43    阅读次数:989
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!