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






PostPosted: Tue Jun 15, 2004 10:23 pm    Post subject: Reply with quote

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






PostPosted: Sat Jul 17, 2004 9:08 am    Post subject: Reply with quote

I am looking for the same information as the previous posters.
Back to top
rmcclain
Guest





PostPosted: Thu Sep 16, 2004 9:53 pm    Post subject: Reply with quote

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*$/)
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Fri Sep 17, 2004 8:32 am    Post subject: Reply with quote

Is this Mandrin or Cantonese?

TheWitness
Back to top
someguy
Guest





PostPosted: Fri Sep 24, 2004 11:23 am    Post subject: Reply with quote

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 ====
Back to top
cpdans



Joined: 28 Oct 2002
Posts: 43

PostPosted: Wed Oct 27, 2004 9:12 pm    Post subject: Reply with quote

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
Back to top
alekiv



Joined: 23 Nov 2004
Posts: 10

PostPosted: Tue Nov 23, 2004 8:41 am    Post subject: Reply with quote

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:

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?
Back to top
alekiv



Joined: 23 Nov 2004
Posts: 10

PostPosted: Wed Nov 24, 2004 4:12 am    Post subject: problem solved Reply with quote

Problem solved.
My cacti was installed without snmp "USE FLAG" in Gentoo.
Back to top
forrestrun



Joined: 24 Nov 2004
Posts: 3

PostPosted: Fri Nov 26, 2004 3:05 am    Post subject: Re: problem solved Reply with quote

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






PostPosted: Fri Nov 26, 2004 4:54 am    Post subject: Re: problem solved Reply with quote

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:

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]
Back to top
mtimbroims



Joined: 02 Dec 2004
Posts: 7

PostPosted: Thu Dec 02, 2004 11:30 am    Post subject: Strange results in catci.log Reply with quote

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






PostPosted: Thu Dec 09, 2004 10:34 am    Post subject: Reply with quote

I have the same fault.

Anyone Help?
Anyone fix this problem?

Grtz Arjan
Back to top
iwasinnamuknow



Joined: 17 Dec 2004
Posts: 6
Location: wiltshire, england

PostPosted: Fri Dec 17, 2004 5:19 am    Post subject: Reply with quote

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
Back to top
pprice



Joined: 15 Feb 2005
Posts: 2

PostPosted: Tue Feb 15, 2005 11:52 am    Post subject: no data from bind9-stats-snmpd.pl Reply with quote

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



Joined: 01 Mar 2005
Posts: 1

PostPosted: Tue Mar 01, 2005 5:09 am    Post subject: Re: BIND 9 Statistics for Catci Reply with quote

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/bind9-stats-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:
MyName  Unknown  MyHost  0  0  100% 
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, ... 10, 11, 12  Next
Page 2 of 12

 



Powered by phpBB © 2001, 2005 phpBB Group