opnsense-docs/source/development/api/plugins/nrpe.rst

37 lines
1.5 KiB
ReStructuredText
Raw Normal View History

Nrpe
~~~~
.. csv-table:: Resources (CommandController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``POST``","nrpe","command","add_command",""
"``POST``","nrpe","command","del_command","$uuid"
2021-03-08 06:22:26 -05:00
"``GET``","nrpe","command","get",""
"``GET``","nrpe","command","get_command","$uuid=null"
2025-05-01 07:06:32 -04:00
"``GET,POST``","nrpe","command","search_command",""
2022-10-19 11:21:08 -04:00
"``POST``","nrpe","command","set",""
"``POST``","nrpe","command","set_command","$uuid"
"``POST``","nrpe","command","toggle_command","$uuid"
"``<<uses>>``", "", "", "", "*model* `Command.xml <https://github.com/opnsense/plugins/blob/master/net-mgmt/nrpe/src/opnsense/mvc/app/models/OPNsense/Nrpe/Command.xml>`__"
2021-03-08 06:22:26 -05:00
2025-05-01 04:05:15 -04:00
.. csv-table:: Resources (GeneralController.php)
2021-03-08 06:22:26 -05:00
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","nrpe","general","get",""
2022-10-19 11:21:08 -04:00
"``POST``","nrpe","general","set",""
2021-03-08 06:22:26 -05:00
"``<<uses>>``", "", "", "", "*model* `General.xml <https://github.com/opnsense/plugins/blob/master/net-mgmt/nrpe/src/opnsense/mvc/app/models/OPNsense/Nrpe/General.xml>`__"
.. csv-table:: Service (ServiceController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
2022-10-19 11:21:08 -04:00
"``POST``","nrpe","service","reconfigure",""
"``POST``","nrpe","service","restart",""
"``POST``","nrpe","service","start",""
2021-03-08 06:22:26 -05:00
"``GET``","nrpe","service","status",""
2022-10-19 11:21:08 -04:00
"``POST``","nrpe","service","stop",""