How do you add different probes of the same type in Smokeping?
My initial attempt:
+ FPing
binary=/usr/sbin/fping
+ FPing2
binary=/usr/sbin/fping
sourceaddress=192.168.1.2
Yielded:
$ smokeping check
require Smokeping::probes::FPing2 failed: Can't locate Smokeping/probes/FPing2.pm in @INC (@INC contains: .. /usr/share/smokeping /root/perl5/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 22) line 2, <$fh> line 111.
I'm sure I'm overlooking something obvious!
I have consulted the Probe documentation here https://oss.oetiker.ch/smokeping/probe/index.en.html, to no avail and I'm sure that something so trivial shouldn't require a new module.
Yes, I was overlooking something obvious - the "Probe" section of the "Config" page in the documentation here: https://oss.oetiker.ch/smokeping/doc/smokeping_config.en.html#___top
SImple as that!
Copy the probe file under another name, in the same direcotory (/SMOLKEDIR/lib/Smokeping/probes)
eg: cp EchoPing.pm EhoPing2.pm
open EchoPing2.pm with any text editor, make obvious changes (eg: at the first line change Smokeping::probes:EchoPing whit Smokeping::probes:EchoPing2 and so on.
Use both EchoPing and EchoPing2 in the same mannner in the RTT file