support warning and critical environment variables

Like the mainline plugins do.