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","reconfigure",""
|
|
|
|
|
"``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
|
|
|
|
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-04-07 14:49:44 -04:00
|
|
|
|
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","addAlert",""
|
|
|
|
|
"``POST``","monit","settings","addService",""
|
|
|
|
|
"``POST``","monit","settings","addTest",""
|
|
|
|
|
"``POST``","monit","settings","delAlert","$uuid"
|
|
|
|
|
"``POST``","monit","settings","delService","$uuid"
|
|
|
|
|
"``POST``","monit","settings","delTest","$uuid"
|
|
|
|
|
"``GET``","monit","settings","dirty",""
|
2021-03-08 06:23:28 -05:00
|
|
|
"``GET``","monit","settings","get",""
|
2020-02-16 10:08:40 -05:00
|
|
|
"``GET``","monit","settings","getAlert","$uuid=null"
|
|
|
|
|
"``GET``","monit","settings","getGeneral",""
|
|
|
|
|
"``GET``","monit","settings","getService","$uuid=null"
|
|
|
|
|
"``GET``","monit","settings","getTest","$uuid=null"
|
|
|
|
|
"``*``","monit","settings","searchAlert",""
|
|
|
|
|
"``*``","monit","settings","searchService",""
|
|
|
|
|
"``*``","monit","settings","searchTest",""
|
2022-10-19 11:21:08 -04:00
|
|
|
"``POST``","monit","settings","set",""
|
2020-02-16 10:08:40 -05:00
|
|
|
"``POST``","monit","settings","setAlert","$uuid"
|
|
|
|
|
"``POST``","monit","settings","setService","$uuid"
|
|
|
|
|
"``POST``","monit","settings","setTest","$uuid"
|
|
|
|
|
"``POST``","monit","settings","toggleAlert","$uuid,$enabled=null"
|
|
|
|
|
"``POST``","monit","settings","toggleService","$uuid,$enabled=null"
|
|
|
|
|
|
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-04-07 14:49:44 -04:00
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
"``GET``","monit","status","get","$format='xml'"
|