[smokeping-users] Probe Target Variable Definition

Russell Dwarshuis rjd at merit.edu
Wed Dec 10 17:32:44 CET 2014

Can you post the code to pastebin.com or some place else so we can look at it?

What is on line 307??

Russell Dwarshuis 

----- Original Message -----
From: "Tony DeMatteis" <tonyd at commspeed.net>
To: smokeping-users at lists.oetiker.ch
Sent: Wednesday, December 10, 2014 11:07:35 AM
Subject: Re: [smokeping-users] Probe Target Variable Definition

Hi all,

Please, would anybody have a comment on my question? Do you require more 

Thank you


On 12/07/2014 01:29 PM, Tony DeMatteis wrote:
> Greetings,
> I've written a probe and would like to define a target variable. The 
> probe is working as expected.  However, I am having some difficulty 
> determining why my target variable definition is resulting in an error.
> Dec  7 11:25:38 smokeping1 smokeping[12632]: Can't call method 
> "SUPER::targetvars" on an undefined value at 
> /usr/share/perl5/Smokeping/probes/MyCustomProbe.pm line 307
> Here I've added the following to the sub targetvars {} of my probe.
>      version => {
>        _doc => <<DOC,
>  The version option specifies the version.
>  DOC
>        _example => "6.20",
>      },
> It is not defined in the _mandatory => [] struct as I don't want it to 
> be a mandatory variable, but optional.
> The probe loads without any errors on service start up.  I can add the 
> version variable to a Target definition and it is passed to my probe.  
> However, I can't isolate the cause of the error above other than I 
> know it's due to the added target variable definition.
> Any direction would be greatly appreciated.  I would like to finish 
> and polish off this probe so that I can publish it.
> Thank you
> td

smokeping-users mailing list
smokeping-users at lists.oetiker.ch

More information about the smokeping-users mailing list