Software Development Kit

cPanel & WHM's API [+] cPanel & WHM's API [-]


Modules and Plugins [+] Modules and Plugins [-]


cPanel & WHM Hooks [+] cPanel & WHM Hooks [-]


cPAddons (Site Software) [+] cPAddons (Site Software) [-]


System Administration [+] System Administration [-]


Developer Software [+] Developer Software [-]


Back to All Documentation



integrationblogcta.jpg

Serverinfo Module Documentation

Allows for a user to retrieve the server status

The functions within this module may or may not be governed by a feature list. The required feature list may vary from function to function, to review a total list of the available features sets on a cPanel server, please see "Feature Manager" in WHM.

Serverinfo::servicestatus

API Version: 1 - Click here for documentation
Syntax: Serverinfo::servicestatus( )
Description: Print HTML that includes information about the status of services that are monitored by chkservd.
Returns:  
 
The output should resemble the following:
<tr class="statusrow">
<td class="statuscell">exim-12</td>
<td class="statuscell">up</td>
<td class="statuscell"><img src="/green-status.gif"></td>
</tr>
<tr class="statusrow">
<td class="statuscell">mysql (5.0.89-community)</td>
<td class="statuscell">down</td>
<td class="statuscell"><img src="/red-status.gif"></td>
</tr>
<tr class="statusrow">
<td class="statuscell">cpsrvd</td>
<td class="statuscell">up</td>
<td class="statuscell"><img src="/green-status.gif"></td>
</tr>
<tr class="statusrow">
<td class="statuscell">imap</td>
<td class="statuscell">up</td>
<td class="statuscell"><img src="/green-status.gif"></td>
</tr>
... etc.

Topic revision: r2 - 27 Mar 2012 - 19:19:53 - Main.JenniferDoubrava