I'd add something like:
and $sslport 
so that I the user specify something like sslport = false , there's no monitoring