oetiker/SmokePing

Create my custom plugin, how to pass packet loss.

Closed this issue · 2 comments

Hello guys.
According to documentation , your module need to return a sorted array of ping values.
This is ok.
Question is , how / where should I pass packet loss percent ?
Reading Fping.pm and skel.pm code , can not find it.
Can someone point an example ?

BTW:
My custom plugin will read data from file.
I will populate a file with a line per host like:
host1 10 10 9 8 10 11 9 9 0%packetloss.
Then my plug will read this file , parse each line and return data according to smokeping specification.
This would be very ussefull since, in a different schedulled process I can connect only once to my routers , exec more than 50 host ping and store this on file.
This will help smokeping pooling process and avoid router overload with multiple ssh connections.
Hope to hear your feedback.
Leandro.

This issue has become stale and will be closed automatically within 7 days. Comment on the issue to keep it alive.