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
以前我们在参与到云服务商促销活动的时候周期基本是一周时间,而如今我们会看到无论是云服务商还是电商活动基本上周期都要有超过一个月,所以我们有一些网友习惯在活动结束之前看看商家是不是有最后的促销活动吸引力的,比如有看到阿里云年中活动最后一周,如果我们有需要云服务器的可以看看。在前面的文章中(阿里云新人福利选择共享性N4云服务器年79.86元且送2月数据库),(LAOZUO.ORG)有提到阿里云今年的云...
inlicloud怎么样?inlicloud(引力主机)主要产品为国内NAT系列VPS,目前主要有:上海联通NAT(200Mbps带宽)、宿州联通NAT(200Mbps带宽)、广州移动NAT(200Mbps带宽)。根据官方的说法国内的NAT系列VPS不要求备案、不要求实名、对中转要求也不严格,但是,禁止任何形式的回国!安徽nat/上海联通/广州移动/江门移动nat云主机,2核1G/200Mbps仅...
pigyun怎么样?PIGYun成立于2019年,2021是PIGYun为用户提供稳定服务的第三年,期待我们携手共进、互利共赢。PIGYun为您提供:香港CN2线路、韩国CN2线路、美西CUVIP-9929线路优质IaaS服务。月付另有通用循环优惠码:PIGYun,获取8折循环优惠(永久有效)。目前,PIGYun提供的香港cn2云服务器仅29元/月起;韩国cn2云服务器仅22元/月起;美国CUVI...
phpcms模板为你推荐
德国iphone禁售令德国买iPhone现在多少钱?支付宝蜻蜓发布蜻蜓支付怎样实现盈利重庆杨家坪猪肉摊主杀人重庆九龙坡区治安好么360免费建站怎样给360免费自助建站制作的企业网站做一级域名解析绑定?文档下载怎么下载百度文档95188是什么电话95188是什么号码我刚收到短信是什么支付宝的验证码网站方案设计网站文案策划怎么写免费代理加盟哪有免费的代理可以做的?骑士人才系统公司要采购一套人才系统源码,看了一下骑士和嘉缘的,谁家的比较好一点呢?托就不要回答了。联系我们代码农业银行代码
香港ufo 分销主机 服务器怎么绑定域名 长沙服务器 ibrs 魔兽世界台湾服务器 jsp空间 129邮箱 国外代理服务器软件 稳定免费空间 吉林铁通 联通网站 独享主机 www789 英国伦敦 国外在线代理服务器 免费网络 免费蓝钻 阵亡将士纪念日 广州服务器托管 更多