Module Import alias Import alias Import alias Import alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str ImportFrom alias Expr Call AttributeLoad NameLoad attr ImportFrom alias Assign NameStore Dict Str Str Str Str Num Num Num Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Return BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad keyword Str keyword BinOpMod Str TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Num If CompareNotIn Call AttributeLoad NameLoad attr TupleLoad Str Str Str Str Str body Raise Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num If CompareNotEq AttributeLoad NameLoad attr Num body Print Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Print Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign TupleStore NameStore NameStore NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Slice Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Str body Assign NameStore BinOpDiv BinOpMult BinOpAdd NameLoad NameLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Num orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str If CompareLt NameLoad NameLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad Str attr Expr Call AttributeLoad NameLoad attr Num orelse TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Pass decorator_list If CompareEq NameLoad Str body Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num
N/A N/A argparse N/A decimal N/A os N/A re N/A subprocess N/A sys N/A N/A N/A N/A sys path extend N/A /usr/local/www /usr/local/www/freenasUI N/A N/A N/A N/A os environ setdefault DJANGO_SETTINGS_MODULE freenasUI.settings django.db.models.loading cache N/A N/A N/A cache get_apps freenasUI.common.system send_mail N/A TO_MB N/A T G M K 1048576 1024 1 N/A N/A decimal Decimal 0.0009765625 to_mbytes N/A N/A string N/A N/A N/A unit N/A N/A N/A string N/A -1 upper N/A value N/A N/A decimal Decimal N/A string N/A -1 N/A N/A value N/A N/A TO_MB get unit 1 N/A email N/A N/A dataset threshold avail N/A N/A N/A N/A send_mail subject Volume threshold text N/A Hi,

Your volume %s has reached the threshold of %s.
Currently there is %s of available space.
 N/A dataset threshold avail N/A _size_or_perc N/A N/A string N/A N/A N/A last N/A string N/A -1 N/A N/A N/A N/A last upper N/A T G M K % N/A N/A N/A N/A argparse ArgumentTypeError This is not a valid size, use a suffix: T, G, M, K or % N/A string N/A main N/A N/A argv N/A N/A N/A parser N/A N/A argparse ArgumentParser N/A N/A N/A parser add_argument -d --dataset required True type str N/A N/A N/A parser add_argument -t --threshold required True type _size_or_perc N/A args N/A N/A parser parse_args argv N/A pipe N/A N/A subprocess Popen N/A /sbin/zfs list -Hr stdout N/A subprocess PIPE stdin N/A subprocess PIPE N/A output N/A N/A N/A pipe communicate N/A 0 N/A N/A N/A pipe returncode 0 N/A N/A Dataset not found N/A N/A N/A sys exit 1 N/A reg N/A N/A re search N/A ^%s\b.* N/A N/A args dataset output N/A re M N/A N/A reg N/A N/A Dataset not found N/A N/A N/A sys exit 1 N/A line N/A N/A reg group 0 N/A N/A o_used o_avail o_refer N/A N/A N/A line split N/A 1 4 N/A used N/A to_mbytes o_used N/A avail N/A to_mbytes o_avail N/A N/A N/A N/A args threshold N/A -1 % N/A N/A threshold N/A N/A N/A used avail N/A N/A decimal Decimal N/A N/A args threshold N/A -1 100 N/A N/A threshold N/A to_mbytes N/A args threshold N/A sentinel_file N/A /var/tmp/check_space.%s N/A N/A N/A N/A args dataset replace / _ N/A N/A avail threshold N/A N/A N/A N/A N/A N/A os path exists sentinel_file N/A N/A N/A email N/A args dataset N/A args threshold o_avail N/A N/A N/A N/A open sentinel_file w close N/A N/A N/A sys exit 2 N/A N/A N/A N/A N/A N/A os unlink sentinel_file N/A N/A N/A N/A N/A N/A N/A __name__ __main__ N/A N/A N/A main N/A N/A sys argv N/A 1