2020/10/0307:171/113InstallationfromsourcesZabbixDocumentation3.
0-https://www.
zabbix.
com/documentation/3.
0/3InstallationfromsourcesYoucangettheverylatestversionofZabbixbycompilingitfromthesources.
Astep-by-steptutorialforinstallingZabbixfromthesourcesisprovidedhere.
5.
4.
6InstallingZabbixdaemons1DownloadthesourcearchiveGototheZabbixdownloadpageanddownloadthesourcearchive.
Oncedownloaded,extractthesources,byrunning:$tar-zxvfzabbix-3.
0.
0.
tar.
gzEnterthecorrectZabbixversioninthecommand.
Itmustmatchthenameofthedownloadedarchive.
2CreateuseraccountForalloftheZabbixdaemonprocesses,anunprivilegeduserisrequired.
IfaZabbixdaemonisstartedfromanunprivilegeduseraccount,itwillrunasthatuser.
However,ifadaemonisstartedfroma'root'account,itwillswitchtoa'zabbix'useraccount,whichmustbepresent.
Tocreatesuchauseraccount(initsowngroup,"zabbix"),onaRedHat-basedsystem,run:groupadd--systemzabbixuseradd--system-gzabbix-d/usr/lib/zabbix-s/sbin/nologin-c"ZabbixMonitoringSystem"zabbixonaDebian-basedsystem,run:addgroup--system--quietzabbixadduser--quiet--system--disabled-login--ingroupzabbix--home/var/lib/zabbix--no-create-homezabbixZabbixprocessesdonotneedahomedirectory,whichiswhywedonotrecommendcreatingit.
However,ifyouareusingsomefunctionalitythatrequiresit(e.
g.
storeMySQLcredentialsin$HOME/.
my.
cnf)youarefreetocreateitusingthefollowingcommands.
OnRedHat-basedsystems,run:mkdir-mu=rwx,g=rwx,o=-p/usr/lib/zabbixchownzabbix:zabbix/usr/lib/zabbixOnDebian-basedsystems,run:Lastupdate:2020/06/2613:45manual:installation:installhttps://www.
zabbix.
com/documentation/3.
0/manual/installation/installhttps://www.
zabbix.
com/documentation/3.
0/Printedon2020/10/0307:17mkdir-mu=rwx,g=rwx,o=-p/var/lib/zabbixchownzabbix:zabbix/var/lib/zabbixAseparateuseraccountisnotrequiredforZabbixfrontendinstallation.
IfZabbixserverandagentarerunonthesamemachineitisrecommendedtouseadierentuserforrunningtheserverthanforrunningtheagent.
Otherwise,ifbotharerunasthesameuser,theagentcanaccesstheservercongurationleandanyAdminleveluserinZabbixcanquiteeasilyretrieve,forexample,thedatabasepassword.
RunningZabbixasroot,bin,oranyotheraccountwithspecialrightsisasecurityrisk.
3CreateZabbixdatabaseForZabbixserverandproxydaemons,aswellasZabbixfrontend,adatabaseisrequired.
ItisnotneededtorunZabbixagent.
SQLscriptsareprovidedforcreatingdatabaseschemaandinsertingthedataset.
ZabbixproxydatabaseneedsonlytheschemawhileZabbixserverdatabaserequiresalsothedatasetontopoftheschema.
HavingcreatedaZabbixdatabase,proceedtothefollowingstepsofcompilingZabbix.
4CongurethesourcesWhenconguringthesourcesforaZabbixserverorproxy,youmustspecifythedatabasetypetobeused.
Onlyonedatabasetypecanbecompiledwithaserverorproxyprocessatatime.
Toseeallofthesupportedcongurationoptions,insidetheextractedZabbixsourcedirectoryrun:.
/configure--helpTocongurethesourcesforaZabbixserverandagent,youmayrunsomethinglike:.
/configure--enable-server--enable-agent--with-mysql--enable-ipv6--with-net-snmp--with-libcurl--with-libxml2--with-libcurlcongurationoptionwithcURL7.
20.
0orhigherisrequiredforSMTPauthentication,supportedsinceZabbix3.
0.
0.
--with-libcurland--with-libxml2congurationoptionsarerequiredforvirtualmachinemonitoring,supportedsinceZabbix2.
2.
0.
TocongurethesourcesforaZabbixserver(withPostgreSQLetc.
),youmayrun:.
/configure--enable-server--with-postgresql--with-net-snmpTocongurethesourcesforaZabbixproxy(withSQLiteetc.
),youmayrun:.
/configure--prefix=/usr--enable-proxy--with-net-snmp--with-sqlite3--2020/10/0307:173/113InstallationfromsourcesZabbixDocumentation3.
0-https://www.
zabbix.
com/documentation/3.
0/with-ssh2TocongurethesourcesforaZabbixagent,youmayrun:.
/configure--enable-agentYoumayusethe--enable-staticagtostaticallylinklibraries.
Ifyouplantodistributecompiledbinariesamongdierentservers,youmustusethisagtomakethesebinariesworkwithoutrequiredlibraries.
Notethat--enable-staticdoesnotworkunderSolaris.
Using--enable-staticoptionisnotrecommendedwhenbuildingserver.
Inordertobuildtheserverstaticallyyoumusthaveastaticversionofeveryexternallibraryneeded.
Thereisnostrictcheckforthatincongurescript.
Command-lineutilitieszabbix_getandzabbix_senderarecompiledif--enable-agentoptionisused.
AddoptionalpathtotheMySQLcongurationle--with-mysql=//mysql_congtoselectthedesiredMySQLclientlibrarywhenthereisaneedtouseonethatisnotlocatedinthedefaultlocation.
ItisusefulwhenthereareseveralversionsofMySQLinstalledorMariaDBinstalledalongsideMySQLonthesamesystem.
Use--with-ibm-db2agtospecifylocationoftheCLIAPI.
Use--with-oracleagtospecifylocationoftheOCIAPI.
ForencryptionsupportseeCompilingZabbixwithencryptionsupport5MakeandinstalleverythingIfinstallingfromgit,itisrequiredtorunrst:$makedbschemamakeinstallThisstepshouldberunasauserwithsucientpermissions(commonly'root',orbyusingsudo).
Runningmakeinstallwillbydefaultinstallthedaemonbinaries(zabbix_server,zabbix_agentd,zabbix_proxy)in/usr/local/sbinandtheclientbinaries(zabbix_get,zabbix_sender)in/usr/local/bin.
Tospecifyadierentlocationthan/usr/local,usea--prexkeyinthepreviousstepofconguringsources,forexample--prex=/home/zabbix.
Inthiscasedaemonbinarieswillbeinstalledunder/sbin,whileutilitiesunder/bin.
Manpageswillbeinstalledunder/share.
6ReviewandeditcongurationlesedittheZabbixagentcongurationle/usr/local/etc/zabbix_agentd.
confYouneedtocongurethisleforeveryhostwithzabbix_agentdinstalled.
Lastupdate:2020/06/2613:45manual:installation:installhttps://www.
zabbix.
com/documentation/3.
0/manual/installation/installhttps://www.
zabbix.
com/documentation/3.
0/Printedon2020/10/0307:17YoumustspecifytheZabbixserverIPaddressinthele.
Connectionsfromotherhostswillbedenied.
edittheZabbixservercongurationle/usr/local/etc/zabbix_server.
confYoumustspecifythedatabasename,userandpassword(ifusingany).
WithSQLitethefullpathtodatabaselemustbespecied;DBuserandpasswordarenotrequired.
Therestoftheparameterswillsuityouwiththeirdefaultsifyouhaveasmallinstallation(uptotenmonitoredhosts).
YoushouldchangethedefaultparametersifyouwanttomaximizetheperformanceofZabbixserver(orproxy)though.
Seetheperformancetuningsectionformoredetails.
ifyouhaveinstalledaZabbixproxy,edittheproxycongurationle/usr/local/etc/zabbix_proxy.
confYoumustspecifytheserverIPaddressandproxyhostname(mustbeknowntotheserver),aswellasthedatabasename,userandpassword(ifusingany).
WithSQLitethefullpathtodatabaselemustbespecied;DBuserandpasswordarenotrequired.
7StartupthedaemonsRunzabbix_serverontheserverside.
shell>zabbix_serverMakesurethatyoursystemallowsallocationof36MB(orabitmore)ofsharedmemory,otherwisetheservermaynotstartandyouwillsee"Cannotallocatesharedmemoryfor.
"intheserverlogle.
ThismayhappenonFreeBSD,Solaris8.
Seethe"Seealso"sectionatthebottomofthispagetondouthowtoconguresharedmemory.
Runzabbix_agentdonallthemonitoredmachines.
shell>zabbix_agentdMakesurethatyoursystemallowsallocationof2MBofsharedmemory,otherwisetheagentmaynotstartandyouwillsee"Cannotallocatesharedmemoryforcollector.
"intheagentlogle.
ThismayhappenonSolaris8.
IfyouhaveinstalledZabbixproxy,runzabbix_proxy.
shell>zabbix_proxy5.
4.
7InstallingZabbixwebinterfaceCopyingPHPlesZabbixfrontendiswritteninPHP,sotorunitaPHPsupportedwebserverisneeded.
InstallationisdonebysimplycopyingthePHPlesfromfrontends/phptothewebserverHTMLdocumentsdirectory.
2020/10/0307:175/113InstallationfromsourcesZabbixDocumentation3.
0-https://www.
zabbix.
com/documentation/3.
0/CommonlocationsofHTMLdocumentsdirectoriesforApachewebserversinclude:/usr/local/apache2/htdocs(defaultdirectorywheninstallingApachefromsource)/srv/www/htdocs(OpenSUSE,SLES)/var/www/html(Fedora,RHEL,CentOS)/var/www(Debian,Ubuntu)ItissuggestedtouseasubdirectoryinsteadoftheHTMLroot.
TocreateasubdirectoryandcopyZabbixfrontendlesintoit,executethefollowingcommands,replacingtheactualdirectory:mkdir/zabbixcdfrontends/phpcp-a.
/zabbixIfinstallingfromgitandplanningtouseanyotherlanguagethanEnglish,youmustgeneratetranslationles.
Todoso,run:locale/make_mo.
shmsgfmtutilityfromgettextpackageisrequired.
Additionally,touseanyotherlanguagethanEnglish,itslocaleshouldbeinstalledonthewebserver.
Seethe"Seealso"sectioninthe"Userprole"pagetondouthowtoinstallitifrequired.
InstallingfrontendStep1Inyourbrowser,openZabbixURL:http:///zabbixYoushouldseetherstscreenofthefrontendinstallationwizard.
Lastupdate:2020/06/2613:45manual:installation:installhttps://www.
zabbix.
com/documentation/3.
0/manual/installation/installhttps://www.
zabbix.
com/documentation/3.
0/Printedon2020/10/0307:17Step2Makesurethatallsoftwareprerequisitesaremet.
Pre-requisiteMinimumvalueDescriptionPHPversion5.
4.
0PHPmemory_limitoption128MBInphp.
ini:memory_limit=128MPHPpost_max_sizeoption16MBInphp.
ini:post_max_size=16MPHPupload_max_lesizeoption2MBInphp.
ini:upload_max_lesize=2MPHPmax_execution_timeoption300seconds(values0and-1areallowed)Inphp.
ini:max_execution_time=300PHPmax_input_timeoption300seconds(values0and-1areallowed)Inphp.
ini:max_input_time=300PHPsession.
auto_startoptionmustbedisabledInphp.
ini:session.
auto_start=0DatabasesupportOneof:IBMDB2,MySQL,Oracle,PostgreSQL,SQLiteOneofthefollowingmodulesmustbeinstalled:ibm_db2,mysql,oci8,pgsql,sqlite3bcmathphp-bcmathmbstringphp-mbstringPHPmbstring.
func_overloadoptionmustbedisabledInphp.
ini:mbstring.
func_overload=02020/10/0307:177/113InstallationfromsourcesZabbixDocumentation3.
0-https://www.
zabbix.
com/documentation/3.
0/Pre-requisiteMinimumvalueDescriptionPHPalways_populate_raw_post_dataoptionmustbedisabledRequiredonlyforPHPversions5.
6.
0ornewer.
Inphp.
ini:always_populate_raw_post_data=-1socketsphp-net-socket.
Requiredforuserscriptsupport.
gd2.
0orhigherphp-gd.
PHPGDextensionmustsupportPNGimages(--with-png-dir),JPEG(--with-jpeg-dir)imagesandFreeType2(--with-freetype-dir).
libxml2.
6.
15php-xmlorphp5-domxmlwriterphp-xmlwriterxmlreaderphp-xmlreaderctypephp-ctypesessionphp-sessiongettextphp-gettextSinceZabbix2.
2.
1,thePHPgettextextensionisnotamandatoryrequirementforinstallingZabbix.
Ifgettextisnotinstalled,thefrontendwillworkasusual,however,thetranslationswillnotbeavailable.
Optionalpre-requisitesmayalsobepresentinthelist.
AfailedoptionalprerequisiteisdisplayedinorangeandhasaWarningstatus.
Withafailedoptionalpre-requisite,thesetupmaycontinue.
IfthereisaneedtochangetheApacheuserorusergroup,permissionstothesessionfoldermustbeveried.
OtherwiseZabbixsetupmaybeunabletocontinue.
Step3Enterdetailsforconnectingtothedatabase.
Zabbixdatabasemustalreadybecreated.
Lastupdate:2020/06/2613:45manual:installation:installhttps://www.
zabbix.
com/documentation/3.
0/manual/installation/installhttps://www.
zabbix.
com/documentation/3.
0/Printedon2020/10/0307:17Step4EnterZabbixserverdetails.
EnteringanameforZabbixserverisoptional,however,ifsubmitted,itwillbedisplayedinthemenubarandpagetitles.
Step5Reviewasummaryofsettings.
2020/10/0307:179/113InstallationfromsourcesZabbixDocumentation3.
0-https://www.
zabbix.
com/documentation/3.
0/Step6Downloadthecongurationleandplaceitunderconf/inthewebserverHTMLdocumentssubdirectorywhereyoucopiedZabbixPHPlesto.
Providingthewebserveruserhaswriteaccesstoconf/directorythecongurationlewouldbesavedautomaticallyanditwouldbepossibletoproceedtothenextsteprightaway.
Step7Finishtheinstallation.
Lastupdate:2020/06/2613:45manual:installation:installhttps://www.
zabbix.
com/documentation/3.
0/manual/installation/installhttps://www.
zabbix.
com/documentation/3.
0/Printedon2020/10/0307:17Step8Zabbixfrontendisready!
ThedefaultusernameisAdmin,passwordzabbix.
ProceedtogettingstartedwithZabbix.
SeealsoHowtoconguresharedmemoryforZabbixdaemons1.
2020/10/0307:1711/113InstallationfromsourcesZabbixDocumentation3.
0-https://www.
zabbix.
com/documentation/3.
0/From:https://www.
zabbix.
com/documentation/3.
0/-ZabbixDocumentation3.
0Permanentlink:https://www.
zabbix.
com/documentation/3.
0/manual/installation/installLastupdate:2020/06/2613:45
可以看到这次国庆萤光云搞了一个不错的折扣,香港CN2产品6.5折促销,还送50的国庆红包。萤光云是2002年创立的商家,本次国庆活动主推的是香港CN2优化的机器,其另外还有国内BGP和高防服务器。本次活动力度较大,CN2优化套餐低至20/月(需买三个月,用上折扣+代金券组合),有需求的可以看看。官方网站:https://www.lightnode.cn/地区CPU内存SSDIP带宽/流量价格备注购...
官方网站:点击访问酷番云官网活动方案:优惠方案一(限时秒杀专场)有需要海外的可以看看,比较划算29月,建议年付划算,月付续费不同价,这个专区。国内节点可以看看,性能高IO为主, 比较少见。平常一般就100IO 左右。优惠方案二(高防专场)高防专区主要以高防为主,节点有宿迁,绍兴,成都,宁波等,节点挺多,都支持防火墙自助控制。续费同价以下专场。 优惠方案三(精选物理机)西南地区节点比较划算,赠送5...
cloudcone经常性有特价促销VPS放出来,每次的数量都是相当有限的,为了方便、及时帮助大家,主机测评这里就做这个cloudcone特价VPS补货专题吧,以后每次放货我会在这里更新一下日期,方便大家秒杀!官方网站:https://cloudcone.com/预交费模式,需要充值之后方可使用,系统自动扣费!信用卡、PayPal、支付宝,均可付款购买!为什么说cloudcone值得买?cloudc...
phpcms模板为你推荐
支付宝蜻蜓发布想做支付宝蜻蜓刷脸支付的代理么?怎么做?搜狗360电脑自动安装360安全浏览器波音737起飞爆胎美国737MAX又紧急迫降,为什么它还在飞?闪拍网闪拍网是真的吗网站方案设计求一篇校园网络设计的方案佛山海虹广东海虹药通电子商务有限公司怎么样?工具条手机的工具栏怎么在任务栏里?怎么把工具栏调到手机下面?地址栏图标网站添加地址栏图标代码怎么写?headersalreadysentPHP中session_start的意思是什么密码丢失密码丢了怎么找
已备案未注册域名 免费申请网站域名 冰山互联 xen 租空间 个人空间申请 台湾谷歌地址 速度云 电信虚拟主机 网游服务器 跟踪路由命令 云营销系统 东莞主机托管 申请免费空间 ledlamp 免费php空间 97rb 免费主页空间 好看的空间 服务器防御 更多