diff --git a/kubernetes_state/README.md b/kubernetes_state/README.md index fba1c465dc9ed..1789a75d1ec81 100644 --- a/kubernetes_state/README.md +++ b/kubernetes_state/README.md @@ -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 diff --git a/kubernetes_state/assets/service_checks.json b/kubernetes_state/assets/service_checks.json index 2eb1557cde7da..5bd211e5f425b 100644 --- a/kubernetes_state/assets/service_checks.json +++ b/kubernetes_state/assets/service_checks.json @@ -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." } ]