發表文章

目前顯示的是有「cacti」標籤的文章

使用 Spine 加速 Cacti 的輪循裝置速度

圖片
---- 使用 Spine 加速 Cacti 的輪循裝置速度 ---- http://www.cacti.net/spine_info.php Spine, formerly Cactid, is a poller for Cacti that primarily strives to be as fast as possible. For this reason it is written in native C, makes use of POSIX threads, and is linked directly against the net-snmp library for minmumal SNMP polling overhead. Spine is a replacement for the default cmd.php poller so you must decide if using Spine makes sense for your installation. Spine 是 Cacti 用來加入輪循的程式,使用原生的 C 及支援 POSIX 的 threads 來加入輪循主機的效率。在 Cacti 預設是使用 cmd.php 來當成 poller ,如果你有 poller 時間過長的問題可以考慮使用 spine 來處理。 你可以透過, log 檔來判斷你是否需要 spine Console -> Utilities -> View Cacti Log File 底下例子是 cmd.php 使用了 190 秒的時間,離上限 300 秒很接近了。 09/28/2015 08:25:12 PM - SYSTEM STATS: Time:190.7159 Method:cmd.php Processes:100 Threads:N/A Hosts:68 HostsPerProcess:1 DataSources:3003 RRDsProcessed:1433 這個案例就有改善的必要。 ---- spine 的安裝 ---- http://www.cacti.net/spine_install_unix.php Spine 需要底下這些 lib 如果沒裝的話,可以再補上去。 net-snmp u...

CentOS 7 上 cacti 流量報表管理系統的安裝

圖片
CACTI 是一個結合 snmp 及 rrdtool 的流量報表管理工具,可以大量監控所有的流量報表。 使用前請先安裝及設定好 1. MariaDB http://blog.jangmt.com/2015/09/mariadb-root-in-centos-linux-7.html 2. httpd and phpmyadmin http://blog.jangmt.com/2015/09/centos-7-phpmyadmin.html  3. 主機的 snmpd 服務 http://blog.jangmt.com/2015/09/centos-7-snmpd-centos-7-snmp-install.html ---- CACTI install ---- # 直接使用 yum 安裝 [root@hnamenode2 snmp]# yum install cacti -y [root@hnamenode2 cacti]# pwd /etc/cacti # 安裝號後,請觀看 db.php 的設定值,建立一個 cacti 帳號 [root@hnamenode2 cacti]# cat /etc/cacti/db.php /* make sure these values refect your actual database/host/user/password */ $database_type = "mysql"; $database_default = "cacti"; $database_hostname = "localhost"; $database_username = "cacti"; $database_password = "cactiuser"; $database_port = "3306"; $database_ssl = false; /*    Edit this to point to the default URL of your Cacti install    ex: if your cacti install as at http://ser...