BIND 9 Statistics for Cacti

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
polosport
Posts: 9
Joined: Tue Dec 13, 2005 5:31 pm
Location: Los Angeles, CA

Post by polosport »

Has anyone had success with this? Looks like these scripts are a winner.
JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Post by JJX »

they work with debian sarge / bind 9

really nice!! ;)
cacti rulez!
polosport
Posts: 9
Joined: Tue Dec 13, 2005 5:31 pm
Location: Los Angeles, CA

Post by polosport »

How do you add new domains? My DNS servers have some new domains but cacti isn't picking them up? Do I need to add them manually? They are not appearing under data query.
Hyperion
Posts: 16
Joined: Mon Aug 01, 2005 6:07 am

Post by Hyperion »

Hi,

I am also getting: Success [0 Items, 0 Rows]

Manually running the script does return the right values.

Code: Select all

/cacti/scripts/bind9-stats.pl query zone
GLOBAL:GLOBAL

/cacti/scripts/bind9-stats.pl getall GLOBAL
recursion:9 success:7 failure:0 nxrrset:1 referral:0 nxdomain:133 
The verbose output for the query is:

Code: Select all

+ Running data query [10].
+ Found type = '4 '[script query].
+ Found data query XML file at '/cacti/resource/script_queries/bind9-stats.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'perl /cacti/scripts/bind9-stats.pl index'
+ Executing script query 'perl /cacti/scripts/bind9-stats.pl query zone'
+ Found data query XML file at '/cacti/resource/script_queries/bind9-stats.xml'
+ Found data query XML file at '/cacti/resource/script_queries/bind9-stats.xml'
+ Found data query XML file at '/cacti/resource/script_queries/bind9-stats.xml'

Any help is appreciated. :)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please provide the full path to the perl binary and Clear Poller Cache afterwards
Reinhard
Hyperion
Posts: 16
Joined: Mon Aug 01, 2005 6:07 am

Post by Hyperion »

/usr/bin/perl

Cleared poller cache, still the same.
phoenix
Posts: 27
Joined: Thu Aug 19, 2004 3:18 pm

Post by phoenix »

Hyperion wrote:/usr/bin/perl

Cleared poller cache, still the same.
I think lvm meant change the script and/or xml files to include the full path to perl.
Regards


Bill
twosmokes
Posts: 1
Joined: Fri Mar 03, 2006 1:58 pm

Post by twosmokes »

I can't get the bind9-snmp-stats.pl script I downloaded from http://www.bayour.com/bind9-snmp/ to run.

I don't get any errors. It just sits there running forever. The debug file ends up empty.

I downloaded an older version, 1.5, and while output is now in the debug file, the script still just sits there. The last thing in the debug file is:

2006-03-03 14:03:02 load_information: domain='localhost' (243)

Has anyone else seen this type of behavior with the script?

Thanks.
mader
Posts: 3
Joined: Thu Mar 09, 2006 9:08 am

Post by mader »

Same situation it hangs for ever :( Haven't tried 1.5 yet. Perl version is 5.8.0

If you change line nubmer 50 in bind9-snmp-stats.pl from

$CFG{'DEBUG'} = get_config('DEBUG');
to
$CFG{'DEBUG'} = get_config($CFG_FILE,'DEBUG');

script writes debug information to file but still hangs.
In my case last debug text is
2006-03-15 20:24:24 load_information: domain='123.ru' (14)
mader
Posts: 3
Joined: Thu Mar 09, 2006 9:08 am

Post by mader »

Got it. It should hang when executed from the shell :) snmpwalk works perfect. Debug output is fixed. Everything is working now
Nickodemious
Posts: 1
Joined: Wed Apr 05, 2006 1:01 am

Post by Nickodemious »

bpenland wrote:I've been able to get the configuration setup for SNMP and am able to query the data through SNMPwalk. I am not able to get the configuration together in Cacti though. It seems as though my data source is never added to the poller to have data gathered.

I'm running cacti 0.8.5a.

Any help is appreciated.

Anyone else having this issue, too? Same problem, its not creating the rrd and is not being added to the poller. I have flushed the poller cache, no luck. Running 0.8.6h.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please run ONE polling cycle using Settings->Logging Level = DEBUG and find the SNMP OID in log/cacti.log. Pleae post that snippet
Reinhard
Arno74
Posts: 1
Joined: Fri Apr 07, 2006 3:35 am

Bind9 Statistics cacti newbee

Post by Arno74 »

Hello

I am having some trouble to get the bind9 statistic through cacti working.

I am newbee and tried to understand why it cannot go through.

Tracing port 161 on my dns I can see snmp request for bind9 statistic but it seems the MIB is not loaded (.8767.)
I did follow the README and did investigate the way MIBS are supposed to be loaded but ... no success

Verbode query gives:
+ Running data query [11].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/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 '/var/www/html/cacti/resource/snmp_queries/bind9-stats_domains.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/bind9-stats_domains.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/bind9-stats_domains.xml'


tcpdump gives:
09:47:59.586825 IP xxxxxxx.32890 > xxxxxxxxxx.snmp: GetNextRequest(31) E:8767.2.1.3.1
09:47:59.605608 IP xxxxxxxx.snmp > xxxxxxxxxxx.32890: GetResponse(34) S:1.1.6.1.0=1855902756

snmpwalk gives the same issue for .1.3.6.1.4.1.8767.2.1.4.1 when snmp request for interface or system info is working.

How can I check the BAYOUR MIB is loaded ?

I am running FC4 , net-snmp-5.2.1-12, perl-5.8.6-15, cacti-0.8.6h, rrdtool-1.0.50

Thanks for your help

BR
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Bind9 Statistics cacti newbee

Post by gandalf »

Arno74 wrote:Hello

I am having some trouble to get the bind9 statistic through cacti working.

I am newbee and tried to understand why it cannot go through.

Tracing port 161 on my dns I can see snmp request for bind9 statistic but it seems the MIB is not loaded (.8767.)
cacti does not reply on MIBs but on ASN.1 OIDs only (that is the numerical representation, kinda .1.3.6.1.2. and..so..on) That is what you've found in the trace. So don't worry about the MIB files. You may run an snmpwalk using this very OID against your target to get the results at cli level. Post your findings if in doubt
Reinhard
tomasperez
Posts: 37
Joined: Tue Apr 11, 2006 11:10 am

Post by tomasperez »

Ok, I am having an issue getting this working. Things on dns server side look good:

snmpwalk -v 2c -c communitystring x.x.x.x .1.3.6.1.4.1.2021.55
UCD-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: 16076249
UCD-SNMP-MIB::ucdavis.55.4.1 = INTEGER: 14171
UCD-SNMP-MIB::ucdavis.55.5.1 = INTEGER: 2014029
UCD-SNMP-MIB::ucdavis.55.6.1 = INTEGER: 244731
UCD-SNMP-MIB::ucdavis.55.7.1 = INTEGER: 9588
UCD-SNMP-MIB::ucdavis.55.8.1 = INTEGER: 154517


I have imported the
cacti_data_query_bind_9_statistics_snmp.xml
and cp snmp/bind9-stats-snmp.xml CACTI_HOME/resource/snmp_queries/.

When I turn graph on in debug, I get the following error:
RRDTool Says:


ERROR: opening '/usr/local/www/apache22/data/cacti/rra/dns01_success_648.rrd': No such file or directory


I have manually run the poller and still get hte problem. I let it sit overnight, still nothing. What am I doing wrong?

I have setup ~650 other graphs and have had no problems up to this point.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests