iT邦幫忙

0

安裝cacti-spine出錯

在這之前已經執行
yum -y install wget gcc gcc-c++ make automake autoconf patch
結果

./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gawk... (cached) gawk
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/root/cacti-spine-1.1.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
seeyounow iT邦新手 5 級 ‧ 2017-04-25 16:36:27 檢舉
而且我裝了最新版cacti我看rra底下都沒生成檔案,不知道哪裡有問題跟之前0.8.8版差好多...
seeyounow iT邦新手 5 級 ‧ 2017-04-25 16:48:55 檢舉
直接執行 /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1 也沒辦法生成...
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
bizpro
iT邦大師 1 級 ‧ 2017-04-25 16:49:14

如果只是安裝這些是不夠的:
yum -y install wget gcc gcc-c++ make automake autoconf patch

每次組態(configure)的結果會紀錄在這個檔案config.log, 看看少了什麼:
`See config.log' for more details``
檔案中會指出少掉的套件.

基本上, 您應該還需要:

yum install net-snmp-devel mysql-devel openssl-devel libtool dos2unix help2man
看更多先前的回應...收起先前的回應...
bizpro iT邦大師 1 級 ‧ 2017-04-25 16:51:27 檢舉
seeyounow iT邦新手 5 級 ‧ 2017-04-25 17:14:31 檢舉

感謝,那關於rrd沒生成怎麼解決呢...

bizpro iT邦大師 1 級 ‧ 2017-04-25 17:44:03 檢舉

您是指rrd沒安裝? yum install rrdtools
請看第二篇教學

seeyounow iT邦新手 5 級 ‧ 2017-04-26 08:44:28 檢舉

不是,我在cacti安裝的網頁有確認,是有抓到路徑的,可是連centos自己的rrd都沒升成出來,造成圖表出現error opening '/usr/share/cacti/rra/local_linux_ma.rrd': NO such file or directory
也確定資料夾權限有開放

bizpro iT邦大師 1 級 ‧ 2017-04-26 09:41:14 檢舉

請確認生成rrd的路徑是cacti所讀的/usr/share/cacti/rra, 或者修改rrd_path參數.

seeyounow iT邦新手 5 級 ‧ 2017-04-26 10:40:56 檢舉

我自己手動執行
/usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
有生成出來了,可是卻不是每個都生成出來,我嘗試在刪除然後生成,又變成之前沒生成的有了,可是一樣有缺,並且數值都是nan

seeyounow iT邦新手 5 級 ‧ 2017-04-26 10:45:50 檢舉

而且ID的地方,我雖然有刪除,但序號還是會往後創,想要Rebuild Poller Cache但是不知道新版的該如何使用,因為舊版只要點了就可以,抱歉,麻煩你了
http://ithelp.ithome.com.tw/upload/images/20170426/201030785pfUsxl8yz.jpg

我要發表回答

立即登入回答