DNS Server Response Time: Script & Templates

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

Moderators: Developers, Moderators

nuzzy
Posts: 42
Joined: Mon Feb 23, 2009 10:33 am

Re: DNS Server Response Time: Script & Templates

Post by nuzzy »

UPDATE: I changed my settings to "-i 15 -d 5" and it seems to have fixed my problem
Cacti 0.8.8a on CentOS
sgardne
Posts: 14
Joined: Wed Nov 05, 2008 12:30 pm

Re: DNS Server Response Time: Script & Templates

Post by sgardne »

Hi, I'm attempting to implement this script, and I think I've almost got it, but I'm getting the following error in my poller-error.log:

Code: Select all

/home/cactiuser/dnsResponseTimeLoop.pl: Not enough arguments.

Usage:
            dnsResponseTime.pl -h host -s server -r -v -i interval -d delay -t timeout]

            ./dnsResponseTime.pl -h www.icrc.org  -s 129.132.98.12  -v  -r  -t 5  -i 300
        
            host:           host to be resolved
            server:         DNS servers to ask
            recursive:      recursive query (default 0 iterative , e.g. all or nothing)
            verbose:        debug output
            interval:       time interval during which to query repeatedly (default 60)
            delay:          delay between quweries in seconds (default 0s)
            timeout:        timeout in seconds (default 10s)
The cacti.log shows that the command line being executed is:

Code: Select all

perl /home/cactiuser/dnsResponseTimeLoop.pl -s my.dns.server -h www.google.com -t 9 -i 300 -r -d 10
If I copy and paste that to my command line, it seems to work fine. Can anyone help?
Zubrania
Posts: 1
Joined: Fri Jul 05, 2013 12:33 am

Re: DNS Server Response Time: Script & Templates

Post by Zubrania »

I have a strange behaviour of the template with graphics. In some point in time I get negative DNS Response time. Is there any way to fix it ?
kirgudu
Posts: 10
Joined: Wed Feb 04, 2009 4:22 am
Location: Moscow, Russia

Re: DNS Server Response Time: Script & Templates

Post by kirgudu »

Fixed graph here. Try it
Attachments
Graph.png
Graph.png (23.84 KiB) Viewed 9758 times
cacti_graph_template_dnsresponsetime.xml.gz
Fixed graph
(3.07 KiB) Downloaded 444 times
kaatmanduu
Posts: 2
Joined: Wed Mar 05, 2014 1:47 pm

Re: DNS Server Response Time: Script & Templates

Post by kaatmanduu »

This last template works for me, with the exception of the -i flag. If I put in anything <= 60 for -i, then I get a few 'Use of uninitialized value in addition' messages. I simply changed it to -i 120 and I'm getting graphs. With the original xml template, the command seemed to run but no graphs were created.
andrewpaulb
Posts: 13
Joined: Fri Apr 29, 2011 2:06 am

Re: DNS Server Response Time: Script & Templates

Post by andrewpaulb »

Hi All,

I have a cacti 0.8.8b installation and This template is giving me a hard time to start graphing. If I add a device with a different template it graphs normally.. The strange thing is that the realtime plugin shows data and graphs normally with this template.

What can be the problem ? The Graph is not even being generated..

Apart from this what permissions should scripts have ?

Regards
Andrew Paul
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests