[smokeping-users] Modifying DNS probe to add extra options
Shawn Rose
shawnjrose at gmail.com
Mon Jun 16 02:43:59 CEST 2008
Hello,
I think I solved it. Does this look good?
added:
under targetvars sub
extraopts => {
_doc => 'Any extra options specified
here will be passed unmodified to echoping(1).',
_example =>
'-some-letter-the-author-did-not-think-of',
},
under pingone sub
my $extra = $target->{vars}{extraopts};
and updated
my $query = "$self->{properties}{binary} \@$dnsserver $lookuphost $extra";
Smokeping started without error. So I think I'm golden. If it looks
good, just give me a thumbs up.
Thanks,
On Sun, Jun 15, 2008 at 8:30 PM, Shawn Rose <shawnjrose at gmail.com> wrote:
> Hello,
>
> Just wondering. I want to modifiy the DNS.pm so that you can add extra
> arguments.
>
> Line 116:/opt/smokeping/lib/Smokeping/probes/DNS.pm
>
> my $query = "$self->{properties}{binary} \@$dnsserver $lookuphost"
>
> I noticed a number of your Probes offer extraopts variable. All I want
> to do is add arguments to the dig command at the end of the query. Is
> there an easy way to do this? I do not want to use echoping as it's an
> additional package I do need.
>
> Any help would be greatly appreciated.
>
> --
> Check out
>
> http://www.bulldoze.ca
>
> Cheers
> Shawn Rose
>
--
Check out
http://www.bulldoze.ca
Cheers
Shawn Rose
More information about the smokeping-users
mailing list