Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Sat Sep 20, 2014 9:01 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 37 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject:
PostPosted: Wed Sep 16, 2009 8:24 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 4628
Location: United Kingdom
Code:
# 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.97c is out! & QuickTree 0.2. Superlinks is over there now.
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!)

Security Notice: CVE-2013-2618 Network Weathermap 0.97a - editor security issues

My System: CentOS5 64 bit, 4 2GHz cores (Intel E5405), 8GB, Cacti 0.8.7e, Spine 0.8.7e, Weathermap 0.98dev, Superlinks 0.8, ReportIt 0.7.1, THold 0.3.9hj, Explain 0.1, Uptime 0.4hj, Realtime 0.36hj, QuickTree 0.2 - 17000 DS, 320 Hosts. 150 seconds poll.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 16, 2009 12:55 pm 
Offline

Joined: Fri Sep 11, 2009 1:16 pm
Posts: 3
Location: Poland
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 19, 2010 2:25 pm 
Offline

Joined: Tue Oct 17, 2006 10:09 am
Posts: 22
for those of you asking about authoritive dns server stats, see my thread here

_________________
Tranquil Hosting - NC Managed Servers and Colocation


Top
 Profile  
 
 Post subject: Re: PowerDNS Recursor Templates [updated 29/7/09]
PostPosted: Wed Nov 10, 2010 10:52 am 
Offline

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


Top
 Profile  
 
 Post subject: Re: PowerDNS Recursor Templates [updated 29/7/09]
PostPosted: Wed Nov 10, 2010 6:17 pm 
Offline

Joined: Wed Nov 10, 2010 6:13 pm
Posts: 1
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?


Top
 Profile  
 
 Post subject: Re: PowerDNS Recursor Templates [updated 29/7/09]
PostPosted: Tue Dec 07, 2010 7:13 am 
Offline

Joined: Mon Jun 23, 2003 9:25 am
Posts: 12
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


Top
 Profile  
 
 Post subject: Re: PowerDNS Recursor Templates [updated 29/7/09]
PostPosted: Thu Feb 10, 2011 7:47 am 
Offline

Joined: Thu Feb 10, 2011 7:38 am
Posts: 5
Sirs,
I really need you help

I have installed snmpd (apt-get install snmpd) and added
Code:
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)


Top
 Profile  
 
 Post subject: Re: PowerDNS Recursor Templates [updated 29/7/09]
PostPosted: Thu Feb 10, 2011 8:35 am 
Offline

Joined: Tue Oct 17, 2006 10:09 am
Posts: 22
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.

_________________
Tranquil Hosting - NC Managed Servers and Colocation


Top
 Profile  
 
 Post subject: Re: PowerDNS Recursor Templates [updated 29/7/09]
PostPosted: Thu Feb 10, 2011 8:46 am 
Offline

Joined: Thu Feb 10, 2011 7:38 am
Posts: 5
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???


Top
 Profile  
 
 Post subject: Re: PowerDNS Recursor Templates [updated 29/7/09]
PostPosted: Thu Feb 10, 2011 9:00 am 
Offline

Joined: Thu Feb 10, 2011 7:38 am
Posts: 5
it is drawing the graphs but getting NAN !!!!
it is weird!

please help !!!


Top
 Profile  
 
 Post subject: Re: PowerDNS Recursor Templates [updated 29/7/09]
PostPosted: Sun Feb 13, 2011 4:52 pm 
Offline

Joined: Thu Feb 10, 2011 7:38 am
Posts: 5
@ Sloop
Code:
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


Top
 Profile  
 
 Post subject: Re: PowerDNS Recursor Templates [updated 29/7/09]
PostPosted: Mon Feb 14, 2011 8:07 am 
Offline

Joined: Tue Oct 17, 2006 10:09 am
Posts: 22
maroon wrote:
@ Sloop
Would you please paste the output of the aforementioned OID if you run snmpwalk?


Quote:
# 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

_________________
Tranquil Hosting - NC Managed Servers and Colocation


Top
 Profile  
 
 Post subject: Re: PowerDNS Recursor Templates [updated 29/7/09]
PostPosted: Tue Feb 15, 2011 7:14 am 
Offline

Joined: Thu Feb 10, 2011 7:38 am
Posts: 5
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,


Top
 Profile  
 
 Post subject: Re: PowerDNS Recursor Templates [updated 29/7/09]
PostPosted: Sun Sep 04, 2011 11:11 pm 
Offline

Joined: Sun Sep 04, 2011 11:08 pm
Posts: 2
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?


Top
 Profile  
 
 Post subject: Re:
PostPosted: Sun Sep 04, 2011 11:15 pm 
Offline

Joined: Sun Sep 04, 2011 11:08 pm
Posts: 2
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 ?


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: Exabot [Bot] and 4 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