Pro Python System Administration

5星(超过95%的资源)
所需积分/C币:10 2012-05-29 22:37:23 6.82MB PDF
12
收藏 收藏
举报

Pro Python System Administration ,系统管理脚本技术
Pro Python System Administration Rytis sileika apress Pro Python System administration Copyright o 2010 by Rytis Sileika All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, system, without the prior written permission of the copyright owner and the publis her electronic or mechanical, including photocopying, recording, or by any information storage or retrieval ISBN-13(pbk):978-1-4302-2605-5 ISBN-13( electronic):978-1-4302-2606-2 Printed and bound in the united states of america 987654321 Trademarked names, logos, and images may appearin this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are notidentified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights President and Publisher: Paul Manning Lead editors: duncan parkes and michelle lowman Technical Reviewer: Patrick Engebretson Editorial Board: Clay Andres, Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell Jonathan Gennick, Jonathan Hassell, Michelle Lowman, Matthew Moodie, Duncan Parkes Jeffrey Pepper, Frank Pohlmann, Douglas Pundick, Ben Renow-Clarke, Dominic Shakeshaft Matt Wade. Tom Welsh Coordinating Editors: Mary Tobin and Jennifer L blacky Copy Editors: Jim Compton, Heather Lang and Marilyn Smith Compositor: Lynn l heureux Inde Julie grady Artist: April Milne Cover Designer: Anna ishchenko Distributed to the book trade worldwide by springer Science+Business media, llc 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax(201)348-4505 e-mailorders-ny@springer-sbm.com,orvisitwww.springeronline.com Forinformationontranslationspleasee-mailrights@apress.comorvisitwww.apress.com apress and friends of ed books may be purchased in bulk for academic, corporate or promotional use eBook versions and licenses are also available for most titles. for more information reference our SpecialBulksales-ebooklicensingwebpageatwww.apress.com/info/bulksales The information in this book is distributed on an"as is"basis, without warranty. Although every precaution has been taken in the preparation of this work, neither the author(s) nor Apress shall hav any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work. Thesourcecodeforthisbookisavailabletoreadersatwww.apress.com About the author about the technical reviewer Acknowledgements ■■■■■■■ XVI Introduction ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■目目目■■目■目目■■目■■目■■目■■目■■目目■■a Chapter 1: Reading and collecting performance Data Using SNMPmmammanmaaaamn 1 Chapter 2: Managing Devices Using the SOAP APl ■■■■■■■■■■■■■■■■■■■■■■ n41 Chapter 3: Creating a Web Application for IP Address Accountancy n75 Chapter 4: Integrating the IP Address application with dHCPemamammmanmammmn. 107 Chapter 5: Maintaining a list of virtual Hosts in an apache configuration File ss 137 Chapter 6: Gathering and Presenting Statistical Data from Apache Log Files mmmmmm 159 Chapter 7: Performing Complex Searches and Reporting on Application Log Files m 181 Chapter 8: A Web Site Availability check Script for Nagios 211 Chapter 9: Management and monitoring subsystem mmanamnamnmanamanamanmanmanme. 231 Chapter 10: Remote Monitoring Agents n269 Chapter11: Statistics Gathering and reporting…,,,…,,,,,,,,,……297 Chapter 12: Automatic mysQL Database performance tuning mmmnnmmmm 329 Chapter 13: Using Amazon EC2/S3 as a Data Warehouse Solution Index ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 373 About the author……: XVI About the technical reviewer ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■a Acknowledgements XVI Introduction XIX Chapter 1: Reading and collecting Performance Data Using SNMP.mmmememmmn Application Requirements and design I..I Specifying the requirements 111 High-Level Design Specification Introduction to SNMP The System SnMP Variables Node _2-2=-45 The Interfaces snmp variables node Authentication in snmp Querying SNMP from the Command Line Querying SNMP Devices from Python Configuring the application Using the PySNMP Library 13 Implementing the SNMP Read Functional .18 Storing Data with RRDTool Introduction to rrdtool 8 Using rRDTool from a Python Program…… 20 Creating a Roundrobin database 20 Writing and reading Data from the roundrobin database 22 Plotting Graphs with RRDTool 25 Integrating RRDTool with the Monitoring Solution 28 Creating Web Pages with the Jinja2 Templating System 31 Loading Template Files with Jinja2 The Jinja Template Language Generating Web site Pages 35 Summary 39 CONTENTS Chapter 2: Managing Devices Using the SOAP APl n41 What is the soap apl? The Structure of a SOAP Message Requesting services with SOAP Finding Information about Available services with WSDL SOAP Support in Python Converting wsdl schema to Python Helper Module Defining Requirements for our Load Balancer Tool 4564一8 Basic requirements Code structure Configuration Accessing citrix Netscaler Load Balancer with the soAP APl 50 Fixing Issues with citrix Netscaler WSDL 50 Creating a Connection object Logging In: Our First SOAP Call 54 Gathering performance Statistics Data 59 SOAP Methods for Reading Statistical Data and Their return values 59 Reading System Health Data Reading Service Status Data 62 Automating Administration Tasks Device Configuration SOAP Methods 66 Setting a Service State 66 A Word about logging and error handling Using the Python logging Module 68 Handling EXceptions 72 Summary Chapter 3: Creating a Web Application for IP Address Accountancy mmmmmam 75 Designing the application Setting Out the Requirements Making Design Decisions 5一567 Defining the Database Schema Creating the application Workflow …79

...展开详情
试读 417P Pro Python System Administration
立即下载
限时抽奖 低至0.43元/次
身份认证后 购VIP低至7折
一个资源只可评论一次,评论内容不能少于5个字
qiyaorenhuan_7 网上纸质书太贵,太有用了。
2015-05-31
回复
sinat_17670153 不错。很好的参考书
2015-04-07
回复
waynemolly 网上纸质书太贵,太有用了。
2014-05-27
回复
lonelyinheart 根据python 411的介绍 比另外一本 python system administration on Unix/Linux要好
2012-07-31
回复
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
  • 分享王者

关注 私信
上传资源赚钱or赚积分
最新推荐
Pro Python System Administration 10积分/C币 立即下载
1/417
Pro Python System Administration第1页
Pro Python System Administration第2页
Pro Python System Administration第3页
Pro Python System Administration第4页
Pro Python System Administration第5页
Pro Python System Administration第6页
Pro Python System Administration第7页
Pro Python System Administration第8页
Pro Python System Administration第9页
Pro Python System Administration第10页
Pro Python System Administration第11页
Pro Python System Administration第12页
Pro Python System Administration第13页
Pro Python System Administration第14页
Pro Python System Administration第15页
Pro Python System Administration第16页
Pro Python System Administration第17页
Pro Python System Administration第18页
Pro Python System Administration第19页
Pro Python System Administration第20页

试读结束, 可继续阅读

10积分/C币 立即下载