support warning and critical environment variables

Like the mainline plugins do.
Merge pull request #243 from steveschnepp/warncritenv

support warning and critical environment variables