加入VIP
  • 专属下载特权
  • 现金文档折扣购买
  • VIP免费专区
  • 千万文档免费下载

上传资料

关闭

关闭

关闭

封号提示

内容

首页 Learning Nagios 3.0 (Packt 2008)

Learning Nagios 3.0 (Packt 2008).pdf

Learning Nagios 3.0 (Packt 2008)

some
2011-12-30 0人阅读 举报 0 0 暂无简介

简介:本文档为《Learning Nagios 3.0 (Packt 2008)pdf》,可适用于IT/计算机领域

LearningNagiosAdetailedtutorialtosettingup,configuring,andmanagingthiseasyandeffectivesystemmonitoringsoftwareWojciechKocjanBIRMINGHAMMUMBAIThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,LearningNagiosCopyright©PacktPublishingAllrightsreservedNopartofthisbookmaybereproduced,storedinaretrievalsystem,ortransmittedinanyformorbyanymeans,withoutthepriorwrittenpermissionofthepublisher,exceptinthecaseofbriefquotationsembeddedincriticalarticlesorreviewsEveryefforthasbeenmadeinthepreparationofthisbooktoensuretheaccuracyoftheinformationpresentedHowever,theinformationcontainedinthisbookissoldwithoutwarranty,eitherexpressorimpliedTheauthor,PacktPublishing,anditsdealersordistributorswillnotbeheldliableforanydamagescausedorallegedtobecauseddirectlyorindirectlybythisbookPacktPublishinghasendeavoredtoprovidetrademarkinformationaboutallthecompaniesandproductsmentionedinthisbookbytheappropriateuseofcapitalsHowever,PacktPublishingcannotguaranteetheaccuracyofthisinformationFirstpublished:OctoberProductionReference:PublishedbyPacktPublishingLtdLincolnRoadOltonBirmingham,BPA,UKISBNwwwpacktpubcomCoverImagebyVinayakChittar(vinayakchittargmailcom)ThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,CreditsAuthorWojciechKocjanReviewerManishSapariyaAcquisitionEditorAdilAhmedDevelopmentEditorSwapnaVerlekarTechnicalEditorAanchalKumarEditorialTeamLeaderAksharaAwareProjectManagerAbhijeetDeobhaktaProjectCoordinatorRajashreeHamineIndexerMonicaAjmeraProofreaderDirkManuelProductionCoordinatorRajniThoratCoverDesignerRajniThoratThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,AbouttheAuthorWojciechKocjanisanexperiencedsystemadministrator,ITprofessional,andsoftwareengineerHehastenyearsofexperienceintheITindustry,andhisresumeincludesinternationalcorporationssuchasIBMandMotorolaHealsohasseveralyearsofexperienceinavarietyofopensourceprojectsHisexpertiseincludesmanagingLinux,Sun,andIBMsystemsI'dliketothankmywifeJoannaandmysonKacperforallofthehelpandsupportduringthewritingofthisbookIwouldalsoliketothankpeopleatPacktastheyhavegivenmealotofhelpandplentyofpracticaladviceThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,AbouttheReviewerManishSapariyahasnineyearsofexperienceinsoftwaredevelopmentandtestingHehasworkedonvarioustechnologiessuchasCATLCOM,Windows,andLinuxdevicedrivers,andOSplatformssuchasWindows,FreeBSD,andLinuxHestartedhiscareerwithZensarTechnologies,Pune,workingfortheFujitsuLtddivisionWhileworkingforFujitsuLtd,Manishworkedonvarioustestsimulationtoolsforthetestingofhardwaredevices,includinghighendservers,switchesandroutersForthelastfouryears,hehasbeenworkingwithGreatSoftwareLaboratoryPvtLtd,Pune,whereheiscurrentlyresponsiblefortestingproductsdevelopedatGSLabIwouldliketothankmywifeDharmishtha,andmyfamilyforalltheirsupportwhileIhavebeenreviewingthisbookThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,ThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,TableofContentPrefaceChapter:IntroductionIntroductiontoNagiosBenefitsofMonitoringResourcesMainFeaturesSoftandHardStatesWhat'sNewinNagiosSummaryChapter:InstallationandConfigurationInstallationUpgradingfromPreviousVersionsPrerequisitesObtainingNagiosSettingupUsersandGroupsNagiosCompilationRegisteringNagiosasaSystemServiceNagiosConfigurationMainConfigurationFileMacroDefinitionsConfiguringHostsConfiguringServicesConfiguringCommandsConfiguringTimePeriodsConfiguringContactsTemplatesandObjectInheritanceIntroductiontoNotificationsSummaryThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,TableofContentsiiChapter:UsingtheNagiosWebInterfaceSettinguptheWebInterfaceConfiguringtheWebServerAccessingtheWebInterfaceTroubleshootingUsingtheWebInterfaceTacticalOverviewStatusmapManagingHostsStatusHostInformationManagingServicesStatusServiceInformationManagingDowntimesDowntimesStatusSchedulingDowntimesManagingCommentsNagiosInformationProcessInformationPerformanceInformationReportsSummaryChapter:OverviewofNagiosPluginsStandardNetworkPluginsCheckingIfaHostisAliveTestingConnectivityoverTCPandUDPMonitoringEmailServersPOPandIMAPChecksSMTPDaemonTestingMonitoringNetworkServicesFTPServerDHCPTestsVerifyingtheNagiosDaemonTestingWebSitesMonitoringDatabaseSystemsMySQLPostgreSQLOracleOtherDatabasesThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,TableofContentsiiiStorageSpaceVirtualMemoryMonitoringMonitoringIDESCSISMARTCheckingDiskSpaceTestingFreeSpaceforRemoteSharesResourceMonitoringSystemLoadCheckingProcessesMonitoringLoggedinUsersMiscellaneousPluginsAPTUpdatesCheckingUPSStatusCheckingLMSensorsDummyCheckPluginManipulatingOtherPlugins'OutputSummaryChapter:AdvancedConfigurationMaintainableConfigurationsConfigurationFileStructureDefiningDependenciesUsingTemplatesCustomVariablesFlappingSummaryChapter:NotificationsandEventsEffectiveNotificationsEscalationsExternalCommandsEventHandlersModifyingNotificationsAdaptiveMonitoringSummaryChapter:PassiveChecksandNSCAWhatarePassiveChecksConfiguringPassiveChecksPassiveChecksHostsPassiveChecksServicesTroubleshootingPassiveChecksWhatisNSCAObtainingNSCAThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,TableofContentsivCompilingNSCAConfiguringtheNSCAServerSendingresultsoverNSCASecurityConcernsSummaryChapter:MonitoringRemoteHostsMonitoringoverSSHConfiguringSSHUsingthecheckbysshPluginPerformingMultipleChecksTroubleshootingSSHBasedChecksIntroductiontoNRPEObtainingNRPECompilingNRPEConfiguringtheNRPEDaemonInstallingNRPEasaSystemServiceConfiguringNagiosforNRPENRPEandCommandArgumentsOtherApproachesTroubleshootingNRPESummaryChapter:SNMPIntroductiontoSNMPDataObjectsWorkingwithSNMPandMIBGraphicalToolsSettingupanSNMPAgentUsingSNMPfromNagiosReceivingTrapsAdditionalPluginsSummaryChapter:AdvancedMonitoringMonitoringWindowsHostsNSClientPerformingTestsviacheckntPerformingCheckswithNRPEProtocolPassiveChecksusingNSCAProtocolDistributedMonitoringObsessiveNotificationsConfiguringNagiosInstancesThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,TableofContentsvFreshnessCheckingSummaryChapter:Chapter:ExtendingNagiosIntroductionActiveChecksWritingPluginstheRightWayCheckingWebsitesMonitoringVMwareYourOwnNotificationsManagingNagiosUsingPassiveChecksSummaryIndexThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,ThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,PrefaceThisbookisapracticalguidetosettinguptheNagiosopensourcenetworkmonitoringtoolNagiosisasystemthatwatchestoseewhetherhostsandservicesareworkingproperly,andnotifiesuserswhenproblemsoccurThisbookcoversinstallingandconfiguringNagiosonvariousoperatingsystems,butfocusesprimarilyontheUbuntuLinuxoperatingsystemThisbooktakesthereaderthroughthestepsfromcompilingNagiosfromthesource,throughinstallingandconfiguringituptoadvancedfeaturessuchassettingupredundantmonitoringItalsomentionshowtomonitorvariousservicessuchasemail,WWW,databases,andfilesharingThisbookdescribeswhatSNMPisandhowitcanbeusedtomonitorvariousdevicesItalsoprovidesdetailsonmonitoringMicrosoftWindowscomputersThisbookcontainstroubleshootingsectionsthataidthereaderincaseanyproblemsarisewhensettingupNagiosfunctionalityNopreviousexperiencewithnetworkmonitoringisrequired,althoughabasicunderstandingofUNIXsystemsisassumedThisbookprovidesexamplesforextendingNagiosinseverallanguagesincludingPerl,Python,Tcl,andJavasothatreadersfamiliarwithatleastoneofthesetechnologiescanbenefitfromextendingNagiosWhenyoufinishthisbook,you’llbeabletosetupNagiostomonitoryournetwork,andhaveagoodunderstandingofwhatcanbemonitoredandinwhichwaysWhatThisBookCoversChaptertalksabouttheNagiosapplicationandsystemmonitoringingeneralItshowsthebenefitsofusingsystemmonitoringsoftware,andtheadvantagesofNagiosinparticularItalsointroducesthebasicconceptsofNagiosThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,PrefaceChaptercoversinstallingNagiosbothwhencompilingfromsourcecodeandwhenusingprebuiltpackagesDetailsofhowtoconfigureusers,hosts,andservicesarealsogiven,aswellasinformationonhowNagiossendsnotificationstousersChaptertalksabouthowtosetuptheNagiosWebinterface,andwhatthisofferstotheuserItdescribesbasicviewsforhostsandservices,anddetailedinformationoneachindividualitemItalsointroducesadditionalfeaturessuchasscheduleddowntimes,detailedinformation,andreportsInChapter,wegothroughNagiospluginsthatallowtheperformingofchecksofvariousservicesItshowshowyoucancheckforstandardservicessuchasemail,Web,file,anddatabaseserversItalsodescribeshowtomonitorresourcessuchasCPUusage,storage,andmemoryusageChapterfocusesonmanaginglargeconfigurationsandusingtemplatesWeseehowdependenciesbetweenhostsandservicescanbedefined,whatarecustomvariables,andwhatadaptivemonitoringisWealsolookatflappingservicesthatstartandstoprandomlyandhowNagiosdetectsthisChapterdescribesthenotificationsysteminmoredetailsItfocusesoneffectivewaysofcommunicatingproblemstousersandhowtosetupproblemescalationsitalsoshowshoweventsworkinNagiosandhowtheycanbeusedtoperformtheautomaticrecoveryofservicesChapterdescribespassivechecksindetailWegivepracticalexamplesofwhenandhowtheycanbeusedItalsoshowshowtouseNSCA(NagiosServiceCheckAcceptor)forsendingnotificationsChaptercovershowNagioscheckscanberunonremotemachinesItwalksthroughthedetailsofdeployingchecksremotelyoverSSHusingpublickeyauthenticationItalsoshowshowNRPE(NagiosRemotePluginExecutor)canbeusedfordeployingpluginsremotelyInChapter,welearnaboutSNMP(SimpleNetworkManagementProtocol)andhowitcanbeusedfromNagiosWestartwithanoverviewofSNMPanditsversionsthenwegothroughreadingSNMPvaluesfromSNMPawaredevicesandcoverhowthiscanthenbeusedforperformingchecksfromNagiosThefirstpartofChapterlooksatdistributedmonitoringIttalksabouthowNagioscanbesetuponmultiplehostsandhowthatinformationcouldbegatheredonacentralserverThesecondpartofthechaptercovershowtomonitorcomputersthatarerunningtheMicrosoftWindowsoperatingsystemChaptershowsyouhowtoextendNagiosWetalkabouthowyoucanwriteyourowncheckcommands,addyourownwaysofnotifyingusers,andusepassivechecksandNSCAtointegrateyoursolutionswithNagiosThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,PrefaceWhatYouNeedforThisBookNopreviousexperiencewithnetworkmonitoringisrequired,althoughabasicunderstandingofUNIXsystemsisassumedThisbookalsoprovidesexamplesforextendingNagiosinseverallanguagesincludingPerl,Python,Tcl,andJava,sothatreadersfamiliarwithatleastoneofthesetechnologiescanbenefitfromextendingNagiosWhoisThisBookForThetargetreadersforthisbookareSystemAdministratorsinterestedinusingNagiosThisbookwillteachNagiosbeginnersthebasicsofinstallationandconfigurationofversionitwillshowprofessionalswhohavealreadyworkedonearlierversionsofNagiosthenewfeaturesofNagios,suchasinheritanceandnewinternalfunctionslikebettercheckschedulingConventionsInthisbook,youwillfindanumberofstylesoftextthatdistinguishbetweendifferentkindsofinformationHerearesomeexamplesofthesestyles,andanexplanationoftheirmeaningCodewordsintextareshownasfollows:"Thedevelopmentpackagesalwayshavethedevsuffixintheirpackagenameinthiscase,itwouldbethelibssldevpackage"Ablockofcodeissetasfollows:definehost{hostnamesomemachineaddresscheckcommandcheckhostalive}Whenwewishtodrawyourattentiontoaparticularpartofacodeblock,therelevantlinesoritemsareshowninbold:definehost{hostnamesomemachineaddressMAC:::::checkcommandcheckhostbymac}ThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,PrefaceAnycommandlineinputoroutputisshownasfollows:optnagiospluginscheckpingHw,c,pNewtermsandimportantwordsareintroducedinaboldtypefontWordsthatyouseeonthescreen,inmenusordialogboxesforexample,appearinourtextlikethis:"ItcanbeaccessedbyclickingontheTacticalOverviewlinkintheleftsidemenu"WarningsorimportantnotesappearinaboxlikethisTipsandtricksappearlikethisReaderFeedbackFeedbackfromourreadersisalwayswelcomeLetusknowwhatyouthinkaboutthisbookwhatyoulikedormayhavedislikedReaderfeedbackisimportantforustodeveloptitlesthatyoureallygetthemostoutofTosendusgeneralfeedback,simplysendanemailtofeedbackpacktpubcom,mentioningthebooktitleinthesubjectofyourmessageIfthereisabookthatyouneedandwouldliketoseeuspublish,pleasesendusanoteintheSUGGESTATITLEformonwwwpacktpubcomoremailsuggestpacktpubcomIfthereisatopicthatyouhaveexpertiseinandyouareinterestedineitherwritingorcontributingtoabookonthistopic,seeourauthorguideonwwwpacktpubcomauthorsCustomerSupportNowthatyouaretheproudownerofaPacktbook,wehaveanumberofthingstohelpyoutogetthemostfromyourpurchaseThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,PrefaceDownloadingtheExampleCodefortheBookVisithttp:wwwpacktpubcomfilescodeCodeziptodirectlydownloadtheexamplecodeThedownloadablefilescontaininstructionsonhowtousethemErrataAlthoughwehavetakeneverycaretoensuretheaccuracyofourcontents,mistakesdohappenIfyoufindamistakeinoneofourbooksmaybeamistakeintextorcodewewouldbegratefulifyouwouldreportthistousBydoingsoyoucansaveotherreadersfromfrustration,andhelptoimprovesubsequentversionsofthisbookIfyoufindanyerrata,reportthembyvisitinghttp:wwwpacktpubcomsupport,selectingyourbook,clickingontheletusknowlink,andenteringthedetailsofyourerrataOnceyourerrataareverified,yoursubmissionwillbeacceptedandtheerrataaddedtothelistofexistingerrataAnyexistingerratacanbeviewedbyselectingyourtitlefromhttp:wwwpacktpubcomsupportPiracyPiracyofcopyrightmaterialontheInternetisanongoingproblemAtPackt,wetaketheprotectionofourcopyrightandlicensesveryseriouslyIfyoucomeacrossanyillegalcopiesofourworksinanyformontheInternet,pleaseprovidethelocationaddressorwebsitenameimmediatelysowecanpursuearemedyPleasecontactusatcopyrightpacktpubcomwithalinktothesuspectedpiratedmaterialWeappreciateyourhelpinprotectingourauthors,andourabilitytobringyouvaluablecontentQuestionsYoucancontactusatquestionspacktpubcomifyouarehavingaproblemwithsomeaspectofthebook,andwewilldoourbesttoaddressitThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,ThismaterialiscopyrightandislicensedforthesoleusebyMuhammadAzharonthMay,NorthBridgeRoad,#,OdeonTowers,Singapore,Singapore,Singapore,IntroductionImagineyou'reworkingasanadministratorofalargeITinfrastructureYouhavejuststartedreceivingemailsthatawebapplicationhasstoppedworkingWhenyoutrytoacce

用户评价(0)

关闭

新课改视野下建构高中语文教学实验成果报告(32KB)

抱歉,积分不足下载失败,请稍后再试!

提示

试读已结束,如需要继续阅读或者下载,敬请购买!

文档小程序码

使用微信“扫一扫”扫码寻找文档

1

打开微信

2

扫描小程序码

3

发布寻找信息

4

等待寻找结果

我知道了
评分:

/49

Learning Nagios 3.0 (Packt 2008)

仅供在线阅读

VIP

在线
客服

免费
邮箱

爱问共享资料服务号

扫描关注领取更多福利