Caveats

To use the module a restricted account on the server should be set up with something like this:
adduser nagios
setprivileges nagios platop
setssh -c addpubkey -u nagios

The is combined with the and must be specified in the exact order as in the example.

Apart from that the modules works if you don’t look too close to the perl style.