Skip to content

Commit

Permalink
Correct service check for ksm - cronjob (#3937)
Browse files Browse the repository at this point in the history
* on schedule check for sc

* fix typo
  • Loading branch information
David Bouchare authored and FlorianVeaux committed Jun 19, 2019
1 parent 15c76ee commit d910b3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions kubernetes_state/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ Returns `OK` otherwise.
Returns `CRITICAL` if a cluster node is in a network unavailable state.
Returns `OK` otherwise.

**kubernetes_state.cronjob.next_schedule_time**
Returns `CRITICAL` if a cron job does not have a next scheduled time for execution.
**kubernetes_state.cronjob.on_schedule_check**
Returns `CRITICAL` if a cron job scheduled time is in the past.
Returns `OK` otherwise.

## Troubleshooting
Expand Down
6 changes: 3 additions & 3 deletions kubernetes_state/assets/service_checks.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
{
"agent_version": "5.6.0",
"integration":"kubernetes",
"check": "kubernetes_state.cronjob.next_schedule_time",
"check": "kubernetes_state.cronjob.on_schedule_check",
"statuses": ["ok", "unknown", "critical"],
"groups": ["host", "node"],
"name": "CronJob next scheduled time",
"description": "Returns `CRITICAL` if a cron job does not have a next scheduled time for execution. Returns `UNKNOWN` if the scheduled time is unknown. Returns `OK` otherwise."
"name": "CronJob next schedule",
"description": "Returns `CRITICAL` if a cron job scheduled time is in the past. Returns `UNKNOWN` if the scheduled time is unknown. Returns `OK` otherwise."
}
]

0 comments on commit d910b3a

Please sign in to comment.