BIND 9 Statistics for Cacti
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Is this Mandrin or Cantonese?
TheWitness
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?
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?
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.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.
Thanks for any help.
Dan
I am having the same problem.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?
$ 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+) (.*)$/) {
problem solved
Problem solved.
My cacti was installed without snmp "USE FLAG" in Gentoo.
My cacti was installed without snmp "USE FLAG" in Gentoo.
-
- Posts: 3
- Joined: Wed Nov 24, 2004 8:24 pm
Re: problem solved
hi,alekiv!alekiv wrote:Problem solved.
My cacti was installed without snmp "USE FLAG" in Gentoo.
Where to change the "USE FLAG"? Could you mind showing your details? I find my probliem is same of yours.
thanks.
Re: problem solved
forrestrun wrote:hi,alekiv!alekiv wrote:Problem solved.
My cacti was installed without snmp "USE FLAG" in Gentoo.
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
[ebuild R ] net-analyzer/cacti-0.8.6b -snmp -vhosts 0 kB[/code]
-
- Posts: 7
- Joined: Thu Dec 02, 2004 10:16 am
Strange results in catci.log
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.
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.
-
- Posts: 12
- Joined: Fri Dec 17, 2004 5:13 am
- Location: wiltshire, england
- Contact:
sorry to bring this back up again, but I am totally stuck .
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
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
no data from bind9-stats-snmpd.pl
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....
+ 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....
Re: BIND 9 Statistics for Catci
I follow instruction for added statistic (local) for my DNS server, butcpowers 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 can't enable host graph.
i see in device section:
Code: Select all
MyName Unknown MyHost 0 0 100%
Who is online
Users browsing this forum: No registered users and 3 guests