Skip to content

benkeil/check-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

check-k8s

The checks are mostly orientated by the offical nagios guidelines

Default Flags

flag short description
critical c defines a threshold for a critical return status
warning w defines a threshold for a critical return status
namespace n the namespace of the kubernetes resource
result r the service status if the check fails
duration d if you want to specify a duration where something must happen. https://golang.org/pkg/time/#ParseDuration
string s if you want to check if a property has a concrete value

Thresholds

https://nagios-plugins.org/doc/guidelines.html#THRESHOLDFORMAT

Range definition Generate an alert if x...
10 < 0 or > 10, (outside the range of {0 .. 10})
10: < 10, (outside {10 .. ∞})
~:10 > 10, (outside the range of {-∞ .. 10})
10:20 < 10 or > 20, (outside the range of {10 .. 20})
@10:20 ≥ 10 and ≤ 20, (inside the range of {10 .. 20}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published