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.
Mike Adolphs wrote:
This has not just something to do with increasing the amount of OIDs per snmpwalk but rather with the snmp timeout configuration variable. Simply increase the timeout value within your host configuration from 500ms to several seconds and you're set.
physically, the file named.stats is located in the directory /usr/local/sandbox/BIND/var/stats
I make symlink this directory into /var/~stats
I made /usr/local/etc/rc.d/snmpd restart
then
I go to the sever with Cacti and trying to :
+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/share/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'
+ Index found at OID: '.1.3.6.1.4.1.2021.55.1.0' value: '0'
+ Located input field 'bindIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2021.55.1'
+ Found item [bindIndex='0'] index: 0 [from value]
+ Located input field 'bindName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2021.55.2'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/bind9-stats-snmp.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/bind9-stats-snmp.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/bind9-stats-snmp.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/bind9-stats-snmp.xml'
So, it's looks fine. But grafic still empty.
Tryinf resolve by snmpwalk on server and client
Mike Adolphs wrote:
This has not just something to do with increasing the amount of OIDs per snmpwalk but rather with the snmp timeout configuration variable. Simply increase the timeout value within your host configuration from 500ms to several seconds and you're set.
thanks....it's working now
i have bind 9.6.1 and cacti 0.8.7d
Anyone having the "No SNMP Data" problem with the "SNMP"-based configuration, running bind 9.6.1 on a solaris 10 box, and cacti on Linux, may want to take look at this post:
+ 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'
I am in the process of building an new Debian DNS server and I have installed Debian 5.0, BIND 6.5.1 and I am trying to set it up so Cacti can monitor BIND.
I have been using this script successfully on Debian 4.0 and BIND 6.4.3, but want to start using more up to date versions.
Everything works well except when I try to run the bind9-stats-snmpd.pl and I get the following error
mg2:/bin# /usr/bin/perl /bin/bind9-stats-snmpd.pl
Can't locate SNMP/Extension/PassPersist.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /bin/bind9-stats-snmpd.pl line 48.
BEGIN failed--compilation aborted at /bin/bind9-stats-snmpd.pl line 48.
I understand that the CPAN SNMP::Extension::PassPersist is required but I can not see how to install it for Debian 5.0
I tried to set up version bind9-snmp_1.pre8 on my Debian GNU/Linux-Server, but get the following errors. The reason seems to be that my stats-file has a different formatting than the script expects.
Argument "Incoming" isn't numeric in addition (+) at /usr/local/bin/bind9-snmp-stats.pl line 612, <DUMP> line 2.
Argument "Incoming" isn't numeric in addition (+) at /usr/local/bin/bind9-snmp-stats.pl line 612, <DUMP> line 4.
Argument "Outgoing" isn't numeric in addition (+) at /usr/local/bin/bind9-snmp-stats.pl line 612, <DUMP> line 16.
...
+ Running data query [16].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/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'
+ Index found at OID: '1.3.6.1.4.1.2021.55.1.0' value: '0'
+ Located input field 'bindIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2021.55.1'
+ Found item [bindIndex='0'] index: 0 [from value]
+ Located input field 'bindName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2021.55.2'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/bind9-stats-snmp.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/bind9-stats-snmp.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/bind9-stats-snmp.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/bind9-stats-snmp.xml'
I am not sure what the problem is, it almost seems that my stats file isn't being parsed correctly, but I don't know, just a hunch.
my cron job is running every 5 minutes successfully and creating my named_stats.txt file. There is data in it and I only have 2 zones, but I am not sure what isn't working at this point.
I am running bind 9.3.3 in a chroot jail. I have suspicions that this could be causing some sort of issue, but I can't confirm that as I don't know enough about the permissions and other aspects of these scripts.
I am using the 2.0 version a few pages behind this one.
Any help would be greatly appreciated. It feels like I am really close. Thanks a ton.
I have a problem with bind 9 statistic query. I canot get the graphs, below the data query debug information :
+ Running data query [12].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/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'
+ No SNMP data returned
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/bind9-stats_domains.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/bind9-stats_domains.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/bind9-stats_domains.xml'
Mike Adolphs wrote:This has not just something to do with increasing the amount of OIDs per snmpwalk but rather with the snmp timeout configuration variable. Simply increase the timeout value within your host configuration from 500ms to several seconds and you're set.
Can someone point me to the working template? I see plenty of posts on BIND 9.5 but none of them seems to work for me (I am getting a timeout when executing snmpwalk against the remote BIND server. When I do not specify the OID ".1.3.6.1.4.1.2021.55" I get the results, but no DNS information, of course.
I need to query a remote BIND server via SNMP. Please advise which template works for you (or upload the most recent version one more time).
Thanks a lot.
There you go. The attached version works just fine. Stick to the documentation which can be found within the archive.
Generally it works like this:
1.) Copy the bind9-genstats.sh and the bind9-stats-snmp.pl script on your BIND server.
2.) Alter the bind9-stats-snmp.pl script in line 52 to fit your named.stats file's location
3.) Same with bind9-genstats.sh in line 16.
4.) Create the cronjob which frequently runs bind9-genstats.sh every 5min
5.) Alter your /etc/snmp/snmpd.conf so that it's able to serve the BIND information via the perl script
6.) Restart the SNMP daemon
7.) Do a manual snmpwalk -v2c -c <whather community string you have put in here> IP .1.3.6.1.4.1.2021.55 and you should get results. Otherwise you've messed something up in the first place and Cacti won't be able to pull data either.
8.) Integrate the template into Cacti and configure your data sources, graphs and so on via the web-interface.
Possible downfalls could be file or directory permissions, not sufficient rights to run rndc stats or else, but these are the most common.
Best regards,
Mike Adolphs
Hi:
Will that work on Cacti 0.87e and Bind 9.6.1 on Solaris 10?
+ Running data query [12].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/share/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'
+ Index found at OID: '1.3.6.1.4.1.2021.55.1.0' value: '1'
+ Located input field 'bindIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2021.55.1'
+ Found item [bindIndex='1'] index: 0 [from value]
+ Located input field 'bindName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2021.55.2'
+ Found item [bindName='/var/named/var/cacti/bind9-stats-snmpd.pl'] index: 108 [from value]
+ Found item [bindName=''] index: 108 [from value]
+ Found item [bindName=''] index: 108 [from value]
+ Found item [bindName='5'] index: 108 [from value]
+ Found item [bindName='1'] index: 108 [from value]
+ Found item [bindName='1'] index: 108 [from value]
+ Found item [bindName='4'] index: 108 [from value]
+ Found item [bindName='1'] index: 108 [from value]
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/bind9-stats-snmp.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/bind9-stats-snmp.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/bind9-stats-snmp.xml'