歡迎您光臨本站 註冊首頁

使用cacti監控DNS-bind9的問題!

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

使用cacti監控DNS-bind9的問題!

參照http://www.bayour.com/bind9-snmp/README.txt
里的內容,將DNS-server的snmp都改好.
snmp.conf
mibs BAYOUR-COM-MIB:UCD-SNMP-MIB
snmpd.conf
修改的地方
com2sec notConfigUser  default       public
view all    included  .1                               80
# http://forums.cacti.net/about302-0-asc-15.html
# snmpwalk -On -c public localhost .1.3.6.1.4.1.8767.2.1
# snmpwalk -On -c public localhost .1.3.6.1.4.1.8767.2.1.4.1.2
# snmpwalk -On -c public localhost .iso.org.dod.internet.private.enterprises.bayourCom.snmp.bind9Stats.4.1.1
# snmptable -c public localhost b9stTotalsTable
# snmptable -c public localhost b9stDomainsTable
pass_persist .1.3.6.1.4.1.8767.2.1   /etc/snmp/bind9-snmp-stats.pl

再將cacti內容改好!
現在出不來圖!
debug如下.
SNMP - Local - Bind9 Statistics - domains - QUERY
+ Running data query .
+ Found type = '3' .
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/bind9-stats_domains.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.8767.2.1.4.1'
+ Located input field 'b9stDomainName'
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.8767.2.1.4.1.2'
+ Found item index: End of MIB
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/bind9-stats_domains.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/bind9-stats_domains.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/bind9-stats_domains.xml'
SNMP - Local - Bind9 Statistics - totals - QUERY
+ Running data query .
+ Found type = '3' .
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/bind9-stats_totals.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.8767.2.1.3.1'
+ Located input field 'b9stCounterName'
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.8767.2.1.3.1.2'
+ Found item index: End of MIB
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/bind9-stats_totals.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/bind9-stats_totals.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/bind9-stats_totals.xml'
畫圖的時候
Data Query
這個選項Domainname
End of MIB
下面的counter name
也出現
End of MIB
請問有人知道怎麼解決嗎?:em16::em16::em16:
《解決方案》

新的情況

+ Running data query .
+ Found type = '3' .
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/bind9-stats_totals.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.8767.2.1.3.1'
+ No SNMP data returned
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/bind9-stats_totals.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/bind9-stats_totals.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/bind9-stats_totals.xml'



Apr 26 09:05:03 hc-mrtg Cacti: CMDPHP: Host DS WARNING: Result from SNMP not valid.  Partial Result:
Apr 26 09:05:03 hc-mrtg Cacti: CMDPHP: Host DS WARNING: Result from SNMP not valid.  Partial Result:
Apr 26 09:05:03 hc-mrtg Cacti: CMDPHP: Host DS WARNING: Result from SNMP not valid.  Partial Result:
Apr 26 09:05:03 hc-mrtg Cacti: CMDPHP: Host DS WARNING: Result from SNMP not valid.  Partial Result:
Apr 26 09:05:03 hc-mrtg Cacti: CMDPHP: Host DS WARNING: Result from SNMP not valid.  Partial Result:
Apr 26 09:05:04 hc-mrtg Cacti: CMDPHP: Host DS WARNING: Result from SNMP not valid.  Partial Result:
Apr 26 09:05:04 hc-mrtg Cacti: CMDPHP: Host DS WARNING: Result from SNMP not valid.  Partial Result:
Apr 26 09:05:04 hc-mrtg Cacti: CMDPHP: Host DS WARNING: Result from SNMP not valid.  Partial Result:
Apr 26 09:05:20 hc-mrtg Cacti: CMDPHP: Host DS WARNING: Result from SNMP not valid.  Partial Result:
Apr 26 09:05:59 hc-mrtg Cacti: SYSTEM: STATS: Time:57.6399 Method:cmd.php Processes:1 Threads:N/A Hosts:17

HostsPerProcess:17 DataSources:678 RRDsProcessed:353
《解決方案》

偶的也是出不來圖, 這個路徑是做什麼用的? site_perl 我的系統沒這個目錄
* BayourCOM_SNMP.pm
  This is the Perl API library needed
  by the bind9-snmp-stats.pl perl script.
  Copy to /usr/local/lib/site_perl/

有那位大哥裝好了的幫忙看看

[火星人 ] 使用cacti監控DNS-bind9的問題!已經有796次圍觀

http://coctec.com/docs/service/show-post-34964.html