Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct service check for ksm - cronjob #3937

Merged
merged 2 commits into from
Jun 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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."
}
]