Skip to content

Monitors sites with MangOH Green polling JSON to find key status words. In specific, I manage to use it to monitor Jenkins builds continuously since the builds can take up to two hours long

Notifications You must be signed in to change notification settings

JimmyHuang0904/MonitorApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TrafficLight App

Description

TrafficLight App is primarily used to monitor the last complete build of any Jenkins job results. It polls a settable URL at a settable interval that can be displayed on the device config tree or LE_INFO logs. The user can toggle exitCodeCheck and contentCodeCheck in the config tree to individually check the results of the HTTP Code, content result, or both (See States below).

This was developed using:

Schematic Diagram

TrafficLight Schematic

States

exitCodeCheck contentCodeCheck HTTP Code Light Output
true true 200 contentState
true true !200 LIGHT_RED
true false 200 LIGHT_GREEN
true false !200 LIGHT_RED
false true N/A contentState
false false N/A LIGHT_GREEN

contentState

Light Output Status
LIGHT_GREEN SUCCESS
LIGHT_YELLOW ABORTED
" UNSTABLE
LIGHT_RED FAILURE
" NULL (cannot find keyword)

cURL ERROR also defaults to LIGHT_YELLOW for easy debugging issues

Picture

This is what it looks like in action! At the time of this picture, it was monitoring our merges and it seems like we are doing a good job 😀 This is what it looks like in action

About

Monitors sites with MangOH Green polling JSON to find key status words. In specific, I manage to use it to monitor Jenkins builds continuously since the builds can take up to two hours long

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages