It's not that hard. You can see the documentation for plugins by running them on the command with the '-h' switch, e.g. '/usr/local/nagios/libexec/check_disk -h'. As for adding the check to Nagios, you should consult the
Nagios Core manual. You will to add a command definition first, then add the command to a service definition.