Module Expr Str Import alias Import alias Import alias Import alias FunctionDef arguments args NameParam NameParam defaults body Return BinOpMult BinOpDiv NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpMod Str TupleLoad BinOpDiv NameLoad Num BinOpDiv NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Return TupleLoad Num BinOpMod Str Call AttributeLoad NameLoad attr Assign NameStore IfExp CompareGtE Call NameLoad AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore IfExp CompareGtE Call NameLoad AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str If CompareNotEq BinOpAdd NameLoad NameLoad NameLoad body Return TupleLoad Num Str orelse If CompareLt NameLoad Call NameLoad NameLoad NameLoad body Return TupleLoad Num BinOpMod Str Call NameLoad NameLoad NameLoad orelse If CompareLt NameLoad Call NameLoad NameLoad NameLoad body Return TupleLoad Num BinOpMod Str Call NameLoad NameLoad NameLoad orelse Return TupleLoad Num BinOpMod Str Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq Call NameLoad NameLoad Num body Assign SubscriptStore NameLoad Index Num Call AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr Str If CompareEq SubscriptLoad NameLoad Index Num Str body Return TupleLoad Num BinOpAdd Str Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num orelse If CompareEq SubscriptLoad NameLoad Index Num Str body Return TupleLoad Num BinOpAdd Str Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num orelse If CompareEq SubscriptLoad NameLoad Index Num Str body Return TupleLoad Num BinOpAdd Str Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num orelse Return TupleLoad Num BinOpAdd Str Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Num decorator_list
N/A N/A  Nagios check using ceph health.
 N/A json N/A subprocess N/A sys N/A traceback per N/A N/A percent value N/A N/A N/A N/A N/A percent 100 value N/A remaning N/A N/A avail total N/A N/A N/A N/A (%dMB/%dMB) N/A N/A avail 1024 N/A total 1024 N/A interpret_output_df N/A N/A output N/A N/A N/A Parse the output of ceph health.

    Return an exit code and message compatible with nagios.

     N/A N/A N/A data N/A N/A json loads output N/A N/A N/A Exception N/A N/A N/A 1 N/A CEPH WARNING: unable to parse ceph df %s N/A N/A traceback format_exc N/A warn_percent N/A N/A N/A len N/A sys argv 2 N/A int N/A N/A sys argv N/A 1 85 N/A crit_percent N/A N/A N/A len N/A sys argv 3 N/A int N/A N/A sys argv N/A 2 98 N/A total N/A int N/A N/A data N/A stats N/A total_space N/A used N/A int N/A N/A data N/A stats N/A total_used N/A avail N/A int N/A N/A data N/A stats N/A total_avail N/A N/A N/A used avail total N/A N/A N/A 1 [WARN] Used + Avail. != Total space N/A N/A N/A avail N/A per crit_percent total N/A N/A N/A 2 N/A [ERR] Ceph df avail. critical %s N/A remaning avail total N/A N/A N/A avail N/A per warn_percent total N/A N/A N/A 1 N/A [WARN] Ceph df avail. waring %s N/A remaning avail total N/A N/A N/A 0 N/A [OK] Ceph df avail. seems good %s N/A remaning avail total N/A check_ceph_df N/A N/A N/A N/A N/A Program entry point. N/A N/A N/A res N/A N/A subprocess check_output N/A ceph df --format=json stderr N/A subprocess STDOUT N/A N/A exit_code message N/A interpret_output_df res N/A N/A N/A N/A sys stdout write N/A %s
 message N/A N/A N/A sys exit exit_code N/A N/A N/A N/A subprocess CalledProcessError N/A e N/A N/A N/A N/A N/A sys stdout write N/A CEPH UNKNOWN: %s
 N/A e output N/A N/A N/A sys exit 3 N/A N/A OSError N/A N/A N/A N/A N/A sys stdout write CEPH UNKNOWN: unable to launch ceph health
 N/A N/A N/A sys exit 3 N/A interpret_output_health N/A N/A output N/A N/A N/A Parse the output of ceph health.

    Return an exit code and message compatible with nagios.

     N/A tokens N/A N/A output split N/A N/A N/A len tokens 1 N/A N/A N/A tokens N/A 0 N/A N/A N/A tokens N/A 0 strip N/A N/A N/A tokens append N/A N/A N/A tokens N/A 0 HEALTH_OK N/A N/A N/A 0 N/A CEPH OK:  N/A N/A join N/A tokens N/A 1 N/A N/A N/A N/A tokens N/A 0 HEALTH_WARN N/A N/A N/A 1 N/A CEPH WARNING:  N/A N/A join N/A tokens N/A 1 N/A N/A N/A N/A tokens N/A 0 HEALTH_ERR N/A N/A N/A 2 N/A CEPH CRITICAL:  N/A N/A join N/A tokens N/A 1 N/A N/A N/A 3 N/A CEPH UNKNOWN:  N/A N/A join tokens N/A check_ceph_health N/A N/A N/A N/A N/A Program entry point. N/A N/A N/A res N/A N/A subprocess check_output N/A ceph health stderr N/A subprocess STDOUT N/A N/A exit_code message N/A interpret_output_health res N/A N/A N/A N/A sys stdout write message N/A N/A N/A sys exit exit_code N/A N/A N/A N/A subprocess CalledProcessError N/A e N/A N/A N/A N/A N/A sys stdout write N/A CEPH UNKNOWN: %s
 N/A e output N/A N/A N/A sys exit 3 N/A N/A OSError N/A N/A N/A N/A N/A sys stdout write CEPH UNKNOWN: unable to launch ceph health
 N/A N/A N/A sys exit 3 N/A