opnsense-docs/source/development/api/core/monit.rst

47 lines
2 KiB
ReStructuredText
Raw Permalink Normal View History

2020-02-16 10:08:40 -05:00
Monit
~~~~~
.. 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``","monit","service","check",""
2020-02-16 10:08:40 -05:00
"``POST``","monit","service","reconfigure",""
2022-10-19 11:21:08 -04:00
"``POST``","monit","service","restart",""
"``POST``","monit","service","start",""
2021-03-08 06:23:28 -05:00
"``GET``","monit","service","status",""
2022-10-19 11:21:08 -04:00
"``POST``","monit","service","stop",""
2020-02-16 10:08:40 -05:00
.. csv-table:: Resources (SettingsController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``POST``","monit","settings","add_alert",""
"``POST``","monit","settings","add_service",""
"``POST``","monit","settings","add_test",""
"``POST``","monit","settings","del_alert","$uuid"
"``POST``","monit","settings","del_service","$uuid"
"``POST``","monit","settings","del_test","$uuid"
2021-03-08 06:23:28 -05:00
"``GET``","monit","settings","get",""
"``GET``","monit","settings","get_alert","$uuid=null"
"``GET``","monit","settings","get_general",""
"``GET``","monit","settings","get_service","$uuid=null"
"``GET``","monit","settings","get_test","$uuid=null"
2025-05-01 07:06:32 -04:00
"``GET,POST``","monit","settings","search_alert",""
"``GET,POST``","monit","settings","search_service",""
"``GET,POST``","monit","settings","search_test",""
2022-10-19 11:21:08 -04:00
"``POST``","monit","settings","set",""
"``POST``","monit","settings","set_alert","$uuid"
"``POST``","monit","settings","set_service","$uuid"
"``POST``","monit","settings","set_test","$uuid"
"``POST``","monit","settings","toggle_alert","$uuid,$enabled=null"
"``POST``","monit","settings","toggle_service","$uuid,$enabled=null"
2020-02-16 10:08:40 -05:00
2020-04-07 14:53:31 -04:00
"``<<uses>>``", "", "", "", "*model* `Monit.xml <https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/models/OPNsense/Monit/Monit.xml>`__"
2020-02-16 10:08:40 -05:00
.. csv-table:: Resources (StatusController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
2025-05-01 04:03:43 -04:00
"``GET``","monit","status","get","$format=xml"