log level support

I wanted to use this script with nagios, which supports critical, warning, ok, unknown as status levels. Added the -l option to pass the state and override the color.