|
|
| Author |
Message |
luzik Beginner
Joined: 04 Aug 2004 Posts: 2
|
Posted: Wed Aug 04, 2004 11:55 am Post subject: DNS - snmp |
|
|
| I have some DNS query in snmp tests .. can somebody give me a hint how to get script[s] witch snmpd uses to feed, and please paste here cut of snmpd.conf |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Wed Aug 04, 2004 1:06 pm Post subject: |
|
|
What scripts do you have? Just ones that parse out success/failures from the results of 'rndc stats'?
If you have a script that just returns this value, you can add it to snmpd.conf with the 'exec' parameter. Either run 'man snmpd.conf' or look into your snmpd.conf where it goes over that; it'll probably be easier that way.
-Doug |
|
| Back to top |
|
 |
luzik Beginner
Joined: 04 Aug 2004 Posts: 2
|
Posted: Wed Aug 04, 2004 1:44 pm Post subject: |
|
|
I don't have any script . i just want it
Do you have
DNS - A Records enterprises.ucdavis.extTable.extEntry.extOutput.1 <Edit> <Delete>
DNS - ANY Records enterprises.ucdavis.extTable.extEntry.extOutput.5 <Edit> <Delete>
DNS - CNAME Records enterprises.ucdavis.extTable.extEntry.extOutput.4 <Edit> <Delete>
DNS - MX Records enterprises.ucdavis.extTable.extEntry.extOutput.3 <Edit> <Delete>
DNS - PTR Records enterprises.ucdavis.extTable.extEntry.extOutput.2 <Edit> <Delete>
in your snmp test?
http://yoursite.com/netmrg/tests_snmp.php
i have those and don't have script witch can fetch info from dns serwer and put it in my snmpd |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Wed Aug 04, 2004 1:58 pm Post subject: |
|
|
No, we don't do this through SNMP. These stats aren't available directly from Bind, they have to be gathered from the query log. We combine the statistics into a mysql database, and then query that for A, MX, PTR, etc.
Look in the contrib directory; the gathering script is in there, as well as a (very) basic readme file. Look over that, and let me know what questions you have.
Of course, I'm assuming Bind for everything here; and more than that, Bind 9.x. If you have something other than that, our contrib script might not work.
-Doug |
|
| Back to top |
|
 |
simonraven Beginner
Joined: 14 Aug 2004 Posts: 2
|
Posted: Sat Aug 14, 2004 1:09 pm Post subject: managing the DNS stats |
|
|
hi,
i just installed netnrg, having looked around at various frontends to snmp and rrdtool, and i found this to be the easiest to grasp and it even helped me understand rrdtool a bit better. but this isn't why i'm posting now (though thanks for writing the s/w much appeciated ).
ok, now that i have stats being gathered, how do i include it in the graphs? do i have to now construct an SQL SELECT argument or something? BTW, i didn't see the README that was referred to in an earlier post, unless you mean running perldoc on the script - already read that . |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Sat Aug 14, 2004 1:13 pm Post subject: |
|
|
Right, you need to build the SQL Query, but since I've already done that, I'll try to put together a README and put it in that directory; I'll let you know when I've got it together.
-Doug |
|
| Back to top |
|
 |
simonraven Beginner
Joined: 14 Aug 2004 Posts: 2
|
Posted: Sat Aug 14, 2004 1:17 pm Post subject: |
|
|
| silfreed wrote: |
Right, you need to build the SQL Query, but since I've already done that, I'll try to put together a README and put it in that directory; I'll let you know when I've got it together.
-Doug |
ok, cool thanks a lot  |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Sat Aug 14, 2004 1:29 pm Post subject: |
|
|
Okay, I basically just copied the maillog stats readme file, but it has been modified with a bit more information relevant to the bind stats.
Check out the README (that's a link).
-Doug |
|
| Back to top |
|
 |
gpreston Beginner
Joined: 12 Jan 2005 Posts: 3
|
Posted: Thu Jan 13, 2005 3:48 pm Post subject: |
|
|
| silfreed wrote: |
Look in the contrib directory; the gathering script is in there, as well as a (very) basic readme file. Look over that, and let me know what questions you have.
Of course, I'm assuming Bind for everything here; and more than that, Bind 9.x. If you have something other than that, our contrib script might not work.
-Doug |
Hey there. I'm using RH9 with BIND 9.2.1 and I've gone through the README and set everything up. When I try to run the program, it fails with the following:
| Quote: |
Global symbol "@h" requires explicit package name at /usr/local/libexec/netmrg/bindstats/dnsstats line 33.
syntax error at /usr/local/libexec/netmrg/bindstats/dnsstats line 36, near "}"
Execution of /usr/local/libexec/netmrg/bindstats/dnsstats aborted due to compilation errors. |
Any ideas? Line 33 is where the password for the database is stored, with no reference to "@h", so I am at a loss right now.
Edit: Nevermind, I just realized that the $ in my password was screwing up the script. |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Thu Jan 13, 2005 4:22 pm Post subject: |
|
|
Does your password include an '@' symbol? In perl, you have to escape these (\@) or include the entire password in single quotes instead of double-quotes.
-Doug |
|
| Back to top |
|
 |
|