Fibaro wall plug - Automatic off & on locally executed

Hi,

I would like to use something to restart my fiber converter box when internet goes down. Something similar to resetplug. To be it seems like a fibaro wall plug would do the job if I could excute the code locally. Basically a code that pings something and when not getting a reply, turns the plug off and then on. Have anyone done something like this? I need an EU plug so I can’t buy the resetplug.