Introduction to Ansible

Posted by 4Aiur on 2014/01/31 in SysAdmin |

Introduction to Ansible Installation I don’t want input password every time when I run ansible, so prepare ssh key authentication agent for auto login. # Generate ssh public private key pair ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa ssh-agent | head -2 > ~/.ssh/.agent.env source ~/.ssh/.agent.env ssh-add ~/.ssh/id_rsa Install Ansible on a isolation environment. mkdir […]

Tags:

Getting Started with Vagrant

Posted by 4Aiur on 2014/01/12 in SysAdmin |

Getting Started with Vagrant Installation Install VirtualBox or VMware first, and download the latest from Vagrant download page. Launch a instance cd ~/.vagrant.d/tmp/ wget http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130731.box vagrant box add CentOS-6.4-x86_64 CentOS-6.4-x86_64-v20130731.box mkdir -p ~/.vagrant.d/init/myvm cd ~/.vagrant.d/init/myvm vagrant init CentOS-6.4-x86_64 vagrant up vagrant ssh Provisioning # install rvm \curl -sSL https://get.rvm.io | bash -s stable source “$HOME/.rvm/scripts/rvm […]

Tags: ,

Installing Logster on CentOS

Posted by 4Aiur on 2012/01/10 in SysAdmin |

Installing Logster on CentOS Install EPEL repository

Setting locale

Install Dependence

logcheck dependencies: liblockfile lockfile-progs perl-IPC-Signal perl-Proc-WaitStat perl-mime-construct Install logster

dry run

Add crontab

Tags:

Installing and Configuring Graphite on CentOS

Posted by 4Aiur on 2012/01/10 in SysAdmin |

Installing and Configuring Graphite on CentOS Install EPEL repository

Alternatively:

Install Dependences

Install Python package management software

Install Graphite carbon a Twisted daemon that listens for time-series data whisper a simple database library for storing time-series data (similar in design to RRD) graphite-web a Django webapp that renders graphs on-demand using […]

Tags:

Zenoss Core setup guide

Posted by 4Aiur on 2011/12/16 in SysAdmin |

Zenoss Core setup guide Zenoss Core is a powerful monitoring system, and it is a OpenSource software. Install Zenoss Core Install ZenPacks Setup snmp and snmpd config Add user command Add a single device Add custom Device Class Custom new class properties Setup Processes Custom Zenoss reports Install Zenoss Core Before you install: 1) Run […]

Tags: , ,

CentOS安装与使用ipmitool

Posted by 4Aiur on 2011/06/10 in SysAdmin |

CentOS安装与使用ipmitool ipmitoool可以方便的查看设备硬件状态,建议设备在安装好系统后安装一下ipmitool 安装方法: 安装程序包

添加ipmi module

查看module是否成功添加

查看系统事件日志命令

清理系统事件日志命令

Tags:

Cacti配置流程

Posted by 4Aiur on 2011/03/16 in SysAdmin |

Cacti配置流程 Cacti是一个简单直观的监控工具,后台使用rrdtool记录监控数据,虽然功能较少,但是图形显示效果比较好看、直观、配置也比较方便,当需要有复杂的监控需求时,可以使用zabbix或者nagios来做。 这里主要讲的是Cacti两方面的配置,一个是添加设备,另外一个是配置权限 添加监控设备 首先需要在被监控的设备上安装与配置snmp agent,Linux平台请参考Linux安装与配置Snmpd,OpenSolaris参考OpenSolaris net-snmp install script,windows安装配置snmp agent方法 检查是否存在SNMP Service,需要将此服务启动。我的电脑-管理-服务-SNMP Ssrvice. 单击属性-安全,添加发送身份验证陷阱。添加在cacti中的SNMP Community,在下面添加监控端的IP地址 如果没有此服务,通过控制面板-添加组件-管理和监视工具-简单网络管理协议。 添加设备 登陆Cacti后点击面板左侧的devices后点击右侧面板的Add,之后填写Description, Hostname, Host Template(Linux与Solaris使用ucd/net SNMP Host,Windows使用windows2000/xp Host), 其他部分可以使用自己的值来填写”SNMP Community”或者保持不变。配置完成后点击Create增加此设备。 在创建完毕后出现的页面中点下Query Verbose 来测试下snmp数据抓取是否正常。 添加图像 点击页面中的”Create Graphs for this Host” 选中所有复选框后点击”Create”,完成生成图像的设置 设置图像数 点击面板左侧的”Graph Trees” –> “Add”,输入name后”Create” –> “Save” 把设备添加到心的图像树中 在”Devices”中选中刚加入的设备选择 “Place on a Tree” –> “Go” –> “Continue”,到这里设备的配置已经完成,可以点击导航栏的graphs查看新增加设备的各种监控图像,下面是我Cacti监控数据的两个截图 权限配置 增加新用户 […]

Tags: ,

zabbix简易安装手册

Posted by 4Aiur on 2010/10/15 in SysAdmin |

zabbix简易安装手册 1) 安装zabbix依赖包

2) 配置zabbix依赖环境

3) 在mysql中增加zabbix库并配置zabbix库访问权限

4) 下载并安装zabbix

5) 简单配置zabbix

6) 启动zabbix

使用http://IP/zabbix登录zabbix,首次登录时按照网页提示进行操作。 默认登录帐户与密码: admin/zabbix

Tags:

在不浪费磁盘空间的情况下测试网络

Posted by 4Aiur on 2010/06/09 in SysAdmin |

在不浪费磁盘空间的情况下测试网络

在数据传输过程中可以使用iptraf进行观察

unix时间戳转换

Posted by 4Aiur on 2010/05/14 in SysAdmin |

unix时间戳转换, Convert unix timestamp

Tags:

Copyright © 2010-2018 4Aiur All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.

.