Module ImportFrom alias ImportFrom alias Import alias Import alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Import alias ImportFrom alias Assign NameStore Dict Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot NameLoad NameLoad body Return Dict Str AttributeLoad NameLoad attr Return Dict Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Num For TupleStore NameStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AugAssignAdd NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad If NameLoad body If BoolOpOr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad UnaryOpNot Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Str Str For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Str Str Assign NameStore Call NameLoad Str ListLoad Str Str Str Str Str Str Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Return NameLoad Assign NameStore Call NameLoad ListComp NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad Call AttributeLoad NameLoad attr Continue Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Str Call NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad Assign TupleStore NameStore NameStore NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad BinOpMult NameLoad NameLoad If CompareIs SubscriptLoad NameLoad Index NameLoad NameLoad body Continue Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad AugAssignAdd NameStore Num Assign NameStore BinOpAdd NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr ListComp BinOpMod Str NameLoad comprehension NameStore NameLoad Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr body If BoolOpOr UnaryOpNot NameLoad Call NameLoad NameLoad body If CompareIn NameLoad TupleLoad Str Str body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore BoolOpOr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareNotEq NameLoad Str body AugAssignAdd NameStore BinOpMod Str NameLoad Return NameLoad handlers ExceptHandler type NameLoad body Return BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIn SubscriptLoad NameLoad Slice Num Num TupleLoad Str Str body Return BinOpDiv NameLoad Num Return NameLoad decorator_list Expr Str decorator_list
N/A collections namedtuple fnmatch fnmatch N/A os N/A time N/A N/A N/A rrdtool N/A N/A N/A ImportError N/A N/A rrdtool None N/A pymysql checks AgentCheck N/A CFUNC_TO_AGGR N/A AVERAGE MAXIMUM MINIMUM avg max min N/A CACTI_TO_DD N/A hdd_free hdd_used swap_free load_1min load_5min load_15min mem_buffers proc users mem_swap ping system.disk.free system.disk.used system.swap.free system.load.1 system.load.5 system.load.15 system.mem.buffered system.proc.running system.users.current system.swap.free system.ping.latency Cacti N/A AgentCheck N/A __init__ N/A N/A self name init_config agentConfig N/A N/A N/A N/A N/A AgentCheck __init__ self name init_config agentConfig N/A N/A self last_ts N/A N/A get_library_versions N/A N/A self N/A N/A N/A N/A rrdtool None N/A N/A N/A rrdtool N/A rrdtool __version__ N/A N/A rrdtool Not Found N/A check N/A N/A self instance N/A N/A N/A N/A rrdtool None N/A N/A N/A Exception Unable to import python rrdtool module N/A config N/A N/A self _get_config instance N/A connection N/A N/A pymysql connect N/A config host N/A config user N/A config password N/A config db N/A N/A N/A N/A self log debug Connected to MySQL to fetch Cacti metadata N/A patterns N/A N/A self _get_whitelist_patterns N/A config whitelist N/A rrd_meta N/A N/A self _fetch_rrd_meta connection N/A config rrd_path patterns N/A config field_names N/A metric_count 0 N/A N/A hostname device_name rrd_path rrd_meta N/A N/A m_count N/A N/A self _read_rrd rrd_path hostname device_name N/A metric_count m_count N/A N/A N/A self gauge cacti.metrics.count metric_count N/A _get_whitelist_patterns N/A N/A self whitelist N/A N/A N/A patterns N/A N/A whitelist N/A N/A N/A N/A N/A N/A N/A os path isfile whitelist N/A N/A N/A os access whitelist N/A os R_OK N/A N/A N/A N/A N/A self log exception N/A Unable to read whitelist file at %s whitelist N/A wl N/A open whitelist N/A line wl N/A N/A N/A N/A patterns append N/A N/A line strip N/A N/A N/A wl close N/A patterns N/A _get_config N/A N/A self instance N/A N/A N/A required N/A mysql_host mysql_user rrd_path N/A param required N/A N/A N/A N/A N/A instance get param N/A N/A N/A Exception N/A Cacti instance missing %s. Skipping. param N/A host N/A N/A instance get mysql_host N/A user N/A N/A instance get mysql_user N/A password N/A N/A N/A instance get mysql_password N/A db N/A N/A instance get mysql_db cacti N/A rrd_path N/A N/A instance get rrd_path N/A whitelist N/A N/A instance get rrd_whitelist N/A field_names N/A N/A instance get field_names N/A ifName dskDevice N/A Config N/A namedtuple Config N/A host user password db rrd_path whitelist field_names N/A N/A Config host user password db rrd_path whitelist field_names N/A _read_rrd N/A N/A self rrd_path hostname device_name N/A N/A N/A  Main metric fetching method  N/A metric_count 0 N/A N/A N/A info N/A N/A rrdtool info rrd_path N/A N/A N/A Exception N/A N/A N/A N/A N/A self log exception N/A Unable to read RRD file at %s rrd_path N/A metric_count N/A c_funcs N/A set N/A v N/A N/A k v N/A N/A info items N/A N/A k endswith .cf N/A c N/A list c_funcs N/A N/A last_ts_key N/A %s.%s N/A rrd_path c N/A N/A last_ts_key N/A self last_ts N/A N/A N/A N/A self last_ts N/A last_ts_key N/A int N/A N/A time time N/A N/A start N/A N/A self last_ts N/A last_ts_key N/A last_ts start N/A N/A N/A fetched N/A N/A rrdtool fetch rrd_path c --start N/A str start N/A N/A N/A N/A rrdtool error N/A N/A N/A N/A N/A self log warn N/A Time %s out of range for %s N/A rrd_path start N/A metric_count N/A N/A start_ts end_ts interval N/A fetched N/A 0 N/A metric_names N/A fetched N/A 1 N/A points N/A fetched N/A 2 N/A N/A k m_name N/A enumerate metric_names N/A N/A m_name N/A N/A self _format_metric_name m_name c N/A N/A i p N/A enumerate points N/A N/A ts N/A start_ts N/A i interval N/A N/A N/A p N/A k None N/A N/A N/A val N/A N/A self _transform_metric m_name N/A p N/A k N/A N/A N/A self gauge m_name val hostname hostname device_name device_name timestamp ts N/A metric_count 1 N/A last_ts N/A ts interval N/A N/A N/A self last_ts N/A last_ts_key last_ts N/A metric_count N/A _fetch_rrd_meta N/A N/A self connection rrd_path_root whitelist field_names N/A N/A N/A  Fetch metadata about each RRD in this Cacti DB, returning a list of
            tuples of (hostname, device_name, rrd_path)
         _in_whitelist N/A N/A rrd N/A N/A N/A path N/A N/A rrd replace <path_rra>/ N/A p whitelist N/A N/A N/A fnmatch path p N/A N/A True N/A False N/A N/A c N/A N/A connection cursor N/A and_parameters N/A N/A  OR  join N/A N/A hsc.field_name = '%s' field_name N/A field_name field_names N/A rrd_query N/A 
            SELECT
                h.hostname as hostname,
                hsc.field_value as device_name,
                dt.data_source_path as rrd_path
            FROM data_local dl
                JOIN host h on dl.host_id = h.id
                JOIN data_template_data dt on dt.local_data_id = dl.id
                LEFT JOIN host_snmp_cache hsc on h.id = hsc.host_id
                    AND dl.snmp_index = hsc.snmp_index
            WHERE dt.data_source_path IS NOT NULL
            AND dt.data_source_path != ''
            AND (%s OR hsc.field_name is NULL)  and_parameters N/A N/A N/A c execute rrd_query N/A res N/A N/A N/A hostname device_name rrd_path N/A N/A c fetchall N/A N/A N/A N/A whitelist N/A _in_whitelist rrd_path N/A N/A N/A hostname N/A localhost 127.0.0.1 N/A N/A hostname N/A self hostname N/A rrd_path N/A N/A rrd_path replace <path_rra> rrd_path_root N/A device_name N/A device_name None N/A N/A N/A res append N/A hostname device_name rrd_path N/A num_hosts N/A len N/A set N/A N/A r N/A 0 N/A r res N/A N/A N/A self gauge cacti.rrd.count N/A len res N/A N/A N/A self gauge cacti.hosts.count num_hosts N/A res N/A _format_metric_name N/A N/A self m_name cfunc N/A N/A N/A  Format a cacti metric name into a Datadog-friendly name  N/A N/A N/A aggr N/A CFUNC_TO_AGGR N/A cfunc N/A N/A N/A KeyError N/A N/A aggr N/A N/A cfunc lower N/A N/A N/A m_name N/A CACTI_TO_DD N/A m_name N/A N/A aggr avg N/A N/A m_name N/A .%s aggr N/A m_name N/A N/A N/A KeyError N/A N/A N/A cacti.%s.%s N/A N/A N/A m_name lower aggr N/A _transform_metric N/A N/A self m_name val N/A N/A N/A  Add any special case transformations here  N/A N/A N/A m_name N/A 0 11 N/A system.mem. system.disk N/A N/A N/A val 1024 N/A val N/A N/A 
        For backwards compatability with pre-checks.d configuration.
        Convert old-style config to new-style config.
     N/A