Pacemaker deprecated support for directly using Nagios plugins as resources (nagios:check_whatever) as of 2.1.6, and dropped support as of 3.0.0.
The same capability could be achieved with a wrapper OCF agent that calls a Nagios plugin. For parameters, it would take the path to the plugin, and a string for the arguments to pass to the plugin. Start/stop would be dummy actions (such as touching/removing a state file). The monitor agent should call the plugin with the configured arguments, and return a DEGRADED result if the plugin returns a warning status or an ERROR result if the plugin returns a critical status.