replaced expires with warning and critical thresholds
Merge pull request #616 from oba11/adding-warning-check

replaced expires with warning and critical thresholds