.pdf)
WHM Plugins
systemloadavg function from within your custom script:
/xml-api/=systemloadavg= 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/=systemloadavg=
systemloadavg function from within your custom script:
/json-api/=systemloadavg= 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/=systemloadavg=
1.
1 — Indicates success
0 — inidcates failure
1.
systemloadavg.
https://example.com:2087/xml-api/systemloadavg?api.version=1
will produce output similar to:
<result>
<data>
<one>0.01</one>
<five>0.00</five>
<fifteen>0.00</fifteen>
</data>
<metadata>
<result>1</result>
<reason>OK</reason>
<version>1</version>
<command>systemloadavg</command>
</metadata>
</result>
https://example.com:2087/json-api/systemloadavg?api.version=1
will produce output similar to:
{
"data":{
"one":"0.01",
"five":"0.01",
"fifteen":"0.00"
},
"metadata":{
"result":1,
"reason":"OK",
"version":1,
"command":"systemloadavg"
}
}