Plugin template?

This output looks like a local check output, not an active check.
What guide do you used to write this script? Is there somewhere the source code?

To include such a script with an SNMP device can be challenging.