Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
i receive the data.
But when i use cacti, it doesn't show the data in the graphs, it keeps displaying all zero's in the legenda and there is no graph displayed.
When i set my log level on debug i noticed several warnings like this
01/18/2009 02:30:01 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (40, 'nxrrset', '2009-01-18 02:30:01', 'U')"
01/18/2009 02:30:01 AM - CMDPHP: Poller[0] Host[2] DS[40] SNMP: v1: 127.0.0.1, dsname: nxrrset, oid: , output: U
01/18/2009 02:30:01 AM - CMDPHP: Poller[0] Host[2] DS[40] WARNING: Result from SNMP not valid. Partial Result:
01/18/2009 02:30:01 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (39, 'failure', '2009-01-18 02:30:01', 'U')"
01/18/2009 02:30:01 AM - CMDPHP: Poller[0] Host[2] DS[39] SNMP: v1: 127.0.0.1, dsname: failure, oid: , output: U
01/18/2009 02:30:01 AM - CMDPHP: Poller[0] Host[2] DS[39] WARNING: Result from SNMP not valid. Partial Result:
EDIT: i recompiled php with the socket USE flag (i use gentoo) and now the above errors are gone, but i still have the problem that the values in my graph stay at zero. any ideas?
JeffRoberson wrote:It's interesting that it is looking at 127.0.0.1 and not the host. You might check to see if it is pulling the data from the correct host.
Sorry I forgot to mention this,
It's the localhost where i'm pulling the stats of. Thanks to the script you posted earlier in this thread
Ah, there is a different set of scripts that the original author posted to pull local stats. I'll look over that code and see if I can modify it to work for the local hosts for you.
JeffRoberson wrote:Ah, there is a different set of scripts that the original author posted to pull local stats. I'll look over that code and see if I can modify it to work for the local hosts for you.
Here is the tweaked up code for the bind9-stats.pl script for local checks. I created a table to translate the BIND 9 stats to BIND 8 stats. I think that I'm hitting the correct new names to the old ones. Please feel free to correct me if I'm wrong. The main loop is similar to the one that I modified for the SNMPD checks.
Data Query Debug Information
+ Running data query [12].
+ Found type = '4 '[script query].
+ Found data query XML file at '/var/www/vhosts/free-h.org/subdomains/panel/httpdocs/cacti/resource/script_queries/bind9-stats.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'perl /var/www/vhosts/free-h.org/subdomains/panel/httpdocs/cacti/scripts/bind9-stats.pl index'
+ Executing script query 'perl /var/www/vhosts/free-h.org/subdomains/panel/httpdocs/cacti/scripts/bind9-stats.pl query zone'
+ Found data query XML file at '/var/www/vhosts/free-h.org/subdomains/panel/httpdocs/cacti/resource/script_queries/bind9-stats.xml'
+ Found data query XML file at '/var/www/vhosts/free-h.org/subdomains/panel/httpdocs/cacti/resource/script_queries/bind9-stats.xml'
+ Found data query XML file at '/var/www/vhosts/free-h.org/subdomains/panel/httpdocs/cacti/resource/script_queries/bind9-stats.xml'
Check the permissions of perl /var/www/vhosts/free-h.org/subdomains/panel/httpdocs/cacti/scripts/bind9-stats.pl. Permissions can usually cause problems like this.
Also, check to see where your bind9 stats file is located. You may need to adjust the script to point to the correct location of your stats file.
JeffRoberson wrote:Check the permissions of perl /var/www/vhosts/free-h.org/subdomains/panel/httpdocs/cacti/scripts/bind9-stats.pl. Permissions can usually cause problems like this.
Also, check to see where your bind9 stats file is located. You may need to adjust the script to point to the correct location of your stats file.
Hm... I have same problem. i use statistic via snmp.
Data Query Debug Information
+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/bind9-stats-snmp.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.55.1'
+ No SNMP data returned
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/bind9-stats-snmp.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/bind9-stats-snmp.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/bind9-stats-snmp.xml'
JeffRoberson wrote:Here is a refreshed tar file with the new scripts and the other files created by Cory Powers. Enjoy!
Hi Jeff, I'm using these scripts since 2006 and I recently installed your updated version for Bind 9.6 (and they work well).
There's a thing I want to ask you. I'm using the "local" version (copying the named.stats file from the dns server to the cacti server and changing his name) but I have 2 dns server and I'm not able to make them work at the same time.
I copied the two statistic files with two different names, I created two different .pl file changing the $STAT_FILE variable, I created two different "bind9-stats.xml" changing the "<script_path>perl |path_cacti|/scripts/bind9-stats.pl</script_path>" statement .....But I always get the statistics from one dns server.
So the simplified question is: on the cacti server you have two statistics files coming from two dns server. How can you get them work?
+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/bind9-stats-snmp.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.55.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/bind9-stats-snmp.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/bind9-stats-snmp.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/bind9-stats-snmp.xml'
Now my NXDOMAIN skyrocketed i think caused by virueses on my customers' computers.
The problem is that i don't get NXDOMIAN graphed annymore.
No warning no error polling the bind host.
So i think i got some limit about data or graph. in fact i am able to manually collect data through snmp, for exemple:
CD-SNMP-MIB::ucdavis.55.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.55.2.1 = STRING: "GLOBAL"
UCD-SNMP-MIB::ucdavis.55.3.1 = INTEGER: 187816
UCD-SNMP-MIB::ucdavis.55.4.1 = INTEGER: 1517
UCD-SNMP-MIB::ucdavis.55.5.1 = INTEGER: 1944581
UCD-SNMP-MIB::ucdavis.55.6.1 = INTEGER: 3162
UCD-SNMP-MIB::ucdavis.55.7.1 = INTEGER: 2
UCD-SNMP-MIB::ucdavis.55.8.1 = INTEGER: 49945