<s> from django . utils . translation import ugettext as _ <EOL> from freenasUI . middleware . notifier import notifier <EOL> from freenasUI . system . alert import alertPlugins , Alert , BaseAlert <EOL> class MultipathAlert ( BaseAlert ) : <EOL> def run ( self ) : <EOL> not_optimal = [ ] <EOL> for mp in notifier ( ) . multipath_all ( ) : <EOL> if mp . status != '<STR_LIT>' : <EOL> not_optimal . append ( mp . name ) <EOL> if not_optimal : <EOL> return [ <EOL> Alert ( <EOL> Alert . CRIT , <EOL> _ ( '<STR_LIT>' ) % ( <EOL> '<STR_LIT:U+002CU+0020>' . join ( not_optimal ) , <EOL> ) <EOL> ) <EOL> ] <EOL> alertPlugins . register ( MultipathAlert ) </s>
