Module Expr Str Import alias Import alias ImportFrom alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias identifier TryExcept body ImportFrom alias ImportFrom alias Assign NameStore Num handlers ExceptHandler type NameLoad body Assign NameStore Num Assign NameStore Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Dict Assign NameStore Dict Assign NameStore Dict Assign NameStore ListLoad Str Str Str Str Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str For NameStore NameLoad body Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr Str body If CompareIn AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad body Assign SubscriptStore NameLoad Index AttributeLoad Call AttributeLoad NameLoad attr Str attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Str Num Call AttributeLoad NameLoad attr Str Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr Str NameLoad For NameStore NameLoad body Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr Str body If CompareIn AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad body Assign SubscriptStore NameLoad Index AttributeLoad Call AttributeLoad NameLoad attr Str attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Str Num Call AttributeLoad NameLoad attr Str Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr Str NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Assign NameStore BinOpDiv BinOpMult Num BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad If CompareIn SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str attr NameLoad orelse Assign SubscriptStore NameLoad Index SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str ListLoad NameLoad For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpDiv Call NameLoad SubscriptLoad NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str BinOpAdd Str NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body If CompareEq AttributeLoad Call AttributeLoad NameLoad attr Str attr Str body Assign NameStore Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr attr Str Break For NameStore NameLoad body If CompareEq AttributeLoad Call AttributeLoad NameLoad attr Str attr Str body Assign NameStore Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr attr Str Break If BoolOpOr UnaryOpNot CompareIs Call NameLoad NameLoad NameLoad UnaryOpNot CompareIs Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Return Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num For NameStore NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpSub NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Str SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Num For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr Str Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Num For NameStore NameLoad body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr If UnaryOpNot CompareEq NameLoad Str body Continue Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr If CompareEq NameLoad Str body AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr Str Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Dict Assign NameStore Call NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr If UnaryOpNot CompareEq AttributeLoad Call AttributeLoad NameLoad attr Str attr Str body Continue Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr If CompareIn NameLoad NameLoad body AugAssignAdd SubscriptStore NameLoad Index NameLoad Num orelse Assign SubscriptStore NameLoad Index NameLoad Num For NameStore NameLoad body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Str SubscriptLoad NameLoad Index NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Str Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Print Call AttributeLoad NameLoad attr Return Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpAdd BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str NameLoad AugAssignAdd NameStore BinOpAdd Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Expr Str Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return If CompareIn NameLoad AttributeLoad NameLoad attr body Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list
N/A N/A  This collector retrieves disk information from netapp filers

    !Thread-safe!

    The following metrics are measured in this diamond collector:
        * Number of disk in spare pool and not zeroed.
        * Number of spare disks per disk type, ie SAS/SATA
        * Number of disk in 'maintenance center'
        * monitor CP
        * Monitor average disk busyness per aggregate.

        Config File:
            [devices]
            [[filer-corp-201]] <--- You can have as many filers as you want!
            ip = 192.168.1.45
            user = netapp_monitor
            password = b0bl0rd!

 N/A diamond.collector N/A time diamond.metric Metric N/A N/A N/A xml.etree.ElementTree ET N/A N/A N/A ImportError N/A N/A cElementTree ET N/A N/A netappsdk.NaServer * netappsdk.NaElement * N/A netappsdk 0 N/A N/A N/A ImportError N/A N/A netappsdk 1 N/A __author__ peter@phyn3t.com netappDiskCol N/A object N/A N/A  Our netappDisk Collector
     __init__ N/A N/A self device ip user password parent N/A N/A N/A  Collectors our metrics for our netapp filer
         N/A N/A self device device N/A N/A self ip ip N/A N/A self netapp_user user N/A N/A self netapp_password password N/A N/A self path_prefix N/A parent N/A 0 N/A N/A self publish_metric N/A parent N/A 1 N/A N/A self log N/A parent N/A 2 N/A N/A N/A self _netapp_login N/A disk_xml N/A N/A self get_netapp_elem N/A NaElement disk-list-info disk-details N/A storage_disk_xml N/A N/A self get_netapp_elem N/A NaElement storage-disk-get-iter attributes-list N/A N/A N/A self zero_disk disk_xml N/A N/A N/A self spare_disk disk_xml N/A N/A N/A self maintenance_center storage_disk_xml N/A N/A N/A self consistency_point N/A N/A N/A self agr_busy N/A agr_busy N/A N/A self N/A N/A N/A  Collector for average disk busyness per aggregate

            As of Nov 22nd 2013 there is no API call for agr busyness.
            You have to collect all disk busyness and then compute agr
            busyness. #fml

         N/A c1 N/A N/A c2 N/A N/A disk_results N/A N/A agr_results N/A N/A names N/A disk_busy base_for_disk_busy raid_name base_for_disk_busy instance_uuid N/A netapp_api N/A NaElement perf-object-get-instances N/A N/A N/A netapp_api child_add_string objectname disk N/A disk_1 N/A N/A self get_netapp_elem netapp_api instances N/A N/A N/A time sleep 1 N/A disk_2 N/A N/A self get_netapp_elem netapp_api instances N/A instance_data disk_1 N/A N/A temp N/A N/A element N/A N/A instance_data findall .//counters/counter-data N/A N/A N/A N/A N/A N/A element find name text names N/A N/A N/A temp N/A N/A N/A N/A element find name text N/A N/A N/A element find value text N/A agr_name N/A temp N/A raid_name N/A agr_name N/A agr_name N/A N/A N/A agr_name find / 0 N/A N/A agr_name find / 1 N/A N/A temp N/A raid_name N/A N/A agr_name lstrip / N/A N/A c1 N/A N/A N/A temp pop instance_uuid temp N/A instance_data disk_2 N/A N/A temp N/A N/A element N/A N/A instance_data findall .//counters/counter-data N/A N/A N/A N/A N/A N/A element find name text names N/A N/A N/A temp N/A N/A N/A N/A element find name text N/A N/A N/A element find value text N/A agr_name N/A temp N/A raid_name N/A agr_name N/A agr_name N/A N/A N/A agr_name find / 0 N/A N/A agr_name find / 1 N/A N/A temp N/A raid_name N/A N/A agr_name lstrip / N/A N/A c2 N/A N/A N/A temp pop instance_uuid temp N/A item c1 N/A N/A t_c1 N/A int N/A N/A c1 N/A item N/A disk_busy N/A t_b1 N/A int N/A N/A c1 N/A item N/A base_for_disk_busy N/A t_c2 N/A int N/A N/A c2 N/A item N/A disk_busy N/A t_b2 N/A int N/A N/A c2 N/A item N/A base_for_disk_busy N/A disk_busy N/A N/A 100 N/A t_c2 t_c1 N/A t_b2 t_b1 N/A N/A N/A N/A c1 N/A item N/A raid_name disk_results N/A N/A N/A N/A N/A disk_results N/A N/A N/A c1 N/A item N/A raid_name append disk_busy N/A N/A N/A disk_results N/A N/A N/A c1 N/A item N/A raid_name N/A disk_busy N/A aggregate disk_results N/A N/A N/A agr_results N/A aggregate N/A N/A sum N/A disk_results N/A aggregate N/A len N/A disk_results N/A aggregate N/A aggregate agr_results N/A N/A N/A N/A self push avg_busy N/A aggregate. aggregate N/A agr_results N/A aggregate N/A consistency_point N/A N/A self N/A N/A N/A  Collector for getting count of consistancy points
         N/A cp_delta N/A N/A xml_path instances/instance-data/counters N/A netapp_api N/A NaElement perf-object-get-instances N/A N/A N/A netapp_api child_add_string objectname wafl N/A instance N/A NaElement instances N/A N/A N/A instance child_add_string instance wafl N/A counter N/A NaElement counters N/A N/A N/A counter child_add_string counter cp_count N/A N/A N/A netapp_api child_add counter N/A N/A N/A netapp_api child_add instance N/A cp_1 N/A N/A self get_netapp_elem netapp_api xml_path N/A N/A N/A time sleep 3 N/A cp_2 N/A N/A self get_netapp_elem netapp_api xml_path N/A element cp_1 N/A N/A N/A N/A N/A N/A element find name text cp_count N/A N/A cp_1 N/A N/A N/A N/A N/A element find value text rsplit , N/A N/A element cp_2 N/A N/A N/A N/A N/A N/A element find name text cp_count N/A N/A cp_2 N/A N/A N/A N/A N/A element find value text rsplit , N/A N/A N/A N/A N/A N/A type cp_2 list N/A N/A N/A type cp_1 list N/A N/A N/A N/A log error N/A consistency point data not available for filer: %s N/A self device N/A N/A cp_1 N/A wafl_timer snapshot wafl_avail_bufs dirty_blk_cnt full_nv_log b2b flush_gen sync_gen def_b2b con_ind_pin low_mbuf_gen low_datavec_gen N/A cp_1 N/A 0 N/A cp_1 N/A 1 N/A cp_1 N/A 2 N/A cp_1 N/A 3 N/A cp_1 N/A 4 N/A cp_1 N/A 5 N/A cp_1 N/A 6 N/A cp_1 N/A 7 N/A cp_1 N/A 8 N/A cp_1 N/A 9 N/A cp_1 N/A 10 N/A cp_1 N/A 11 N/A cp_2 N/A wafl_timer snapshot wafl_avail_bufs dirty_blk_cnt full_nv_log b2b flush_gen sync_gen def_b2b con_ind_pin low_mbuf_gen low_datavec_gen N/A cp_2 N/A 0 N/A cp_2 N/A 1 N/A cp_2 N/A 2 N/A cp_2 N/A 3 N/A cp_2 N/A 4 N/A cp_2 N/A 5 N/A cp_2 N/A 6 N/A cp_2 N/A 7 N/A cp_2 N/A 8 N/A cp_2 N/A 9 N/A cp_2 N/A 10 N/A cp_2 N/A 11 N/A item cp_1 N/A N/A c1 N/A int N/A cp_1 N/A item N/A c2 N/A int N/A cp_2 N/A item N/A N/A cp_delta N/A item N/A c2 c1 N/A item cp_delta N/A N/A N/A N/A self push N/A item _CP system.system N/A cp_delta N/A item N/A maintenance_center N/A N/A self storage_disk_xml N/A None N/A N/A  Collector for how many disk(s) are in NetApp maintenance center

            For more information on maintenance center please see:
              bit.ly/19G4ptr

         N/A disk_in_maintenance 0 N/A filer_disk storage_disk_xml N/A N/A disk_status N/A N/A filer_disk find disk-raid-info/container-type N/A N/A N/A disk_status text maintenance N/A N/A disk_in_maintenance 1 N/A N/A N/A self push maintenance_disk disk disk_in_maintenance N/A zero_disk N/A N/A self disk_xml N/A None N/A N/A  Collector and publish not zeroed disk metrics
         N/A troubled_disks 0 N/A filer_disk disk_xml N/A N/A raid_state N/A N/A N/A filer_disk find raid-state text N/A N/A N/A raid_state spare N/A N/A N/A is_zeroed N/A N/A N/A filer_disk find is-zeroed text N/A N/A is_zeroed false N/A N/A troubled_disks 1 N/A N/A N/A self push not_zeroed disk troubled_disks N/A spare_disk N/A N/A self disk_xml N/A None N/A N/A  Number of spare disk per type.

            For example: storage.ontap.filer201.disk.SATA

         N/A spare_disk N/A N/A disk_types N/A set N/A filer_disk disk_xml N/A N/A N/A N/A disk_types add N/A N/A N/A filer_disk find effective-disk-type text N/A N/A N/A N/A N/A N/A filer_disk find raid-state text spare N/A N/A N/A disk_type N/A N/A N/A filer_disk find effective-disk-type text N/A N/A disk_type spare_disk N/A N/A N/A spare_disk N/A disk_type 1 N/A N/A N/A spare_disk N/A disk_type 1 N/A disk_type disk_types N/A N/A N/A disk_type spare_disk N/A N/A N/A N/A self push N/A spare_ disk_type disk N/A spare_disk N/A disk_type N/A N/A N/A N/A self push N/A spare_ disk_type disk 0 N/A get_netapp_elem N/A N/A self netapp_api sub_element N/A None None N/A N/A  Retrieve netapp elem
         N/A netapp_data N/A N/A N/A self server invoke_elem netapp_api N/A N/A N/A N/A netapp_data results_status failed N/A N/A N/A N/A N/A self log error N/A While using netapp API failed to retrieve disk-list-info for netapp filer %s N/A self device N/A N/A N/A netapp_data sprintf N/A N/A netapp_xml N/A N/A N/A N/A ET fromstring N/A N/A netapp_data sprintf find sub_element N/A netapp_xml N/A _netapp_login N/A N/A self N/A N/A N/A  Login to our netapp filer
         N/A N/A self server N/A NaServer N/A self ip 1 3 N/A N/A N/A N/A self server set_transport_type HTTPS N/A N/A N/A N/A self server set_style LOGIN N/A N/A N/A N/A self server set_admin_user N/A self netapp_user N/A self netapp_password N/A push N/A N/A self metric_name type metric_value N/A None None None N/A N/A  Ship that shit off to graphite broski
         N/A graphite_path N/A self path_prefix N/A graphite_path N/A N/A N/A . N/A self device . type N/A graphite_path N/A . metric_name N/A metric N/A Metric graphite_path metric_value precision 4 host N/A self device N/A N/A N/A self publish_metric metric N/A N/A netappDisk N/A N/A N/A diamond collector Collector N/A N/A  Netapp disk diamond scheduler
     N/A running N/A set collect N/A N/A self device ip user password N/A N/A N/A  Collectors our metrics for our netapp filer --START HERE--
         N/A netappsdk N/A N/A N/A N/A N/A self log error Failed to import netappsdk.NaServer or netappsdk.NaElement N/A N/A N/A device N/A self running N/A N/A N/A N/A N/A N/A self running add device N/A parent N/A N/A N/A self config N/A path_prefix N/A self publish_metric N/A self log N/A N/A netappDiskCol device ip user password parent N/A N/A N/A N/A self running remove device N/A N/A