DNS Server Response Time: Script & Templates
Moderators: Developers, Moderators
adrianmarsh,
I did run it from root.
Are you saying that you no longer get the 'ERROR: The POPEN timed out' in the log?
That is what I am still getting.
I agree with the open time for the script, (when this starts to work for me), I will change the switches to:
'-i 15' and '-d 5'
This will do three queries over 15 seconds. (I think)
I did run it from root.
Are you saying that you no longer get the 'ERROR: The POPEN timed out' in the log?
That is what I am still getting.
I agree with the open time for the script, (when this starts to work for me), I will change the switches to:
'-i 15' and '-d 5'
This will do three queries over 15 seconds. (I think)
Hi,
When I use this script I get an error "partial response"
If I run it manually following the format within the .pl I get a dig of the zone scrolling past on the screen. Surely I should jsut get a summary? what is going on here?
I am also getting this:
ERROR: The POPEN timed out
When I use this script I get an error "partial response"
If I run it manually following the format within the .pl I get a dig of the zone scrolling past on the screen. Surely I should jsut get a summary? what is going on here?
I am also getting this:
ERROR: The POPEN timed out
If a man is in a forest, and he speaks to a tree and no woman can hear....
[i]is he still wrong?[/i]
[i]is he still wrong?[/i]
Fixed Script
I'm using the 0.8.6j version and i finally make this script work. i'm manually fix the command line in the xml template, to this
<input_string>perl /home/hosting/cpanel/cacti/scripts/dnsResponseTimeLoop.pl -s <serveraddr> -h <hostname> -t 5 -i 10 -r</input_string>, i'm manually change the TimeOut and Interval, some errors appears when the interval is less than 10 seconds.
In this case i chose 10 seconds, The graphs works now
Thanks for this script.
<input_string>perl /home/hosting/cpanel/cacti/scripts/dnsResponseTimeLoop.pl -s <serveraddr> -h <hostname> -t 5 -i 10 -r</input_string>, i'm manually change the TimeOut and Interval, some errors appears when the interval is less than 10 seconds.
In this case i chose 10 seconds, The graphs works now
Thanks for this script.
- Attachments
-
- cacti_graph_template_dnsresponsetime_204 - Fixed TimeOut and Interval.xml
- Fixed The timeout and interval in command passed to the executable and the path of the executable.
fix the path as requiered - (20.61 KiB) Downloaded 1386 times
hi !
i'm using cacti 0.8.7 on debian etch...
i'm trying to use dnsResponseTime but i've got this answer :
ERROR: the RRD does not contain an RRA matching the chosen CF
all perl's moduls are installed, and when i test script manualy,
./dnsResponseTime.pl -h www.google.fr -s x.x.x.x -t 9 -i 10 -r -d 10
min:8 median:8 avg:8 max:8 iter:1
so, i don't understant what is wrong...
dnsResponseTime.pl is in /usr/local/cacti/scripts
and i manually fix the command line in the xml template
but always this response : ERROR: the RRD does not contain an RRA matching the chosen CF
An idea ?
Thx
weSh
i'm using cacti 0.8.7 on debian etch...
i'm trying to use dnsResponseTime but i've got this answer :
ERROR: the RRD does not contain an RRA matching the chosen CF
all perl's moduls are installed, and when i test script manualy,
./dnsResponseTime.pl -h www.google.fr -s x.x.x.x -t 9 -i 10 -r -d 10
min:8 median:8 avg:8 max:8 iter:1
so, i don't understant what is wrong...
dnsResponseTime.pl is in /usr/local/cacti/scripts
and i manually fix the command line in the xml template
but always this response : ERROR: the RRD does not contain an RRA matching the chosen CF
An idea ?
Thx
weSh
nice job
I like the script, took a bit of work to get it going 100%, but now it's ticking along. I edited the command a bit and I do not think it returns the most accurate numbers, but that is likely the fault of perl's net::DNS more than the script itself. Dig consistently returns lower numbers.
Unfortunately, I cannot be sure if the spikes I see in the graph are indicative of a real problem, or if it is just a glitch. I'm querying 2 local DNS servers, one BSD/Bind one W2K3. Bind minimums never fluctuate, it is always 9.00ms and MS is always 5.00ms
I have to treat is as more of a DNS weather vane, than a true tool. Regardless, it is handy.
Unfortunately, I cannot be sure if the spikes I see in the graph are indicative of a real problem, or if it is just a glitch. I'm querying 2 local DNS servers, one BSD/Bind one W2K3. Bind minimums never fluctuate, it is always 9.00ms and MS is always 5.00ms
I have to treat is as more of a DNS weather vane, than a true tool. Regardless, it is handy.
how to make it work on windows ?
[size=75]
[color=green]|Cacti 0.87|[/color][color=green]|PA 1.3|[/color][color=green]|Poller cmd.php|[/color][color=green]|IIS 6.0|[/color][color=green]|PHP Version 5.2.4|[/color][color=green]|MySQL 5.0.27|[/color][color=green]|RRDtool 1.2.15|[/color][/size]
[color=brown]|Thold 0.3.8 |[/color] [color=red]|Zond 0.34 |[/color]
[url=http://forums.cacti.net/viewtopic.php?t=15067][size=75]Complete List of Cacti Scripts and Templates[/size][/url]
[url=http://forums.cacti.net/viewtopic.php?t=14985][size=75]Currently Known Plugins[/size][/url]
[color=green]|Cacti 0.87|[/color][color=green]|PA 1.3|[/color][color=green]|Poller cmd.php|[/color][color=green]|IIS 6.0|[/color][color=green]|PHP Version 5.2.4|[/color][color=green]|MySQL 5.0.27|[/color][color=green]|RRDtool 1.2.15|[/color][/size]
[color=brown]|Thold 0.3.8 |[/color] [color=red]|Zond 0.34 |[/color]
[url=http://forums.cacti.net/viewtopic.php?t=15067][size=75]Complete List of Cacti Scripts and Templates[/size][/url]
[url=http://forums.cacti.net/viewtopic.php?t=14985][size=75]Currently Known Plugins[/size][/url]
[size=75]
[color=green]|Cacti 0.87|[/color][color=green]|PA 1.3|[/color][color=green]|Poller cmd.php|[/color][color=green]|IIS 6.0|[/color][color=green]|PHP Version 5.2.4|[/color][color=green]|MySQL 5.0.27|[/color][color=green]|RRDtool 1.2.15|[/color][/size]
[color=brown]|Thold 0.3.8 |[/color] [color=red]|Zond 0.34 |[/color]
[url=http://forums.cacti.net/viewtopic.php?t=15067][size=75]Complete List of Cacti Scripts and Templates[/size][/url]
[url=http://forums.cacti.net/viewtopic.php?t=14985][size=75]Currently Known Plugins[/size][/url]
[color=green]|Cacti 0.87|[/color][color=green]|PA 1.3|[/color][color=green]|Poller cmd.php|[/color][color=green]|IIS 6.0|[/color][color=green]|PHP Version 5.2.4|[/color][color=green]|MySQL 5.0.27|[/color][color=green]|RRDtool 1.2.15|[/color][/size]
[color=brown]|Thold 0.3.8 |[/color] [color=red]|Zond 0.34 |[/color]
[url=http://forums.cacti.net/viewtopic.php?t=15067][size=75]Complete List of Cacti Scripts and Templates[/size][/url]
[url=http://forums.cacti.net/viewtopic.php?t=14985][size=75]Currently Known Plugins[/size][/url]
dnsResponseTimeLoop on cacti 0.8.7b
Hey, anyone try to install this on 0.8.7b?
The perl script seems to work from the command prompt, I changed the path to the script, imported the .xml file but I get no graph data
From the command line, I get a result:
min:2 median:2 avg:2 max:103 iter:1844
in cacti, I debug the output and I get the following error:
ERROR: the RRD does not contain an RRA matching the chosen CF
I'd be more than happy to give cacti the correct RRA if I only knew where I can do that.
I've been trying to figure it out on my own for the past few hours with no luck. Hoping someone here has had better luck...
thanks,
RF
The perl script seems to work from the command prompt, I changed the path to the script, imported the .xml file but I get no graph data
From the command line, I get a result:
min:2 median:2 avg:2 max:103 iter:1844
in cacti, I debug the output and I get the following error:
ERROR: the RRD does not contain an RRA matching the chosen CF
I'd be more than happy to give cacti the correct RRA if I only knew where I can do that.
I've been trying to figure it out on my own for the past few hours with no luck. Hoping someone here has had better luck...
thanks,
RF
i did something wrong ??
put the script in scripts directory
install all dependency of this script
using perl v5.10.0 built for i486-linux-thread-multi
i put some thing wrong in this command
10x in advance
Command use:
perl dnsresponsetimeloop.pl -h google.ro -s 89.32.16.2 -r -i 5 -d 0 -t 100
Comand return:
Use of uninitialized value in addition (+) at dnsresponsetimeloop.pl line 139.
Use of uninitialized value in addition (+) at dnsresponsetimeloop.pl line 139.
Use of uninitialized value $result in division (/) at dnsresponsetimeloop.pl line 57.
Illegal division by zero at dnsresponsetimeloop.pl line 57.
install all dependency of this script
using perl v5.10.0 built for i486-linux-thread-multi
i put some thing wrong in this command
10x in advance
Command use:
perl dnsresponsetimeloop.pl -h google.ro -s 89.32.16.2 -r -i 5 -d 0 -t 100
Comand return:
Use of uninitialized value in addition (+) at dnsresponsetimeloop.pl line 139.
Use of uninitialized value in addition (+) at dnsresponsetimeloop.pl line 139.
Use of uninitialized value $result in division (/) at dnsresponsetimeloop.pl line 57.
Illegal division by zero at dnsresponsetimeloop.pl line 57.
ERROR: the RRD does not contain an RRA matching the chosen C
I try to use the dnsresponse time, but i have this error:
ERROR: the RRD does not contain an RRA matching the chosen CF
The RRA:
The graph:
How can i fix it?
ERROR: the RRD does not contain an RRA matching the chosen CF
The RRA:
Code: Select all
/usr/bin/rrdtool create \
/var/www/cacti/rra/dns-rec_max_273.rrd \
--step 300 \
DS:max:GAUGE:600:-10000:100000 \
DS:avg:GAUGE:600:-10000:100000 \
DS:median:GAUGE:600:-10000:100000 \
DS:min:GAUGE:600:-10000:100000 \
RRA:AVERAGE:0.5:1:500 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="DNS Response Time @Dns-Rec FQDN" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale \
--vertical-label="delay (ms)" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/dns-rec_max_273.rrd":min:MIN \
DEF:b="/var/www/cacti/rra/dns-rec_max_273.rrd":median:AVERAGE \
DEF:c="/var/www/cacti/rra/dns-rec_max_273.rrd":avg:AVERAGE \
DEF:d="/var/www/cacti/rra/dns-rec_max_273.rrd":max:MAX \
LINE1:a#55D6D3FF:"minimum" \
GPRINT:a:LAST:" last\:%8.2lf %s" \
GPRINT:a:MIN:"min\:%8.2lf %s" \
GPRINT:a:AVERAGE:"avg\:%8.2lf %s" \
GPRINT:a:MAX:"max\:%8.2lf %s\n" \
LINE1:b#F5F800FF:"median\:" \
GPRINT:b:LAST:" last\:%8.2lf %s" \
GPRINT:b:MIN:"min\:%8.2lf %s" \
GPRINT:b:AVERAGE:"avg\:%8.2lf %s" \
GPRINT:b:MAX:"max\:%8.2lf %s\n" \
LINE1:c#EA8F00FF:"average\:" \
GPRINT:c:LAST:"last\:%8.2lf %s" \
GPRINT:c:MIN:"min\:%8.2lf %s" \
GPRINT:c:AVERAGE:"avg\:%8.2lf %s" \
GPRINT:c:MAX:"max\:%8.2lf %s\n" \
LINE1:d#FF0000FF:"maximum\:" \
GPRINT:d:LAST:"last\:%8.2lf %s" \
GPRINT:d:MIN:"min\:%8.2lf %s" \
GPRINT:d:AVERAGE:"avg\:%8.2lf %s" \
GPRINT:d:MAX:"max\:%8.2lf %s\n"
RRDTool Says:
ERROR: the RRD does not contain an RRA matching the chosen CF
Re: DNS Server Response Time: Script & Templates
Hi!
I have a problem to make the graphs work. I imported the XML and set the path of perl script. When I generate the graphs, I receive this message:
Somebody help me, please! I looked for the answers on Google, but without success.
I have a problem to make the graphs work. I imported the XML and set the path of perl script. When I generate the graphs, I receive this message:
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="DNS Response Time @Servidor DNS1 FQDN" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-min \
--upper-limit=10000 \
--vertical-label="delay (ms)" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
LINE1:#55D6D3FF:"minimum\:" \
GPRINT::LAST:"last\:%8.2lf %s" \
GPRINT::MIN:"min\:%8.2lf %s" \
GPRINT::AVERAGE:"avg\:%8.2lf %s" \
GPRINT::MAX:"max\:%8.2lf %s\n" \
LINE1:#F5F800FF:"median\:" \
GPRINT::LAST:" last\:%8.2lf %s" \
GPRINT::MIN:"min\:%8.2lf %s" \
GPRINT::AVERAGE:"avg\:%8.2lf %s" \
GPRINT::MAX:"max\:%8.2lf %s\n" \
LINE1:#EA8F00FF:"average\:" \
GPRINT::LAST:"last\:%8.2lf %s" \
GPRINT::MIN:"min\:%8.2lf %s" \
GPRINT::AVERAGE:"avg\:%8.2lf %s" \
GPRINT::MAX:"max\:%8.2lf %s\n" \
LINE1:#FF0000FF:"maximum\:" \
GPRINT::LAST:"last\:%8.2lf %s" \
GPRINT::MIN:"min\:%8.2lf %s" \
GPRINT::AVERAGE:"avg\:%8.2lf %s" \
GPRINT::MAX:"max\:%8.2lf %s\n"
RRDTool Says:
ERROR: parameter '#55D6D3FF' does not represent a number in line LINE1:#55D6D3FF:minimum\:
Re: DNS Server Response Time: Script & Templates
Hey, guys! I found a solution here!
For the message: ERROR: the RRD does not contain an RRA matching the chosen CF, you have to enter on Data Source > RRA's, select each option and, inside of each option, select (with Ctrl) the rest of CF's (Consolidation Function). Do this to the rest of options.
For my doubt, I forgot to insert new Data Source for the new template!
Now, I have another problem: all of my results has a "nan". I don't get it where i wrong!
For the message: ERROR: the RRD does not contain an RRA matching the chosen CF, you have to enter on Data Source > RRA's, select each option and, inside of each option, select (with Ctrl) the rest of CF's (Consolidation Function). Do this to the rest of options.
For my doubt, I forgot to insert new Data Source for the new template!
Now, I have another problem: all of my results has a "nan". I don't get it where i wrong!
Re: i did something wrong ??
I'm seeing this:
10/10/2010 10:35:52 PM - SPINE: Poller[0] Host[161] ERROR: The NIFTY POPEN timed out
How can this be corrected?
10/10/2010 10:35:52 PM - SPINE: Poller[0] Host[161] ERROR: The NIFTY POPEN timed out
How can this be corrected?
Cacti 0.8.8a on CentOS
Who is online
Users browsing this forum: No registered users and 6 guests