Description

This function displays the status of services that the chkservd daemon monitors.

Examples 




$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$list_servicestatus = $cpanel->api1('Serverinfo','servicestatus'); // Call the function.



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $list_servicestatus = $cpliveapi->api1('Serverinfo','servicestatus'); # Call the function.

 


<cpanel Module="Serverinfo::servicestatus()">




cpapi1 --user=username Serverinfo servicestatus


 

 

<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>




Parameters

This function does not accept parameters.

Returns

This function returns a table of the status of services that the chkservd daemon monitors.