Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Commit

Permalink
Add new staleness livestatus fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric Girard committed Mar 4, 2016
1 parent 52a81c6 commit dd1879d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions module/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,10 @@ def get_livestatus_full_name(item, req):
'function': lambda item, req: [get_livestatus_full_name(i, req) for i in item.source_problems], # REPAIRME MAYBE (separators in python and csv)
'datatype': list,
},
'staleness': {
'description': 'Indicator for outdated host checks (not implemented)',
'function': lambda item, req: 0, # REPAIRME
},
'state': {
'description': 'The current state of the host (0: up, 1: down, 2: unreachable)',
'function': lambda item, req: item.state_id,
Expand Down Expand Up @@ -1466,6 +1470,10 @@ def get_livestatus_full_name(item, req):
'function': lambda item, req: "", # REPAIRME
'datatype': list,
},
'staleness': {
'description': 'Indicator for outdated service checks (not implemented)',
'function': lambda item, req: 0, # REPAIRME
},
'state': {
'description': 'The current state of the service (0: OK, 1: WARN, 2: CRITICAL, 3: UNKNOWN)',
'function': lambda item, req: item.state_id,
Expand Down

0 comments on commit dd1879d

Please sign in to comment.