Icinga Camp Berlin 2017 - How to write check plugins, part 1
1. How do I write check plugins?!
● Write in any language!
● (Maybe not COBOL)
● State is determined by exit
code
● Check Output is just console
output
● Performance Data is space
seperated list after pipe
symbol
Mattis Haase Icinga Camp Berlin 2017
Status Exit Code
OK 0
WARNING 1
CRITICAL 2
UNKNOWN 3
print(“Output!”)
print(“Output!|key1=1 key2=2”)
2. But how does it work, really?
1. Gather Information
2. Parse Information
3. Internal Logic
4. Translate to Human
Mattis Haase Icinga Camp Berlin 2017
Maybe 10 lines of code
Tricky Part!
This Talk!