Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


BIND 9 Statistics for Cacti
Goto page Previous  1, 2, 3, 4 ... 10, 11, 12  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
his_royal_evilness



Joined: 06 Mar 2005
Posts: 2

PostPosted: Sun Mar 06, 2005 3:46 pm    Post subject: Reply with quote

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

PostPosted: Tue Mar 15, 2005 4:18 pm    Post subject: Reply with quote

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

PostPosted: Tue Apr 12, 2005 9:00 am    Post subject: Indexed Bind9 SNMP Statistics Reply with quote

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

PostPosted: Mon Apr 18, 2005 6:25 pm    Post subject: Reply with quote

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

PostPosted: Wed Apr 20, 2005 9:25 am    Post subject: Reply with quote

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

PostPosted: Wed Apr 20, 2005 9:39 am    Post subject: Reply with quote

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

PostPosted: Wed Apr 20, 2005 1:57 pm    Post subject: rndc works, but rndc stats doesnt Reply with quote

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

PostPosted: Fri Apr 29, 2005 12:42 pm    Post subject: Reply with quote

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: 5

PostPosted: Wed Jun 01, 2005 8:21 am    Post subject: Reply with quote

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

PostPosted: Sun Jun 19, 2005 4:20 pm    Post subject: Broken? Reply with quote

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

PostPosted: Mon Jul 11, 2005 5:39 am    Post subject: Reply with quote

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

PostPosted: Mon Jul 11, 2005 9:38 pm    Post subject: [SOLVE] Reply with quote

Hi.

I found the below post.

It describe this problem and solve it.

http://sourceforge.net/mailarchive/message.php?msg_id=12222263


[/url]
Back to top
RattleSn@ke



Joined: 10 Aug 2004
Posts: 17

PostPosted: Mon Jul 25, 2005 2:16 am    Post subject: Re: rndc works, but rndc stats doesnt Reply with quote

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

PostPosted: Mon Jul 25, 2005 2:46 am    Post subject: Reply with quote

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

PostPosted: Thu Aug 18, 2005 3:47 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4 ... 10, 11, 12  Next
Page 3 of 12

 



Powered by phpBB © 2001, 2005 phpBB Group