Ad Widget

Collapse

Zabbix serviceGet service Time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • imjules
    Junior Member
    • Sep 2015
    • 11

    #1

    Zabbix serviceGet service Time

    Hello I have some services and I want to get their "uptime" with the API.
    I have already the SLA with this code:

    PHP Code:
    $apiT = new ZabbixApi($apiurl$user$passwd);
        
    $apiT->setDefaultParams(array(
            
    'output' => 'extend',
            
    'serviceids' => $idT,
            
    'intervals' => array(
                
    'from' => time(),
                
    'to' => time()
            )
        ));
        
    $slaT $apiT->serviceGetTimes();
        
    $arrayT json_encode($slaTtrue);
        
    $jsonArrT json_decode($arrayTtrue);
        
        
    $StringDataT $jsonArrT[62]['sla'][0]['sla']; 
    But now I want to get the Service Time but I can't find a solution...
    Last edited by imjules; 29-09-2015, 15:56. Reason: no answers
Working...