BIND 9 Statistics for Cacti

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

Moderators: Developers, Moderators

Post Reply
Guest

Post by Guest »

I've setup the scripts & snmp bits for this, but when I go to create a graph for BIND under a host, it's asking for Index Type, Index Value, and Output Type ID. What is supposed to be in those fields?

Thanks.
Guest

Post by Guest »

I am looking for the same information as the previous posters.
rmcclain

Post by rmcclain »

If anyone is still having problems with this, change the line in bind9-stats-snmpd.pl that says:
(/^([^\s]+) (\d+)\s*$/)
to say
(/^([^\w]+) (\d+)\s*$/)
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Is this Mandrin or Cantonese? :wink:

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
someguy

Post by someguy »

For those of you who had problems finding:

(/^([^\s]+) (\d+)\s*$/)

It's on line 94


==== SNIP ====

next if /^\s*$/;
if (/^([^\s]+) (\d+)\s*$/) {
$INDEX=1;

==== SNIP ====
cpdans
Posts: 43
Joined: Mon Oct 28, 2002 7:59 am

Post by cpdans »

Anonymous wrote:I've setup the scripts & snmp bits for this, but when I go to create a graph for BIND under a host, it's asking for Index Type, Index Value, and Output Type ID. What is supposed to be in those fields?

Thanks.
I am having the same problem. I did make the change to the .pl file that was listed above. I still get the same thing.

Thanks for any help.

Dan
alekiv
Posts: 10
Joined: Tue Nov 23, 2004 8:30 am

Post by alekiv »

Anonymous wrote:I've setup the scripts & snmp bits for this, but when I go to create a graph for BIND under a host, it's asking for Index Type, Index Value, and Output Type ID. What is supposed to be in those fields?
I am having the same problem.

$ snmpwalk -v 1 -c public localhost .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: 17981695
UCD-SNMP-MIB::ucdavis.55.4.1 = INTEGER: 2565596
UCD-SNMP-MIB::ucdavis.55.5.1 = INTEGER: 27734106
UCD-SNMP-MIB::ucdavis.55.6.1 = INTEGER: 13495226
UCD-SNMP-MIB::ucdavis.55.7.1 = INTEGER: 3317894
UCD-SNMP-MIB::ucdavis.55.8.1 = INTEGER: 7824513


bind9-stats-snmpd.pl:

Code: Select all

line92: next if /^[\-\+]/;
line93:                next if /^\s*$/;
line94:                if (/^([^\s]+) (\d+)\s*$/) {
line95:                        $INDEX=1;
line96:                        $COUNT_ID=$count_ids{$1};
line97:                        $VALUE=$2;
line98:                }elsif (/^([^\s]+) (\d+) (.*)$/) {
Do i need change something in script?
alekiv
Posts: 10
Joined: Tue Nov 23, 2004 8:30 am

problem solved

Post by alekiv »

Problem solved.
My cacti was installed without snmp "USE FLAG" in Gentoo.
forrestrun
Posts: 3
Joined: Wed Nov 24, 2004 8:24 pm

Re: problem solved

Post by forrestrun »

alekiv wrote:Problem solved.
My cacti was installed without snmp "USE FLAG" in Gentoo.
hi,alekiv!
Where to change the "USE FLAG"? Could you mind showing your details? I find my probliem is same of yours.
thanks.
Guest

Re: problem solved

Post by Guest »

forrestrun wrote:
alekiv wrote:Problem solved.
My cacti was installed without snmp "USE FLAG" in Gentoo.
hi,alekiv!
Where to change the "USE FLAG"? Could you mind showing your details? I find my probliem is same of yours.
thanks.

Code: Select all

homenet root # emerge -pv cacti
[ebuild   R   ] net-analyzer/cacti-0.8.6b  +snmp -vhosts 0 kB
and before that was:
[ebuild R ] net-analyzer/cacti-0.8.6b -snmp -vhosts 0 kB[/code]
mtimbroims
Posts: 7
Joined: Thu Dec 02, 2004 10:16 am

Strange results in catci.log

Post by mtimbroims »

12/02/2004 11:25:04 AM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Resu
lt:
12/02/2004 11:25:04 AM - CMDPHP: Poller[0] Host[1] CMD: perl /var/www/html/cacti/scripts/bind9-stats
.pl getall GLOBAL, output: U

Every other process that gets checked returns something in the output string but bind9-stats returns "U"...Does that mean unavailable ? I can see my named.stats file with info in it...

Any help is greatly appreciated.
Guest

Post by Guest »

I have the same fault.

Anyone Help?
Anyone fix this problem?

Grtz Arjan
iwasinnamuknow
Posts: 12
Joined: Fri Dec 17, 2004 5:13 am
Location: wiltshire, england
Contact:

Post by iwasinnamuknow »

sorry to bring this back up again, but I am totally stuck :o.

I have setup bind9 stats via snmp with cacti, the snmp query works, the rrd file is being updated with all the others, but I get 0.00 for everything.

snmpwalk shows something like this:

UCD-SNMP-MIB::ucdavis.55.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.55.1.2 = INTEGER: 2
UCD-SNMP-MIB::ucdavis.55.1.3 = INTEGER: 3
UCD-SNMP-MIB::ucdavis.55.1.4 = INTEGER: 4
UCD-SNMP-MIB::ucdavis.55.1.5 = INTEGER: 5
UCD-SNMP-MIB::ucdavis.55.1.6 = INTEGER: 6
UCD-SNMP-MIB::ucdavis.55.2.1 = STRING: "GLOBAL"
UCD-SNMP-MIB::ucdavis.55.2.2 = STRING: "0.0.127.in-addr.arpa"
UCD-SNMP-MIB::ucdavis.55.2.3 = STRING: "genestate.com"
UCD-SNMP-MIB::ucdavis.55.2.4 = STRING: "colerneamateuroperatics.org"
UCD-SNMP-MIB::ucdavis.55.2.5 = STRING: "pants-o-matic.org"
UCD-SNMP-MIB::ucdavis.55.2.6 = STRING: "fingertron.com"
UCD-SNMP-MIB::ucdavis.55.3.1 = INTEGER: 903
UCD-SNMP-MIB::ucdavis.55.3.2 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.3.3 = INTEGER: 486
UCD-SNMP-MIB::ucdavis.55.3.4 = INTEGER: 2
UCD-SNMP-MIB::ucdavis.55.3.5 = INTEGER: 70
UCD-SNMP-MIB::ucdavis.55.3.6 = INTEGER: 345
UCD-SNMP-MIB::ucdavis.55.4.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.4.2 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.4.3 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.4.4 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.4.5 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.4.6 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.5.1 = INTEGER: 19
UCD-SNMP-MIB::ucdavis.55.5.2 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.5.3 = INTEGER: 19
UCD-SNMP-MIB::ucdavis.55.5.4 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.5.5 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.5.6 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.6.1 = INTEGER: 84
UCD-SNMP-MIB::ucdavis.55.6.2 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.6.3 = INTEGER: 81
UCD-SNMP-MIB::ucdavis.55.6.4 = INTEGER: 2
UCD-SNMP-MIB::ucdavis.55.6.5 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.6.6 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.55.7.1 = INTEGER: 6
UCD-SNMP-MIB::ucdavis.55.7.2 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.7.3 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.7.4 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.7.5 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.7.6 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.8.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.8.2 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.8.3 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.8.4 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.8.5 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.8.6 = INTEGER: 0

i have tried to graph all domains except for local stub but they are
all blank.

Any ideas will be welcomed

mat
pprice
Posts: 2
Joined: Tue Feb 15, 2005 11:45 am

no data from bind9-stats-snmpd.pl

Post by pprice »

I'm having the same problem:
+ Running data query [11].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/apache/htdocs/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'
+ No SNMP data returned
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/bind9-stats-snmp.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/bind9-stats-snmp.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/bind9-stats-snmp.xml'

Freebsd 4.8
Perl 5.005_03

If I use the test.sh example listed in an earlier message here, I can snmpwalk the data. Not so with bind9-stats-snmpd.pl

The oidstats() routine is the last thing printed if I set DEBUG 1

My named.stats file is being written and is readable

There appears to be something wrong with bind9-stats-snmpd.pl but I'm not a Perl programmer....
Aseroth
Posts: 1
Joined: Tue Mar 01, 2005 5:06 am

Re: BIND 9 Statistics for Catci

Post by Aseroth »

cpowers wrote:
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/bi ... 1.0.tar.gz

Please provide any feedback to me directly at cory@uversaconsulting.net
I follow instruction for added statistic (local) for my DNS server, but
i can't enable host graph.

i see in device section:

Code: Select all

MyName  Unknown  MyHost  0  0  100%  
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests