nagios 4.0.2 map trends无法打开
查看./configure
checkingformainin-liconv...no
checkingforgdImagePngin-lgd(order1)...no
checkingforgdImagePngin-lgd(order2)...no
checkingforgdImagePngin-lgd(order3)...no
checkingforgdImagePngin-lgd(order4)...no
***GD,PNG,and/orJPEGlibrariescouldnotbelocated...*********
Boutell'sGDlibraryisrequiredtocompilethestatusmap,trends
andhistogramCGIs.Getitfromhttp://www.boutell.com/gd/,compile
it,andusethe--with-gd-liband--with-gd-incargumentstospecify
thelocationsoftheGDlibraryandincludefiles.
NOTE:Inadditiontothegd-devellibrary,you'llalsoneedtomake
sureyouhavethepng-develandjpeg-devellibrariesinstalled
onyoursystem.
NOTE:Afteryouinstallthenecessarylibrariesonyoursystem:
1.Makesure/etc/ld.so.confhasanentryforthedirectoryin
whichtheGD,PNG,andJPEGlibrariesareinstalled.
2.Run'ldconfig'toupdatetherun-timelinkeroptions.
3.Run'makeclean'intheNagiosdistributiontocleanout
anyoldreferencestoyourpreviouscompile.
4.Reruntheconfigurescript.
NOTE:Ifyoucan'tgettheconfigurescripttorecognizetheGDlibs
onyoursystem,getoveritandmoveontootherthings.The
CGIsthatusetheGDlibsarejustasmallpartoftheentire
Nagiospackage.Geteverythingelseworkingfirstandthen
revisittheproblem.Makesuretocheckthenagios-users
mailinglistarchivesforpossiblesolutionstoGDlibrary
problemswhenyouresumeyourtroubleshooting.
********************************************************************
说明没有安装gd或者gd-develpngjpeg,安装gd没看到gd-develyum安装iso镜像里没有gd-devel包于是手动下载的,但是yum是能找到gd-devel的依赖关系的,我就把下载的gd-devel的rpm包放到/var/cache/yum/x86_64/6/Server/packages下再yuminstallgd-devel就可以了
之后就./configure--prefix=/usr/local/nagios
只要执行上面的就可以,nagios默认就会编译statsusmap.cgi和trends.cgi,只是如果gdgd-devel不在就不编译了,
然后执行makecgis&&makeinstall就ok了,不用重新编译nagios了,只编译cgi就可以了
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。