PDA

View Full Version : [ubuntu] Help for DNS Ubuntu 10.04 Cache use Bind9



yatyao
October 19th, 2010, 09:59 AM
Hi all, i have setup a server Ubuntu to used DNS Cache. All finised, but now, i want to set up Bind Graph to monitor server.
I can't find the document about how set up bindgraph on Ubuntu 10.04. It's all about the FreeBSD, Cacti,.. So can you help me? plz..
Tks so much!:(

yatyao
October 20th, 2010, 09:20 AM
Hi all, i have setup a server Ubuntu to used DNS Cache. All finised, but now, i want to set up Bind Graph to monitor server.
I can't find the document about how set up bindgraph on Ubuntu 10.04. It's all about the FreeBSD, Cacti,.. So can you help me? plz..
Tks so much!:(
plz help meeeee...............

P4man
October 20th, 2010, 12:14 PM
Ive never heard of bindgraph, but its in the repositories, so installing ought to be trivial (sudo apt-get install bindgraph). Setting it up and using it shouldnt be (very) different from any other distro, especially not debian.

yatyao
October 21st, 2010, 08:54 AM
Ive never heard of bindgraph, but its in the repositories, so installing ought to be trivial (sudo apt-get install bindgraph). Setting it up and using it shouldnt be (very) different from any other distro, especially not debian.
tks for answer me ! bindgraph used to see the query to my DNS server (total, in a Day, in a Week, ..)
DNS statistics RRDtool frontend for BIND9 BindGraph is a very simple DNS statistics RRDtool frontend for BIND9 that produces daily, weekly, monthly and yearly graphs of the DNS server's activity (queries, errors, etc.).

it's example on FreeBSD:
http://www.cyberciti.biz/faq/freebsd-bind-named-bindgraph-installtion-configuration/
but i can't found how set up on Ubuntu :(!.. Please help me.. tks !

P4man
October 21st, 2010, 09:34 AM
Install it from the repository. Most of the work is done for you. After installing you should already get some empty stats by going to

http://localhost/cgi-bin/bindgraph.cgi

The howto you linked to explains editing named.conf. On ubuntu its located in /etc/bind/named.conf. Edit that file to configure your logging.

From the readme, to start the collector run


nice -20 bindgraph.pl --daemon --logfile /var/log/query.log

(obviously change the log file to whereever you are logging).

yatyao
October 26th, 2010, 09:40 AM
http://i266.photobucket.com/albums/ii263/yatyao/bindgraph.png

plz help me, it's not show pictures? :-s

P4man
October 26th, 2010, 11:58 AM
You did what I wrote in post 3. Now read post 5. I cant be more help than that Im afraid.

yatyao
October 27th, 2010, 04:05 AM
thank you very much.. i'll try it again!..

yatyao
October 28th, 2010, 06:58 AM
oh, yeah!.. i did it! so many thanks all!:D