Made check() in Plugin do something with warning and critical values