Methods > glpi.status

Version Comments
1.3.0 No change
1.2.0 Multiple slave check
0.2.0 Method added

Give the GLPI status

input a hastable of option

  • help option to get usage information

return a hashtable

  • slavedb_xxx (ok / offline / time diff)
  • maindb (ok / offline)
  • sessiondir (ok / not writable)
  • OCS_xxx (ok / offline)
  • LDAP_yyy (ok / offline)
  • glpi (ok / error : global status)

Call example

$ php testxmlrpc.php --method=glpi.status               
+ Calling 'glpi.status' on http://localhost//glpi072/plugins/webservices/xmlrpc.php
+ Response: Array
(
    [slavedb_0] => ok
    [slavedb_1] => ok
    [maindb] => ok
    [sessiondir] => ok
    [OCS_GEDIFF] => ok
    [LDAP_LDAP-National] => ok
    [glpi] => ok
)

slavedb check report as a failure if one of the configured slave is offline or have more than 1 hour of delay from the master.