|
|
| Author |
Message |
his_royal_evilness
Joined: 06 Mar 2005 Posts: 2
|
Posted: Sun Mar 06, 2005 3:46 pm Post subject: |
|
|
does anybody know how to get different stats from each zone?
all my zones have the same output now :S |
|
| Back to top |
|
 |
X-Frog
Joined: 16 Mar 2004 Posts: 1 Location: Montreal, Qc, Canada
|
Posted: Tue Mar 15, 2005 4:18 pm Post subject: |
|
|
just put this in your named.conf in the options:
zone-statistics yes;
restart bind, and here we go  |
|
| Back to top |
|
 |
turbo
Joined: 12 Apr 2005 Posts: 2 Location: Gothenburg
|
Posted: Tue Apr 12, 2005 9:00 am Post subject: Indexed Bind9 SNMP Statistics |
|
|
I've been rewriting a perl script by Dobrica Pavlinusic (which used 'rndc stats\
') to output a indexed SNMP table.
With this came some serious thinking on how a MIB is written and how Cacti (v0.\
8.6c) should be setup to utilize this.
I can finaly release what I did (I'm waiting for confirmation on the subscripti\
on of the cacti user list so I can announce it there to).
I'm not perfectly happy about the actuall graph output. I'm not sure if that's \
how it should look, so take the XML template with a bucket of salt
http://www.bayour.com/bind9-snmp/
(also see the reply on the other thread: http://forums.cacti.net/viewtopic.php?p=29054#29054) |
|
| Back to top |
|
 |
rayvd
Joined: 18 Apr 2005 Posts: 6 Location: Chico, CA
|
Posted: Mon Apr 18, 2005 6:25 pm Post subject: |
|
|
Having some problems with your script, turbo... confused initially by the presence of multiple bind9-stats.* files in the tgz file... ended up just using the one in the directory listing at the URL.
When importing cacti_data_query_snmp_local_bind9_statistics.xml, I get dependency errors:
+ Unmet Dependency: (Data Input Method) Get SNMP Data (Indexed)
+ Unmet Dependency: (Data Input Field) Output Type ID
+ Unmet Dependency: (Data Input Field) Index Value
+ Unmet Dependency: (Data Input Field) Index Type
+ Unmet Dependency: (Data Input Field) SNMP Version (1, 2, or 3)
+ Unmet Dependency: (Data Input Field) SNMP Password (v3)
+ Unmet Dependency: (Data Input Field) SNMP Username (v3)
+ Unmet Dependency: (Data Input Field) SNMP Community
+ Unmet Dependency: (Data Input Field) SNMP IP Address
I tried both the xml file in the directory listing at the URL above, as well as the one in the .tgz file at the URL above (v1.1). |
|
| Back to top |
|
 |
cactus_jack
Joined: 11 Apr 2005 Posts: 29
|
Posted: Wed Apr 20, 2005 9:25 am Post subject: |
|
|
| Can anyone tell me what the Global graph represents, is it a total number queries for you DNS server? Thanks everyone in advance |
|
| Back to top |
|
 |
cactus_jack
Joined: 11 Apr 2005 Posts: 29
|
Posted: Wed Apr 20, 2005 9:39 am Post subject: |
|
|
| Also, My recurrsion and refferal queries aren't showing up. Can anyone give me hint as to why? |
|
| Back to top |
|
 |
havok1977
Joined: 08 Apr 2005 Posts: 32 Location: Mexico City
|
Posted: Wed Apr 20, 2005 1:57 pm Post subject: rndc works, but rndc stats doesnt |
|
|
Hey every1,
Im having a little trouble getting statistics from my BIND 9.2.4rc5 running on a Debian Testing server, i got rndc to work:
metrolinux:/etc/bind# rndc status
number of zones: 7
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
server is up and running
But when i try to get the stats i get this:
metrolinux:/etc/bind# rndc stats
rndc: 'stats' failed: permission denied
Here are the named.conf and rndc.conf extracts:
# Start of named.conf
options {
directory "/var/cache/bind";
zone-statistics yes;
statistics-file "/var/cache/bind/named.stats";
auth-nxdomain no; # conform to RFC1035
}
key "rndc-key" {
algorithm hmac-md5;
secret "XXXXXXXXXXXXXXXXXX";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
# End of named.conf
# Start of rndc.conf
key "rndc-key" {
algorithm hmac-md5;
secret "XXXXXXXXXXXXXXXXX";
};
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
# End of rndc.conf
I have searched the web with google for a while, but to no avail, any ideas? |
|
| Back to top |
|
 |
bleearg
Joined: 27 Apr 2005 Posts: 45
|
Posted: Fri Apr 29, 2005 12:42 pm Post subject: |
|
|
| So does anyone know what's up with the bayour.com bind9 stats package?The .tgz file does not contain all the files that are mentioned in the README and the imports of the .xml files elicit "Unset Dependency" errors. |
|
| Back to top |
|
 |
hapklaar
Joined: 31 May 2005 Posts: 10
|
Posted: Wed Jun 01, 2005 8:21 am Post subject: |
|
|
bumping up
Having the same unmet dependecies.
Here
Cacti has imported the following items:
Data Template
[success] SNMP - Local - Bind9 Statistics [new]
+ Unmet Dependency: (Data Input Method) Get SNMP Data (Indexed)
+ Unmet Dependency: (Data Input Field) Output Type ID
+ Unmet Dependency: (Data Input Field) Index Value
+ Unmet Dependency: (Data Input Field) Index Type
+ Unmet Dependency: (Data Input Field) SNMP Version (1, 2, or 3)
+ Unmet Dependency: (Data Input Field) SNMP Password (v3)
+ Unmet Dependency: (Data Input Field) SNMP Username (v3)
+ Unmet Dependency: (Data Input Field) SNMP Community
+ Unmet Dependency: (Data Input Field) SNMP IP Address
Graph Template
[success] SNMP - Local - Bind9 Statistics [update]
+ Found Dependency: (Data Template Item) bind9_total
+ Unmet Dependency: (GPRINT Preset) Normal
+ Found Dependency: (Data Template Item) bind9_forward
+ Found Dependency: (Data Template Item) bind9_reverse
Data Query
[success] SNMP - Local - Bind9 Statistics [update]
+ Unmet Dependency: (Data Input Method) Get SNMP Data (Indexed)
+ Found Dependency: (Graph Template) SNMP - Local - Bind9 Statistics
+ Found Dependency: (Data Template) SNMP - Local - Bind9 Statistics
+ Found Dependency: (Data Template Item) bind9_total
+ Found Dependency: (Data Template Item) bind9_forward
+ Found Dependency: (Data Template Item) bind9_reverse |
|
| Back to top |
|
 |
bitpusher
Joined: 18 Jan 2005 Posts: 26
|
Posted: Sun Jun 19, 2005 4:20 pm Post subject: Broken? |
|
|
I too am atempting to get these scripts working, and am failing miserably.
Any help would be appreciated. |
|
| Back to top |
|
 |
yuzan
Joined: 11 Jul 2005 Posts: 2
|
Posted: Mon Jul 11, 2005 5:39 am Post subject: |
|
|
I also have some problem.
Who can help me?
cacti 0.8.6f
import below file
cacti_data_query_snmp_local_bind9_statistics_domains.xml
cacti_data_query_snmp_local_bind9_statistics_totals.xml
| Code: | Data Template
[success] SNMP - Local - Bind9 Statistics [new]
+ Unmet Dependency: (Data Input Method) Get SNMP Data (Indexed)
+ Unmet Dependency: (Data Input Field) Output Type ID
+ Unmet Dependency: (Data Input Field) Index Value
+ Unmet Dependency: (Data Input Field) Index Type
+ Unmet Dependency: (Data Input Field) SNMP Version (1, 2, or 3)
+ Unmet Dependency: (Data Input Field) SNMP Password (v3)
+ Unmet Dependency: (Data Input Field) SNMP Username (v3)
+ Unmet Dependency: (Data Input Field) SNMP Community
+ Unmet Dependency: (Data Input Field) SNMP IP Address
Graph Template
[success] SNMP - Local - Bind9 Statistics [update]
+ Found Dependency: (Data Template Item) bind9_total
+ Unmet Dependency: (GPRINT Preset) Normal
+ Found Dependency: (Data Template Item) bind9_forward
+ Found Dependency: (Data Template Item) bind9_reverse
Data Query
[success] SNMP - Local - Bind9 Statistics [update]
+ Unmet Dependency: (Data Input Method) Get SNMP Data (Indexed)
+ Found Dependency: (Graph Template) SNMP - Local - Bind9 Statistics
+ Found Dependency: (Data Template) SNMP - Local - Bind9 Statistics
+ Found Dependency: (Data Template Item) bind9_total
+ Found Dependency: (Data Template Item) bind9_forward
+ Found Dependency: (Data Template Item) bind9_reverse |
| Code: | Data Query Debug Information
+ Running data query [15].
+ Unknown type = ''
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/bind9-stats_domains.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/bind9-stats_domains.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/bind9-stats_domains.xml' |
|
|
| Back to top |
|
 |
yuzan
Joined: 11 Jul 2005 Posts: 2
|
|
| Back to top |
|
 |
RattleSn@ke
Joined: 10 Aug 2004 Posts: 17
|
Posted: Mon Jul 25, 2005 2:16 am Post subject: Re: rndc works, but rndc stats doesnt |
|
|
| havok1977 wrote: |
(...)
But when i try to get the stats i get this:
metrolinux:/etc/bind# rndc stats
rndc: 'stats' failed: permission denied
(...)
statistics-file "/var/cache/bind/named.stats";
(...)
I have searched the web with google for a while, but to no avail, any ideas? |
I first did get the error 'stats' failed: file not found.
This was due the fact that I pointed the statistics-file to a directory that didn't exist. So your problem is with the permissions on /var/cache/bind/ !!
My stats dir is owned by named, group root: permissions are 775
I would suggest that you take a close look at your directory permissions.
Greetz!
RattleSn@ke |
|
| Back to top |
|
 |
RattleSn@ke
Joined: 10 Aug 2004 Posts: 17
|
Posted: Mon Jul 25, 2005 2:46 am Post subject: |
|
|
Hello,
Ok, I tried again to get the scripts working!
First I'm trying to get the local version to work. So I did everything according to the INSTALL file.
Now I added the datasource to a device and then I get this:
| Code: | Data Query Debug Information
+ Running data query [13].
+ Found type = '4 '[script query].
+ Found data query XML file at '/www/cacti/resource/script_queries/bind9-stats.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'perl /www/cacti/scripts/bind9-stats.pl index'
+ Executing script query 'perl /www/cacti/scripts/bind9-stats.pl query zone'
+ Found data query XML file at '/www/cacti/resource/script_queries/bind9-stats.xml'
+ Found data query XML file at '/www/cacti/resource/script_queries/bind9-stats.xml'
+ Found data query XML file at '/www/cacti/resource/script_queries/bind9-stats.xml'
|
And I get this as data query status: Success [0 Items, 0 Rows]
So when I try to create a graphic, it won't let me because there is no data!
| Code: | | This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information |
Manually running the bind9-stats.pl index and bind9-stats.pl guery zone commands do return results.
First command returns things like:
GLOBAL
domain_1.ext
domain_2.ext
domain_3.ext
and the second command returns:
GLOBAL:GLOBAL
domain_1.ext:domain_1.ext
domain_2.ext:domain_2.ext
domain_3.ext:domain_3.ext
Is this ok??
Any help is welcome! |
|
| Back to top |
|
 |
mmille57
Joined: 15 Aug 2005 Posts: 1
|
Posted: Thu Aug 18, 2005 3:47 pm Post subject: |
|
|
| Anonymous wrote: | I'm having some strange issues with SNMP..
once in a while i'll get the full read out with snmpwalk, but most of the time i just get an abbreviated one:
oberon:/usr/bin# snmpwalk -Os -v 1 -c community localhost .1.3.6.1.4.1.2021.55
ucdavis.55.1.1 = INTEGER: 1
ucdavis.55.2.1 = STRING: "GLOBAL"
ucdavis.55.3.1 = INTEGER: 109
ucdavis.55.4.1 = INTEGER: 0
ucdavis.55.5.1 = INTEGER: 15
any idea why this could be happening?
is this an issue with my snmpd setup?
-d |
Did you ever get a reply. I've got the same issue.
running netsnmp 5.1.1 perl 5.8.7 sol 9. |
|
| Back to top |
|
 |
|