Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Jun 25, 2017 2:05 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 61 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: BIND 9.7 host template
PostPosted: Wed Mar 14, 2012 9:17 pm 
Offline

Joined: Tue Sep 27, 2011 7:08 pm
Posts: 2
Location: Ohio
Hello,

First off, thanks for sharing/creating the script.

I have been able to get the script working within my environment and just wanted to share the steps I needed to take on an Ubuntu 10.04 64bit system. I imagine some of the steps may not be needed or overkill, but they are what I used to allow the Cacti box to query the BIND system through snmp. The steps below assumes you have SNMP setup and able to query other OIDs on the BIND system.

On the BIND system:

1) Ubuntu doesn't have the root setup by default. Create a password using your standard user account by "sudo passwd"
2) Log into to root with the new credentials and place the files in the /root/bin directory as in the original directions. I used SFTP to transfer the files over via OpenSSH.
3) Next, chmod +x and chmod 755 each file. (i.e. 755=overkill)
4) Add the line into snmpd.conf as the original directions state
5) Setup the snmp process to run as root. By default, it runs at snmpd. Modify the -u and -g parameters in /etc/default/snmpd from snmpd to root.
6) Remove the carriage returns on both of the files.

First, to verify if there are carriage returns (will display as <CR>), issue cat <filename> | perl –pe ‘s/\r/<CR>/’

There are many ways to do remove the <CR>, but I found launching vim and issuing a ":set ff=unix" to be the method that worked for me. The perl script did not work correctly on my system for some reason.

On the Cacti system:

7) Place the bind-stats.sh as recommended in the original directions.
8) Verify the user and group are correct for your system (mine needed set to root root).
9) chmod +x bind-stats.sh to make it executable
10) Remove the Carriage Returns on the bind-stats.sh script as we did in step 6.
11) Modify the bind-stats.sh file - community credentials should be updated with your systems community
12) Setup the device/graphs in Cacti.

Hopefully this helps someone. Thanks.


Top
 Profile  
 
 Post subject: Re: BIND 9.7 host template
PostPosted: Sat Apr 14, 2012 9:19 am 
Offline

Joined: Sat Apr 14, 2012 9:14 am
Posts: 2
Hey Guys,

Thanks for the template/script.

I've been loooking for one for a while that works.

Anyway, my output is:

Code:
root@web:/var/www/cacti# ./scripts/bind-stats.sh fr-01.get-sourced.net
a:89261 a6:149 aaaa:68153 any:374 cname:8 mx:2549 naptr:0 ns:858 ptr:8696 soa:21 spf:164 srv:58 txt:462 rsnx:500 rsfail:181 rserr:398 rsipv4qs:10 rsipv4rr:10 rsmismatch: rsqr:2 rsqt:1 rsrtt10:6783 rsrtt100500:2 rsrtt10100:6 rsrtt1600: rsrtt500800:1 rsrtt8001600:6 sockopen:28677 sockclosed:28674 sockbf:7 consest:26683 recverr:15


So I know it is working correctly. However, my graphs (shown below) Don't appear to match up with this data?

I'm not sure if I'm doing something wrong xD

If you require further information from me, Please just ask :)

Thanks,

Matt

Attachment:
File comment: queries
queries.png
queries.png [ 41.61 KiB | Viewed 6843 times ]

Attachment:
File comment: IO stats
iostats.png
iostats.png [ 29.34 KiB | Viewed 6843 times ]

Attachment:
File comment: rtt
rtt.png
rtt.png [ 26.87 KiB | Viewed 6843 times ]


Top
 Profile  
 
 Post subject: Re: BIND 9.7 host template
PostPosted: Tue Apr 17, 2012 1:27 am 
Offline
Cacti User
User avatar

Joined: Wed Nov 09, 2005 8:35 am
Posts: 240
Location: Timisoara, Romania
your output looks good, but you have less than 1 q/s

_________________
Check out my CACTI Templates


Top
 Profile  
 
 Post subject: Re: BIND 9.7 host template
PostPosted: Tue Apr 17, 2012 6:49 pm 
Offline

Joined: Sat Apr 14, 2012 9:14 am
Posts: 2
Weird, cause when i was tailing the messages - There were dns requests pretty much constantly.


Top
 Profile  
 
 Post subject: Re: BIND 9.7 host template
PostPosted: Thu May 10, 2012 12:15 pm 
Offline

Joined: Mon Dec 03, 2007 10:22 pm
Posts: 10
Hello,

Has anyone seen this issue? I have just setup this template and graph on two different servers and have seen the same result on this graph and other graphs in this template. I am not sure if its something wrong with the polling or that the servers are randomly getting nailed with the traffic that it shows, however it seems that has now happened twice on this graph the first time being almost double the size of this spike.

Anyone have any thoughts on how to eliminate or remedy this.
I am running the newest cacti 8.8a and fedora 14 and bind 9.7 on the servers.

Thanks for any help.
neodawg


Attachments:
graph.png
graph.png [ 55.42 KiB | Viewed 6805 times ]
Top
 Profile  
 
 Post subject: Re: BIND 9.7 host template
PostPosted: Thu May 10, 2012 12:21 pm 
Offline
Cacti User
User avatar

Joined: Wed Nov 09, 2005 8:35 am
Posts: 240
Location: Timisoara, Romania
bind was restarted, if you restard bind then the counters are messed, use killspike to remove the spike

_________________
Check out my CACTI Templates


Top
 Profile  
 
 Post subject: Re: BIND 9.7 host template
PostPosted: Thu May 10, 2012 12:43 pm 
Offline

Joined: Mon Dec 03, 2007 10:22 pm
Posts: 10
timi wrote:
bind was restarted, if you restard bind then the counters are messed, use killspike to remove the spike



Thanks,
Right after I posted I remembered something about a spike killer, so I just got that setup and installed. Now I am just waiting for it to run and remove the spikes.


Top
 Profile  
 
 Post subject: Re: BIND 9.7 host template
PostPosted: Sat Jun 23, 2012 12:18 pm 
Offline

Joined: Sat Jun 23, 2012 11:41 am
Posts: 2
Hello,

I also use this template and cacti is already graphing some stats but all the values are zero (see attachment). What do I wrong?

Regards,
Kokel


Attachments:
dns.png
dns.png [ 25.75 KiB | Viewed 6471 times ]
Top
 Profile  
 
 Post subject: Re: BIND 9.7 host template
PostPosted: Sun Jun 24, 2012 5:15 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
The printed values are rounded. The graphs show, that the number of queries is in the range << 1. So it is very likely, that numbers are rounded to 0. So I assume you're graphing a low usage dns
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: BIND 9.7 host template
PostPosted: Sun Jun 24, 2012 5:26 am 
Offline

Joined: Sat Jun 23, 2012 11:41 am
Posts: 2
Hmm,
ok, what means the "m" behind th values on y axis?
How can I modify this that the graph will show the current absolute values?

Regards,
Kokel


Top
 Profile  
 
 Post subject: Re: BIND 9.7 host template
PostPosted: Mon Jun 25, 2012 1:05 am 
Offline
Cacti User
User avatar

Joined: Wed Nov 09, 2005 8:35 am
Posts: 240
Location: Timisoara, Romania
mili or 10^-3

you can start by reading http://docs.cacti.net/manual:087

_________________
Check out my CACTI Templates


Top
 Profile  
 
 Post subject: Re: BIND 9.7 host template
PostPosted: Wed Jul 04, 2012 6:18 am 
Offline

Joined: Mon Aug 27, 2007 7:22 am
Posts: 32
Hmm, I don't really like the idea of running snmpd as root... I fixed the rndc.key problem by adding the snmp user to the bind group, but I still have the problem with removing the named.stats file.


Top
 Profile  
 
 Post subject: Re: BIND 9.7 host template
PostPosted: Wed Jul 04, 2012 3:02 pm 
Offline
Cacti User
User avatar

Joined: Wed Nov 09, 2005 8:35 am
Posts: 240
Location: Timisoara, Romania
sorry, I can't help you with linux related problems.

_________________
Check out my CACTI Templates


Top
 Profile  
 
 Post subject: Re: BIND 9.7 host template
PostPosted: Mon Oct 15, 2012 6:41 am 
Offline

Joined: Tue Jan 08, 2008 8:19 pm
Posts: 22
Hello,

i have added the script however i am getting the following errors

Code:
10/15/2012 07:40:07 PM - CMDPHP: Poller[0] Host[6] DS[53] CMD: /usr/share/cacti/site/scripts/bind-stats.sh 192.168.1.9, output: iso.3.6.1.4.1.18689.0.1.4.1.2.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115.1 = STRING: a:971 a6:0 aaaa:3 any:0 cname:0 mx:0 naptr:0 ns:133 ptr:1 soa:0 spf:0 srv:0 txt:0 rsnx:2 rsfail:4 rserr: rsipv4qs:922 rsipv4rr:911 rsmismatch: rsqr:18 rsqt:11 rsrtt10: rsrtt100500:186 rsrtt10100:716 rsrtt1600:2 rsrtt500800:4 rsrtt8001600:3 sockopen:924 sockclosed:922 sockbf: consest:922
10/15/2012 07:40:07 PM - CMDPHP: Poller[0] Host[6] DS[53] WARNING: Result from CMD not valid. Partial Result: iso.3.6.1.4.1.18689.
10/15/2012 07:40:07 PM - CMDPHP: Poller[0] Host[6] DS[51] CMD: /usr/share/cacti/site/scripts/bind-stats.sh 192.168.1.9, output: iso.3.6.1.4.1.18689.0.1.4.1.2.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115.1 = STRING: a:971 a6:0 aaaa:3 any:0 cname:0 mx:0 naptr:0 ns:133 ptr:1 soa:0 spf:0 srv:0 txt:0 rsnx:2 rsfail:4 rserr: rsipv4qs:922 rsipv4rr:911 rsmismatch: rsqr:18 rsqt:11 rsrtt10: rsrtt100500:186 rsrtt10100:716 rsrtt1600:2 rsrtt500800:4 rsrtt8001600:3 sockopen:924 sockclosed:922 sockbf: consest:922
10/15/2012 07:40:07 PM - CMDPHP: Poller[0] Host[6] DS[51] WARNING: Result from CMD not valid. Partial Result: iso.3.6.1.4.1.18689.
10/15/2012 07:40:07 PM - CMDPHP: Poller[0] Host[6] DS[52] CMD: /usr/share/cacti/site/scripts/bind-stats.sh 192.168.1.9, output: iso.3.6.1.4.1.18689.0.1.4.1.2.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115.1 = STRING: a:971 a6:0 aaaa:3 any:0 cname:0 mx:0 naptr:0 ns:133 ptr:1 soa:0 spf:0 srv:0 txt:0 rsnx:2 rsfail:4 rserr: rsipv4qs:922 rsipv4rr:911 rsmismatch: rsqr:18 rsqt:11 rsrtt10: rsrtt100500:186 rsrtt10100:716 rsrtt1600:2 rsrtt500800:4 rsrtt8001600:3 sockopen:924 sockclosed:922 sockbf: consest:922
10/15/2012 07:40:07 PM - CMDPHP: Poller[0] Host[6] DS[52] WARNING: Result from CMD not valid. Partial Result: iso.3.6.1.4.1.18689.
10/15/2012 07:40:07 PM - CMDPHP: Poller[0] Host[6] DS[54] CMD: /usr/share/cacti/site/scripts/bind-stats.sh 192.168.1.9, output: iso.3.6.1.4.1.18689.0.1.4.1.2.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115.1 = STRING: a:971 a6:0 aaaa:3 any:0 cname:0 mx:0 naptr:0 ns:133 ptr:1 soa:0 spf:0 srv:0 txt:0 rsnx:2 rsfail:4 rserr: rsipv4qs:922 rsipv4rr:911 rsmismatch: rsqr:18 rsqt:11 rsrtt10: rsrtt100500:186 rsrtt10100:716 rsrtt1600:2 rsrtt500800:4 rsrtt8001600:3 sockopen:924 sockclosed:922 sockbf: consest:922
10/15/2012 07:40:07 PM - CMDPHP: Poller[0] Host[6] DS[54] WARNING: Result from CMD not valid. Partial Result: iso.3.6.1.4.1.18689.


any help would be greatly appreciated

Thanks


Top
 Profile  
 
 Post subject: Re: BIND 9.7 host template
PostPosted: Mon Oct 15, 2012 9:49 am 
Offline
Cacti User
User avatar

Joined: Wed Nov 09, 2005 8:35 am
Posts: 240
Location: Timisoara, Romania
looks like some of the variables are not readed from the stats file, run the script manualy and see if any errors

_________________
Check out my CACTI Templates


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 61 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group