.pdf)
WHM Plugins
servicestatus function from within your custom script:
/xml-api/servicestatus function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/servicestatus
servicestatus function from within your custom script:
/json-api/servicestatus function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/servicestatus
servicestatus function. 1 — success.
0 — failure.
1 — yes.
0 — no.
1 — yes.
0 — no.
1 — yes.
0 — no.
https://example.com:2087/xml-api/servicestatus in WebHost Manager will produce output similar to:
<servicestatus>
<result>
<status>1</status>
<statusmsg/>
</result>
<service>
<name>clamd</name>
<display_name>ClamAV Daemon</display_name>
<enabled>1</enabled>
<installed>0</installed>
<monitored>0</monitored>
</service>
<service>
<name>cpanellogd</name>
<display_name>cPanel Log and Bandwidth Processor</display_name>
<enabled>1</enabled>
<installed>1</installed>
<monitored>1</monitored>
</service>
<service>
<name>cpdavd</name>
<display_name>cPanel DAV Daemon</display_name>
<enabled>1</enabled>
<installed>1</installed>
<monitored>0</monitored>
</service>
<service>
<name>cpsrvd</name>
<display_name>cPanel Daemon</display_name>
<enabled>1</enabled>
<installed>1</installed>
<monitored>1</monitored>
</service>
</servicestatus>
https://example.com:2087/json-api/servicestatus will produce output similar to:
{
"result":{
"status":1,
"statusmsg":null
},
"service":[
{
"display_name":"ClamAV Daemon",
"installed":0,
"enabled":1,
"monitored":0,
"name":"clamd"
},
{
"display_name":"cPanel Log and Bandwidth Processor",
"installed":1,
"enabled":1,
"monitored":1,
"name":"cpanellogd"
},
{
"display_name":"cPanel DAV Daemon",
"installed":1,
"enabled":1,
"monitored":0,
"name":"cpdavd"
},
]
}