cron runs /usr/local/www/freenasUI/tools/alert.py every 5 minutes. That script calls (among other things) zpool status, parses the output and drives the alert light in the GUI (upper right). It is also supposed to send an email if the pool is degraded, but that is currently broken. It will be fixed in the next release: https://bugs.freenas.org/issues/3145