Listing Failing Checks

Service name: list_failing_checks

Base URL

https://{SERVER}/api/?apikey={yourAPIkey}&service=list_failing_checks

Description

List all failing checks across all clients.

Parameters

Optional parameters

Add optional parameters immediately after the base URL.

https://{SERVER}/api/?apikey={yourAPIkey}&service=list_failing_checks&optional_parameters={parameter-value}
ParameterDescriptionTypeRequiredOptionsDefault
describeReturns a description of the service.booleannotrue0
clientidLists all failing checks for the specified Client.integerno00
check_typeOptional parameter to limit the returned information to:
  • *checks** - all failed checks excluding failed Windows Automated Tasks (id: 1023)
  • *tasks** - only display Windows Automated Task (id: 1023) failures
  • *random** - returns all failed checks
stringnochecks
tasks
random
0
📘

clientid Variable

We have included variables to reduce the volume of data handled by the API call and minimize the potential for timeout issues.

Where your account contains a large number of customers, we suggest using the per-Client clientid variable to retrieve the data related to a specific customer.

> 📘 https://{SERVER}/api/?apikey={yourAPIkey}&service=list_failing_checks&clientid={CLIENTID}

To limit the returned information to failed checks or tasks use the check_type variable. This can be set to all failures, only checks or Windows Automated Tasks (check type id: 1023) failures.

> 📘 https://{SERVER}/api/?apikey={yourAPIkey}&service=list_failing_checks&check_type={CHECK_TYPE}

You can also combined both parameters in the one call:

> 📘 https://{SERVER}/api/?apikey={yourAPIkey}&service=list_failing_checks&clientid={CLIENTID}&check_type={CHECK_TYPE}

Determine parameter values

Use the following associated service calls to determine parameter values.

ParameterCallURL Format
clientidlist_clientshttps://{SERVER}/api/?apikey={yourAPIkey}&service=list_clients

Examples

List Failing Checks

https://{SERVER}/api/?apikey={yourAPIkey}&service=list_failing_checks

Example response

<?xml version="1.0" ?> 
<result created="2024-09-24T12:28:44+01:00" host="SERVER" status="OK">
  <items>
   <client>
     <clientid>1234</clientid>
     <name>My Client</name>
     <site>
      <siteid>123</siteid>
      <name>My Site</name>
      <workstations>
        <workstation>
         <id>12</id>
         <name>My Workstation</name>
          [if device is offline]
         <offline>
           <description>offline - maintenance mode</description>
           <startdate>2010-01-28</startdate>
           <starttime>14:47:34</starttime>
         </offline>
         <failed_checks>
           <check>
             <checkid>23</checkid>
 <check_type>1012</check_type>

             <dsc_247>1</dsc_247>
             <description>Windows Service Check - Fax</description>
             <date>2010-01-28</date>
             <time>14:47:34</date>
             <formatted_output>Status: STOPPED</formatted_output>
<checkstatus>testerror</checkstatus>
           </check>
           ... more check nodes
         </failed_checks>
        </workstation>
        .... more nodes
      </workstations>
      <servers>
        <server>
         <id>12</id>
         <name>My Workstation</name>
          [if device is offline]
         <offline>
           <description>offline - maintenance mode</description>
           <startdate>2010-01-28</startdate>
           <starttime>14:47:34</starttime>
         </offline>
         [if device is overdue]
         <overdue>
           <description>Overdue</description>
           <startdate>2010-01-28</startdate>
           <starttime>14:47:34</starttime>
         </overdue>
         [if device is unreachable]
         <unreachable>
           <description>Site Unreachable</description>
           <startdate>2010-01-28</startdate>
           <starttime>14:47:34</starttime>
         </unreachable>
         <failed_checks>
           <check>
             <checkid>23</checkid>
<check_type>1012</check_type>
             <dsc_247>1</dsc_247>
             <description>Backup Check - Veritas Backup Exec v10.0</description>
             <date>2010-01-28</date>
             <time>14:47:34</date>
             <startdate>2024-11-19</startdate>
             <starttime>22:17:32</starttime>
             <formatted_output>Backup status can not be determined</formatted_output>
<checkstatus>testerror</checkstatus>
           </check>
           ... more check nodes
         </failed_checks>
        </server>
         ... more server node if any
      </servers>
     </site>
     ..... more site nodes
   </client>
    ..... more client nodes
  </items>
</result>

List Failing Checks with Client ID

https://{SERVER}/api/?apikey={yourAPIkey}&service=list_failing_checks&clientid=[CLIENTID]

Example response

<?xml version="1.0" ?> 
<result created="2024-09-24T12:28:44+01:00" host="SERVER" status="OK">
  <items>
   <client>
     <clientid>1234</clientid>
     <name>My Client</name>
     <site>
      <siteid>123</siteid>
      <name>My Site</name>
      <workstations>
        <workstation>
         <id>12</id>
         <name>My Workstation</name>
          [if device is offline]
         <offline>
           <description>offline - maintenance mode</description>
           <startdate>2010-01-28</startdate>
           <starttime>14:47:34</starttime>
         </offline>
         <failed_checks>
           <check>
             <checkid>23</checkid>
 <check_type>1012</check_type>

             <dsc_247>1</dsc_247>
             <description>Windows Service Check - Fax</description>
             <date>2010-01-28</date>
             <time>14:47:34</date>
             <formatted_output>Status: STOPPED</formatted_output>
<checkstatus>testerror</checkstatus>
           </check>
           ... more check nodes
         </failed_checks>
        </workstation>
        .... more nodes
      </workstations>
      <servers>
        <server>
         <id>12</id>
         <name>My Workstation</name>
          [if device is offline]
         <offline>
           <description>offline - maintenance mode</description>
           <startdate>2010-01-28</startdate>
           <starttime>14:47:34</starttime>
         </offline>
         [if device is overdue]
         <overdue>
           <description>Overdue</description>
           <startdate>2010-01-28</startdate>
           <starttime>14:47:34</starttime>
         </overdue>
         [if device is unreachable]
         <unreachable>
           <description>Site Unreachable</description>
           <startdate>2010-01-28</startdate>
           <starttime>14:47:34</starttime>
         </unreachable>
         <failed_checks>
           <check>
             <checkid>23</checkid>
<check_type>1012</check_type>
             <dsc_247>1</dsc_247>
             <description>Backup Check - Veritas Backup Exec v10.0</description>
             <date>2010-01-28</date>
             <time>14:47:34</date>
             <startdate>2024-11-19</startdate>
             <starttime>22:17:32</starttime>
             <formatted_output>Backup status can not be determined</formatted_output>
<checkstatus>testerror</checkstatus>
           </check>
           ... more check nodes
         </failed_checks>
        </server>
         ... more server node if any
      </servers>
     </site>
     ..... more site nodes
   </client>
  </items>
</result>

List Failing Checks with Check Type

https://{SERVER}/api/?apikey={yourAPIkey}&service=list_failing_checks&check_type=[CHECK_TYPE]

Example response

<?xml version="1.0" ?> 
<result created="2024-09-24T12:28:44+01:00" host="SERVER" status="OK">
  <items>
   <client>
     <clientid>1234</clientid>
     <name>My Client</name>
     <site>
      <siteid>123</siteid>
      <name>My Site</name>
      <workstations>
        <workstation>
         <id>12</id>
         <name>My Workstation</name>
          [if device is offline]
         <offline>
           <description>offline - maintenance mode</description>
           <startdate>2010-01-28</startdate>
           <starttime>14:47:34</starttime>
         </offline>
         <failed_checks>
           <check>
             <checkid>23</checkid>
 <check_type>1012</check_type>

             <dsc_247>1</dsc_247>
             <description>Windows Service Check - Fax</description>
             <date>2010-01-28</date>
             <time>14:47:34</date>
             <formatted_output>Status: STOPPED</formatted_output>
<checkstatus>testerror</checkstatus>
           </check>
           ... more check nodes
         </failed_checks>
        </workstation>
        .... more nodes
      </workstations>
      <servers>
        <server>
         <id>12</id>
         <name>My Workstation</name>
          [if device is offline]
         <offline>
           <description>offline - maintenance mode</description>
           <startdate>2010-01-28</startdate>
           <starttime>14:47:34</starttime>
         </offline>
         [if device is overdue]
         <overdue>
           <description>Overdue</description>
           <startdate>2010-01-28</startdate>
           <starttime>14:47:34</starttime>
         </overdue>
         [if device is unreachable]
         <unreachable>
           <description>Site Unreachable</description>
           <startdate>2010-01-28</startdate>
           <starttime>14:47:34</starttime>
         </unreachable>
         <failed_checks>
           <check>
             <checkid>23</checkid>
<check_type>1012</check_type>
             <dsc_247>1</dsc_247>
             <description>Backup Check - Veritas Backup Exec v10.0</description>
             <date>2010-01-28</date>
             <time>14:47:34</date>
             <startdate>2024-11-19</startdate>
             <starttime>22:17:32</starttime>
             <formatted_output>Backup status can not be determined</formatted_output>
<checkstatus>testerror</checkstatus>
           </check>
           ... more check nodes
         </failed_checks>
        </server>
         ... more server node if any
      </servers>
     </site>
     ..... more site nodes
   </client>
  </items>
</result>

Returned Fields

FieldTypeCan Be EmptyDescription
client/clientidintegernoUnique identifier of client
client/namestringnoName of the client
client/site/siteidintegernoUnique identifier of site
client/site/namestringnoName of site
client/site/workstations/workstation/idintegernoUnique identifier of workstation
client/site/workstations/workstation/namestringnoName of workstation
client/site/workstations/workstation/check/checkidintegernoUnique identifier of a check
client/site/workstations/workstation/check/check_typeintegrernoThe type of check (see below section check_type)
client/site/workstations/workstation/check/dsc_247integernoIs the check a Daily Safety Check, 24x7 Check, Scheduled Task or special case?
Unique ID | Descriptive Name
1 | 24x7 check
2 | Daily Safety Check
3 | Scheduled Task
4 | Managed Antivirus Check
6 | Backup & Recovery Selected Size Check
client/site/workstations/workstation/check/descriptionstringnoCheck description
client/site/workstations/workstation/check/datedatenoDate of the last fail
client/site/workstations/workstation/check/timetimenoTime of the last fail
client/site/workstations/workstation/check/formatted_outputstringnoDescription of the problem
client/site/workstations/workstation/check/checkstatusstringnoCurrent Status of the Check
State | Dashboard Equivalent
testok | green tick
testerror | red tick
testalertdelayed | yellow tick
testcleared | orange tick
test_inactive | clear circle
testok_inactive | clear tick
testerror_inactive | clear cross
client/site/workstations/workstation/offline/descriptionstringnoDescription of offline status
client/site/workstations/workstation/offline/startdatedatenoDate since it is offline
client/site/workstations/workstation/offline/starttimetimenoTime since it is offline
client/site/servers/server/idintegernoUnique identifier of server
client/site/servers/server/namestringnoName of server
client/site/servers/server/offline/descriptionstringnoDescription of offline status
client/site/servers/server/offline/startdatedatenoDate since it is offline
client/site/servers/server/offline/starttimetimenoTime since it is offline
client/site/servers/server/overdue/descriptionstringnoDescription of overdue status
client/site/servers/server/overdue/startdatedatenoDate since it is overdue
client/site/servers/server/overdue/starttimetimenoTime since it is overdue
client/site/servers/server/unreachable/descriptionstringnoDescription of unreachable status
client/site/servers/server/unreachable/startdatedatenoDate since it is unreachable
client/site/servers/server/unreachable/starttimetimenoTime since it is unreachable
client/site/servers/server/check/checkidintegernoUnique identifier of a check
client/site/servers/server/check/check_typeintegrernoThe type of check (see below section check_type)
client/site/servers/server/check/dsc_247integernoIs the check a Daily Safety Check, 24x7 Check, Scheduled Task or special case?
Unique ID | Descriptive Name
1 | 24x7 check
2 | Daily Safety Check
3 | Scheduled Task
4 | Managed Antivirus Check
6 | Backup & Recovery Selected Size Check
client/site/servers/server/check/descriptionstringnoCheck description
client/site/servers/server/check/datedatenoDate of the last fail
client/site/servers/server/check/timetimenoTime of the last fail
client/site/servers/server/check/startdatedatenoDate when check started failing
client/site/servers/server/check/starttimetimenoTime when check started failing
client/site/servers/server/check/formatted_outputstringnoDescription of the problem
client/site/servers/server/check/checkstatusstringnoCurrent Status of the Check
State | Dashboard Equivalent
testok | green tick
testerror | red tick
testalertdelayed | yellow tick
testcleared | orange tick
test_inactive | clear circle
testok_inactive | clear tick
testerror_inactive | clear cross
check_typeintegernoThe type of check.
Unique ID | Descriptive name
Windows
1001 | Antivirus Update Check
1002 | Backup Check    
1003 | Drive Space Change Check  
1004 | Disk Space Check
1005 | Exchange Store Size  
1006 | Failed Login Check*    
1007 | Performance Monitoring Check
1008 | Physical Disk Health Check
1009 | Physical Memory Health Check - Deprecated
1010 | PING Check    
1011 | TCP Service Check  
1012 | Web Page Check  
1013 | Windows Service Check  
1014 | Critical Events Check
1015 | SNMP Check
1018 | Bandwidth Monitoring
1019 | File Size Check
1020 | Event Log Check
1021 | WSUS Check
1022 | Auto-Start Service Check
1023 | Script or Automated Task
1024 | Script Check
1025 | Vulnerability Check
1026 | Managed Antivirus Check (VIPRE)
1030 | Backup & Recovery Selected Size Check
1033 | Web Protection Bandwidth Check
1034 | Managed Antivirus Check (Bitdefender)
Linux
2001 | Antivirus Update Check
2002 | Backup Check
2003 | File System Space Change Check
2004 | File System Space Check
2005 | MTA Queue Length
2006 | Failed Login Check *
2007 | Performance Monitoring Check
2008 | Physical Disk Health
2009 | Physical Memory Health Check
2010 | PING Check
2011 | TCP Service Check
2012 | Web Page Check
2013 | Daemon Check
2015 | SNMP Check
2018 | Bandwidth Monitoring Check
2024 | Script Check
2027 | Process Check
2028 | Log File Check
2029 | MySQL Check
2031 | Package Manager Check
macOS
3003 | OS X File System Space Change Check
3004 | OS X File System Space Check
3006 | OS X Failed Login Check
3008 | OS X Physical Disk Health Check
3013 | OS X Daemon Check
3014 | Apple system Log Check
3021 | OS X Update Check
3024 | OS X Script Check
3027 | OS X Process Check
3028 | OS X Log File Check

Did this page help you?