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 1, 2, 3 ... 10, 11, 12  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
cpowers



Joined: 05 Jan 2004
Posts: 2

PostPosted: Mon Jan 05, 2004 12:18 pm    Post subject: BIND 9 Statistics for Cacti Reply with quote

I have created an addon that will enable Cacti to create graphs on BIND 9 statistics. This package can be setup to retrieve the statistics remotely via SNMP or locally via a script.

I have provided complete instructions and Cacti templates in the package so installation is very easy.

You can download the package at http://uversaconsulting.net/download/bind9-stats-1.0.tar.gz

Please provide any feedback to me directly at cory@uversaconsulting.net
Back to top
mneddy



Joined: 13 Feb 2004
Posts: 4

PostPosted: Fri Feb 13, 2004 3:30 pm    Post subject: RH 9 fails to show any graphs Reply with quote

Hello guys, has anyone got it working on RH 9 with Perl 5.8.0
I spoke to the guy who made the script and he said that the problem reported with the version of Perl that RH 9 is using. For me to upgrade 12 servers to the Perl 5.8.0 would be a huge hasle. Please reply to mneddy@REMOVEkleyn.net with any suggestions.
Thank you
Back to top
mneddy



Joined: 13 Feb 2004
Posts: 4

PostPosted: Tue Feb 17, 2004 2:18 pm    Post subject: No replies? Reply with quote

Hmm, seems like nobody is using that addon with RH 9 or RHEL 3.
Back to top
shorvath
Guest





PostPosted: Fri Mar 05, 2004 10:18 am    Post subject: Bind and dodgy perl version... Reply with quote

Does anyone have a solution here.
This is the first reasonably straight forward solution I have seen for graphing bind with SNMP. It is a pity that this is the cause....
Back to top
skol



Joined: 10 Nov 2003
Posts: 29
Location: Charlotte, NC

PostPosted: Fri Mar 05, 2004 11:07 am    Post subject: much better bind9 graphing solution Reply with quote

just use a script that parses the output of rndc stats which dumps the named.stats file.

Code:

#!/bin/bash

if [ -z "$2" ] ; then
        echo "usage: $0 [nameserver] [request type]"
        exit 1
fi

> /var/named.$1/named.stats

# get the last octect of the loopback interface for the specified
# nameserver
DIRECTORY=`grep directory /etc/named.$1.conf | perl -pe 's/^.*directory (.*);$/$1/'`
LOIFLASTOCT=`grep 'inet 127\.0\.0' /etc/named.$1.conf  | perl -pe 's/^.*inet 127\.0\.0\.([0-9]+) .*$/$1/'`
LOIF="127.0.0.$LOIFLASTOCT"

# zero out any old stats files
rm -f $DIRECTORY/named.stats

# generate new stats
/usr/sbin/rndc -s $LOIF stats

grep "^$2 " /var/named.$1/named.stats | perl -pe 's/^.* ([0-9]+)$/$1/'


But, you'll have to modifiy it some to fit your architecture, and you can use the exec function of /etc/snmp.conf to query the script :

Code:

exec .1.3.6.1.4.1.15102.1.2.1.3.3.1 ns /usr/share/snmp/plugins/namestats ns success
exec .1.3.6.1.4.1.15102.1.2.1.3.3.2 ns /usr/share/snmp/plugins/namestats ns referral
exec .1.3.6.1.4.1.15102.1.2.1.3.3.3 ns /usr/share/snmp/plugins/namestats ns nxrrset
exec .1.3.6.1.4.1.15102.1.2.1.3.3.4 ns /usr/share/snmp/plugins/namestats ns nxdomain
exec .1.3.6.1.4.1.15102.1.2.1.3.3.5 ns /usr/share/snmp/plugins/namestats ns recursion
exec .1.3.6.1.4.1.15102.1.2.1.3.3.6 ns /usr/share/snmp/plugins/namestats ns failure
exec .1.3.6.1.4.1.15102.1.2.1.3.3.7 ns /usr/share/snmp/plugins/namestats ns query-a
exec .1.3.6.1.4.1.15102.1.2.1.3.3.8 ns /usr/share/snmp/plugins/namestats ns query-ns
exec .1.3.6.1.4.1.15102.1.2.1.3.3.9 ns /usr/share/snmp/plugins/namestats ns query-cname
exec .1.3.6.1.4.1.15102.1.2.1.3.3.10 ns /usr/share/snmp/plugins/namestats ns query-soa


again this was not wrote for everyone's network... so you'll have to fix it.
Back to top
mneddy



Joined: 13 Feb 2004
Posts: 4

PostPosted: Tue Mar 09, 2004 12:04 pm    Post subject: Re: Bind and dodgy perl version... Reply with quote

Recompiled Perl to 5.8.0 and everything works perfectly.

shorvath wrote:
Does anyone have a solution here.
This is the first reasonably straight forward solution I have seen for graphing bind with SNMP. It is a pity that this is the cause....
Back to top
shorvath
Guest





PostPosted: Sat Mar 13, 2004 4:26 am    Post subject: Perl 5.8.0 Reply with quote

Sorry, I don't follow.
I thought you said you had 5.8.0 installed and it didn't work.

I am using perl-5.8.0-88.3 on redhat 9 and it definitly doesn't work
When doing an snmpwalk all I get is the following:

UCD-SNMP-MIB::ucdavis.55.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.55.2.1 = STRING: "GLOBAL"
Thats it...
I would REALLY like to get this working
Back to top
Khan



Joined: 03 Nov 2003
Posts: 46
Location: Madtown, WI

PostPosted: Tue Mar 23, 2004 4:43 pm    Post subject: Re: BIND 9 Statistics for Catci Reply with quote

cpowers wrote:
I have created an addon that will enable Cacti to create graphs on BIND 9 statistics. This package can be setup to retrieve the statistics remotely via SNMP or locally via a script.

I have provided complete instructions and Cacti templates in the package so installation is very easy.

You can download the package at http://uversaconsulting.net/download/bind9-stats-1.0.tar.gz

Please provide any feedback to me directly at cory@uversaconsulting.net


Does anyone have a copy of this addon that they can upload here? I can't get a hold of Cory and the website is not responding. Thanks.
Back to top
skol



Joined: 10 Nov 2003
Posts: 29
Location: Charlotte, NC

PostPosted: Wed Mar 24, 2004 9:50 am    Post subject: Re: BIND 9 Statistics for Catci Reply with quote

Khan wrote:
cpowers wrote:
I have created an addon that will enable Cacti to create graphs on BIND 9 statistics. This package can be setup to retrieve the statistics remotely via SNMP or locally via a script.

I have provided complete instructions and Cacti templates in the package so installation is very easy.

You can download the package at http://uversaconsulting.net/download/bind9-stats-1.0.tar.gz

Please provide any feedback to me directly at cory@uversaconsulting.net


Does anyone have a copy of this addon that they can upload here? I can't get a hold of Cory and the website is not responding. Thanks.



bind9-stats-1.0.tar.gz
 Description:

Download
 Filename:  bind9-stats-1.0.tar.gz
 Filesize:  10.53 KB
 Downloaded:  3334 Time(s)

Back to top
Khan



Joined: 03 Nov 2003
Posts: 46
Location: Madtown, WI

PostPosted: Wed Mar 24, 2004 11:43 am    Post subject: Reply with quote

Thanks, skol.
Back to top
kalto
Guest





PostPosted: Wed Apr 07, 2004 8:50 pm    Post subject: Reply with quote

Well, just wanted to say that it's a great addon you made... it went quite well for me on one machine, but i can't get it to work on the other

I'm getting the data via snmp.
On machine 1 it works well, it's a FreeBSD 4.9 running a port made net-snmp.
On machine 2 tough, i can't get the data at all, it's a Slackware 9.1 running a compiled from source net-snmp.

I did everything the same on machine 1 and on machine 2, as i said, everything works fine on machine 1, but i get this on machine 2:

# snmpwalk -v 2c -c my_community_name machine_2 .1.3.6.1.4.1.2021.55
UCD-SNMP-MIB::ucdavis.55 = No Such Instance currently exists at this OID
(where my_community_name is what it says...)

I've checked everything i could think of... the crontab... files permission... snmpd.conf... i also did a "cat /usr/local/share/snmp/mibs/* | grep ucdavis" on both host to see if there was a difference between the mibs and there was none...

# snmpwalk -v 2c -c my_community_name machine_1 .1.3.6.1.4.1.2021
and
# snmpwalk -v 2c -c my_community_name machine_2 .1.3.6.1.4.1.2021
reports some difference, the most remarkable one being the fact that my bind stats aren't reported on machine 2....

both machine use perl 5.8.0

any1 got any clue? i'm kinda helpless...
Back to top
bpenland
Guest





PostPosted: Mon Apr 12, 2004 1:01 pm    Post subject: Reply with quote

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.
Back to top
cacti_newbie
Guest





PostPosted: Wed Apr 28, 2004 3:20 am    Post subject: Almost working! Reply with quote

Hello all,

I've managed to get everything working pretty much, but my graph is not showing any data - I can see that SNMP is working ok and rrds are being created / updated.

I'm running Redhat 9 with bind 9.2.1 and Perl 5.8.0 on my name server.

My Cacti server is Fedora Core 1 with Perl 5.8.3 and Cacti 0.8.5a.

I'm a newbie when it comes to Cacti - I only just heard of it yesterday. When snmpwalking, I also only get two values returned (like shorvath) - could this be why the graph is empty?

Any suggestions would be much appreciated! I've attached the graph that is generated.



graph_image.php.png
 Description:
This is my BIND graph
 Filesize:  3.69 KB
 Viewed:  58471 Time(s)

graph_image.php.png


Back to top
kiko84



Joined: 17 May 2004
Posts: 15

PostPosted: Fri May 21, 2004 5:49 am    Post subject: Zone : GLOBAL Reply with quote

hi,


I have just installed bin9 for Cacti. To generate the graph, there is a field that I don't understand:

Zone : GLOBAL ??

I have tried with the GLOBAL name nut I have no graph, "nan" in all legends.

Somebody can help me please ?

Regards.
Back to top
Guest






PostPosted: Thu May 27, 2004 10:27 pm    Post subject: Reply with quote

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
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 1, 2, 3 ... 10, 11, 12  Next
Page 1 of 12

 



Powered by phpBB © 2001, 2005 phpBB Group