PowerDNS Recursor Templates [updated 29/7/09]

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

Moderators: Developers, Moderators

User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Code: Select all

# pdns_control show \*

corrupt-packets=0,deferred-cache-inserts=0,deferred-cache-lookup=0,latency=0,packetcache-hit=4,packetcache-miss=5,packetcache-size=0,qsize-q=1,query-cache-hit=0,query-cache-miss=8,recursing-answers=0,recursing-questions=0,servfail-packets=0,tcp-answers=0,tcp-queries=0,timedout-packets=0,udp-answers=9,udp-queries=9,udp4-answers=9,udp4-queries=9,udp6-answers=0,udp6-queries=0,
works for me. Not the same format, so you'd need to alter the script, of course.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
tomasz.wostal
Posts: 3
Joined: Fri Sep 11, 2009 1:16 pm
Location: Poland

Post by tomasz.wostal »

tomasz.wostal wrote:
Howie wrote: The error xseries had was using the wrong OID as far as I can see... :-?
I was walking this OID .1.3.6.1.4.1.8072.1.3.2.4.1.2. I will check my configuration one again :)
Ok. I found solution. I had to change some permissions for /var/run/pdns_recursor.controlsocket file.
Now everything works fine.
Thanks for templates Howie :)

P.S. Sorry for my English
sloop
Posts: 23
Joined: Tue Oct 17, 2006 10:09 am

Post by sloop »

for those of you asking about authoritive dns server stats, see my thread here
[url=http://www.tqhosting.com/]Tranquil Hosting[/url] - NC Managed Servers and Colocation
Imtek
Posts: 1
Joined: Wed Nov 10, 2010 10:49 am

Re: PowerDNS Recursor Templates [updated 29/7/09]

Post by Imtek »

Does somebody have any idea if it still works with Cacti 0.8.7g. Keep getting NaN in my graphs.
gooeyblob
Posts: 1
Joined: Wed Nov 10, 2010 6:13 pm

Re: PowerDNS Recursor Templates [updated 29/7/09]

Post by gooeyblob »

It seems like when you restart the pdns service, the graphs jump to some insane number. Is this because of the way COUNTERs are handled and how the statistics are reset after a restart?
raymonvdm
Posts: 12
Joined: Mon Jun 23, 2003 9:25 am

Re: PowerDNS Recursor Templates [updated 29/7/09]

Post by raymonvdm »

I still get the following error:

root@machine:/home/me# snmpwalk -v2c -ctest 127.0.0.1 .1.3.6.1.4.1.8072.1.3.2.4.1.2
NET-SNMP-EXTEND-MIB::nsExtendOutLine."pdns-rec".1 = STRING: Fatal: Unable to generate local temporary file in directory '/var/run/': Permission denied

When i change the snmp service to run as root the problem is resolved, but i would like to run snmp as snmp user
maroon
Posts: 5
Joined: Thu Feb 10, 2011 7:38 am

Re: PowerDNS Recursor Templates [updated 29/7/09]

Post by maroon »

Sirs,
I really need you help

I have installed snmpd (apt-get install snmpd) and added

Code: Select all

extend pdns-rec /usr/local/bin/pdns_stats
followed the instructions that is written by Howie.

I also, installed cacti (apt-get install cacti) did the upgrade to 0.8.7g and all went fine importing the xml files.

I'm waiting since 2 hours refreshing the graph pages but cacti seems not able to collect data in order to draw the graphs!!!

I tried the below test and got this message... any help would be highly appreciated!!!

CacheX:/# snmpwalk -v2c -c public 127.0.0.1 .1.3.6.1.4.1.8072.1.3.2.4.1.2
NET-SNMP-EXTEND-MIB::nsExtendOutLine = No more variables left in this MIB View (It is past the end of the MIB tree)
sloop
Posts: 23
Joined: Tue Oct 17, 2006 10:09 am

Re: PowerDNS Recursor Templates [updated 29/7/09]

Post by sloop »

maroon wrote:Sirs,
I'm waiting since 2 hours refreshing the graph pages but cacti seems not able to collect data in order to draw the graphs!!!

I tried the below test and got this message... any help would be highly appreciated!!!

CacheX:/# snmpwalk -v2c -c public 127.0.0.1 .1.3.6.1.4.1.8072.1.3.2.4.1.2
NET-SNMP-EXTEND-MIB::nsExtendOutLine = No more variables left in this MIB View (It is past the end of the MIB tree)
Did you restart snmpd after adding that like to the snmpd.conf file?

You need to figure out why you can't snmpwalk that oid and get data. Cacti will never work if snmp doesn't return the data.
[url=http://www.tqhosting.com/]Tranquil Hosting[/url] - NC Managed Servers and Colocation
maroon
Posts: 5
Joined: Thu Feb 10, 2011 7:38 am

Re: PowerDNS Recursor Templates [updated 29/7/09]

Post by maroon »

I did restart the snmpd service and I also restart the server

still no luck !!!

How can I know that snmp is sending data to cacti or catci is collecting data???
maroon
Posts: 5
Joined: Thu Feb 10, 2011 7:38 am

Re: PowerDNS Recursor Templates [updated 29/7/09]

Post by maroon »

it is drawing the graphs but getting NAN !!!!
it is weird!

please help !!!
maroon
Posts: 5
Joined: Thu Feb 10, 2011 7:38 am

Re: PowerDNS Recursor Templates [updated 29/7/09]

Post by maroon »

@ Sloop

Code: Select all

You need to figure out why you can't snmpwalk that oid and get data. Cacti will never work if snmp doesn't return the data.
Would you please paste the output of the aforementioned OID if you run snmpwalk?

I still have no luck....

Any help would be highly appreciated
sloop
Posts: 23
Joined: Tue Oct 17, 2006 10:09 am

Re: PowerDNS Recursor Templates [updated 29/7/09]

Post by sloop »

maroon wrote:@ Sloop
Would you please paste the output of the aforementioned OID if you run snmpwalk?
# snmpwalk -v 2c -c hxxx x.x.x.2 .1.3.6.1.4.1.8072.1.3.2.4.1.2
NET-SNMP-EXTEND-MIB::nsExtendOutLine."pdns-rec".1 = STRING: 343281636
NET-SNMP-EXTEND-MIB::nsExtendOutLine."pdns-rec".2 = STRING: 607474
NET-SNMP-EXTEND-MIB::nsExtendOutLine."pdns-rec".3 = STRING: 273813367
NET-SNMP-EXTEND-MIB::nsExtendOutLine."pdns-rec".4 = STRING: 69468041
NET-SNMP-EXTEND-MIB::nsExtendOutLine."pdns-rec".5 = STRING: 3
NET-SNMP-EXTEND-MIB::nsExtendOutLine."pdns-rec".6 = STRING: 0
NET-SNMP-EXTEND-MIB::nsExtendOutLine."pdns-rec".7 = STRING: 25058
NET-SNMP-EXTEND-MIB::nsExtendOutLine."pdns-rec".8 = STRING: 594372
NET-SNMP-EXTEND-MIB::nsExtendOutLine."pdns-rec".9 = STRING: 0
NET-SNMP-EXTEND-MIB::nsExtendOutLine."pdns-rec".10 = STRING: 3840759
NET-SNMP-EXTEND-MIB::nsExtendOutLine."pdns-rec".11 = STRING: 215
NET-SNMP-EXTEND-MIB::nsExtendOutLine."pdns-rec".12 = STRING: 274167247
NET-SNMP-EXTEND-MIB::nsExtendOutLine."pdns-rec".13 = STRING: 7213261
NET-SNMP-EXTEND-MIB::nsExtendOutLine."pdns-rec".14 = STRING: 37616542
NET-SNMP-EXTEND-MIB::nsExtendOutLine."pdns-rec".15 = STRING: 20443599
NET-SNMP-EXTEND-MIB::nsExtendOutLine."pdns-rec".16 = STRING: 9702
[url=http://www.tqhosting.com/]Tranquil Hosting[/url] - NC Managed Servers and Colocation
maroon
Posts: 5
Joined: Thu Feb 10, 2011 7:38 am

Re: PowerDNS Recursor Templates [updated 29/7/09]

Post by maroon »

Finally, it is working now!!!

but is it possible Howie to update the scripts so we can monitor the following as well:

packetcache-entries
packetcache-hits
packetcache-misses

etc...

Thanks,
tweenpath
Posts: 2
Joined: Sun Sep 04, 2011 11:08 pm

Re: PowerDNS Recursor Templates [updated 29/7/09]

Post by tweenpath »

maroon wrote:Finally, it is working now!!!

but is it possible Howie to update the scripts so we can monitor the following as well:

packetcache-entries
packetcache-hits
packetcache-misses

etc...

Thanks,
WOuld you plz help me out on how did you solve it?
tweenpath
Posts: 2
Joined: Sun Sep 04, 2011 11:08 pm

Re:

Post by tweenpath »

tomasz.wostal wrote:
tomasz.wostal wrote:
Howie wrote: The error xseries had was using the wrong OID as far as I can see... :-?
I was walking this OID .1.3.6.1.4.1.8072.1.3.2.4.1.2. I will check my configuration one again :)
Ok. I found solution. I had to change some permissions for /var/run/pdns_recursor.controlsocket file.
Now everything works fine.
Thanks for templates Howie :)

P.S. Sorry for my English
Could you plz tell what changes did you have to make on /var/run/pdns-recursor.controlsocket file ?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests