VEH-14: Create Status Submodule



Issue Information

Issue Type: Task
 
Priority: Minor
Status: Closed

Reported By:
Ben Tasker
Assigned To:
Ben Tasker
Project: VehMan (VEH)
Resolution: Done (2013-11-02 18:22:45)
Target version: 1.0.1,
Components: Submodules ,
Labels: monitoring,

Created: 2013-10-24 06:03:04
Time Spent Working


Description
Create a sub-module to display the current API status

- Should return OK, Some Issues or Offline

Would like it to check DB connection is available amongst other things.

Should also provide an INT defining how long the command took to run (so grab a timestamp before doing anything, grab a timestamp once checks are done and subtract one from the other). This will allow the Nagios plugin to throw a warning/critical if the API is responding but taking a while to do so


Subtasks

VEH-15: Create Nagios Plugin
Toggle State Changes

Activity


btasker added 'monitoring' to labels
Implemented. Current responses are

All quiet on the western front


\{
"timestamp":1383416435,
"response":\{
"notes":[],
"maintenancemode":false,
"maintenancemessage":"",
"db":"OK"
\},
"errors":null,
"error":0
\}


Status - Site in maintenance mode

\{
"timestamp":1383416330,
"response":\{
"notes":[
"Other checks disabled as site under maintenance"
],
"maintenancemode":true,
"maintenancemessage":"Hello World"
\},
"errors":null,
"error":0
\}


*Global - API in maintenance mode (new config setting) *


\{
"timestamp":1383415891,
"response":[],
"errors":[
["API Unavailable","Hello World"]
],
"error":1
\}

btasker changed status from 'Open' to 'Resolved'
btasker added 'Done' to resolution
Basic functionality implemented
btasker changed status from 'Resolved' to 'Closed'