you didn't configure it as in the post you linked.
The check needs to be "custom" pointing on the script you placed in /usr/local/opnsense/scripts/OPNsense/Monit/
The check needs to be "custom" pointing on the script you placed in /usr/local/opnsense/scripts/OPNsense/Monit/