SUM more graphs

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
asdfg
Posts: 7
Joined: Sun Apr 11, 2010 5:10 am

SUM more graphs

Post by asdfg »

Hello,

i found template for sum two interface under cacti. But i need 5 interface (5 in and 5 out).
Here si source.

Code: Select all

<cacti>    
    <hash_00001021efde270610a2546c40783a24097631>
        <name>Aggregate 2 Graph</name>
        <graph>
            <t_title/>
            <title>Aggregated_SUM</title>
            <t_image_format_id/>
            <image_format_id>1</image_format_id>
            <t_height/>
            <height>120</height>
            <t_width/>
            <width>500</width>
            <t_auto_scale/>
            <auto_scale>on</auto_scale>
            <t_auto_scale_opts/>
            <auto_scale_opts>2</auto_scale_opts>
            <t_auto_scale_log/>
            <auto_scale_log/>
            <t_auto_scale_rigid/>
            <auto_scale_rigid/>
            <t_auto_padding/>
            <auto_padding>on</auto_padding>
            <t_export/>
            <export/>
            <t_upper_limit/>
            <upper_limit>100</upper_limit>
            <t_lower_limit/>
            <lower_limit>0</lower_limit>
            <t_base_value/>
            <base_value>1000</base_value>
            <t_unit_value/>
            <unit_value/>
            <t_unit_exponent_value/>
            <unit_exponent_value/>
            <t_vertical_label/>
            <vertical_label>bits  per second</vertical_label>
        </graph>
        <items>
            <hash_100010f4bc6a9b6d2ca39a18c463699dea4246>
                <task_item_id>hash_0800102df25c57022b0c7e7d0be4c035ada1a0</task_item_id>
                <color_id>0</color_id>
                <graph_type_id>7</graph_type_id>
                <consolidation_function_id>1</consolidation_function_id>
                <cdef_id>hash_05001073f95f8b77b5508157d64047342c421e</cdef_id>
                <value/>
                <gprint_id>hash_060010e9c43831e54eca8069317a2ce8c6f751</gprint_id>
                <text_format/>
                <hard_return/>
                <sequence>1</sequence>
            </hash_100010f4bc6a9b6d2ca39a18c463699dea4246>
            <hash_100010284b348a820dc44dc51e092c2012e1cb>
                <task_item_id>hash_0800102df25c57022b0c7e7d0be4c035ada1a0</task_item_id>
                <color_id>0</color_id>
                <graph_type_id>7</graph_type_id>
                <consolidation_function_id>1</consolidation_function_id>
                <cdef_id>hash_05001073f95f8b77b5508157d64047342c421e</cdef_id>
                <value/>
                <gprint_id>hash_060010e9c43831e54eca8069317a2ce8c6f751</gprint_id>
                <text_format/>
                <hard_return/>
                <sequence>2</sequence>
            </hash_100010284b348a820dc44dc51e092c2012e1cb>
            <hash_10001054638c3264c646b6f922fa13b922cec7>
                <task_item_id>0</task_item_id>
                <color_id>6EA100</color_id>
                <graph_type_id>7</graph_type_id>
                <consolidation_function_id>1</consolidation_function_id>
                <cdef_id>hash_050010fb18370e1b62ab08a95a3d5056b6b454</cdef_id>
                <value/>
                <gprint_id>hash_060010e9c43831e54eca8069317a2ce8c6f751</gprint_id>
                <text_format>Inbound</text_format>
                <hard_return/>
                <sequence>3</sequence>
            </hash_10001054638c3264c646b6f922fa13b922cec7>
            <hash_100010002599a151f2e5dbc4408068e71c8b85>
                <task_item_id>0</task_item_id>
                <color_id>0</color_id>
                <graph_type_id>9</graph_type_id>
                <consolidation_function_id>4</consolidation_function_id>
                <cdef_id>hash_050010fb18370e1b62ab08a95a3d5056b6b454</cdef_id>
                <value/>
                <gprint_id>hash_060010e9c43831e54eca8069317a2ce8c6f751</gprint_id>
                <text_format>Current:</text_format>
                <hard_return/>
                <sequence>4</sequence>
            </hash_100010002599a151f2e5dbc4408068e71c8b85>
            <hash_1000103026d18bd529f3c53b90dd7ad8a62be5>
                <task_item_id>0</task_item_id>
                <color_id>0</color_id>
                <graph_type_id>9</graph_type_id>
                <consolidation_function_id>1</consolidation_function_id>
                <cdef_id>hash_050010fb18370e1b62ab08a95a3d5056b6b454</cdef_id>
                <value/>
                <gprint_id>hash_060010e9c43831e54eca8069317a2ce8c6f751</gprint_id>
                <text_format>Average:</text_format>
                <hard_return/>
                <sequence>5</sequence>
            </hash_1000103026d18bd529f3c53b90dd7ad8a62be5>
            <hash_100010385f6fef716b9456111a343c7c3842ad>
                <task_item_id>0</task_item_id>
                <color_id>0</color_id>
                <graph_type_id>9</graph_type_id>
                <consolidation_function_id>3</consolidation_function_id>
                <cdef_id>hash_050010fb18370e1b62ab08a95a3d5056b6b454</cdef_id>
                <value/>
                <gprint_id>hash_060010e9c43831e54eca8069317a2ce8c6f751</gprint_id>
                <text_format>Maximum:</text_format>
                <hard_return>on</hard_return>
                <sequence>6</sequence>
            </hash_100010385f6fef716b9456111a343c7c3842ad>
            <hash_1000108bd3555276391d7c55f1785823a7cdd8>
                <task_item_id>hash_080010721c0794526d1ac1c359f27dc56faa49</task_item_id>
                <color_id>0</color_id>
                <graph_type_id>4</graph_type_id>
                <consolidation_function_id>1</consolidation_function_id>
                <cdef_id>hash_05001073f95f8b77b5508157d64047342c421e</cdef_id>
                <value/>
                <gprint_id>hash_060010e9c43831e54eca8069317a2ce8c6f751</gprint_id>
                <text_format/>
                <hard_return/>
                <sequence>7</sequence>
            </hash_1000108bd3555276391d7c55f1785823a7cdd8>
            <hash_1000109a681987cdcdc7ad0ee9d3a8f6745312>
                <task_item_id>hash_080010721c0794526d1ac1c359f27dc56faa49</task_item_id>
                <color_id>0</color_id>
                <graph_type_id>4</graph_type_id>
                <consolidation_function_id>1</consolidation_function_id>
                <cdef_id>hash_05001073f95f8b77b5508157d64047342c421e</cdef_id>
                <value/>
                <gprint_id>hash_060010e9c43831e54eca8069317a2ce8c6f751</gprint_id>
                <text_format/>
                <hard_return/>
                <sequence>8</sequence>
            </hash_1000109a681987cdcdc7ad0ee9d3a8f6745312>
            <hash_100010747920ba7169862829aae8b7f675140f>
                <task_item_id>0</task_item_id>
                <color_id>4444FF</color_id>
                <graph_type_id>4</graph_type_id>
                <consolidation_function_id>1</consolidation_function_id>
                <cdef_id>hash_050010c5aacfa940e00b05f0e83f3b33e58c91</cdef_id>
                <value/>
                <gprint_id>hash_060010e9c43831e54eca8069317a2ce8c6f751</gprint_id>
                <text_format>Outbound</text_format>
                <hard_return/>
                <sequence>9</sequence>
            </hash_100010747920ba7169862829aae8b7f675140f>
            <hash_1000102cec365d10d8b91572f7abcf68984cb5>
                <task_item_id>0</task_item_id>
                <color_id>0</color_id>
                <graph_type_id>9</graph_type_id>
                <consolidation_function_id>4</consolidation_function_id>
                <cdef_id>hash_050010c5aacfa940e00b05f0e83f3b33e58c91</cdef_id>
                <value/>
                <gprint_id>hash_060010e9c43831e54eca8069317a2ce8c6f751</gprint_id>
                <text_format>Current:</text_format>
                <hard_return/>
                <sequence>10</sequence>
            </hash_1000102cec365d10d8b91572f7abcf68984cb5>
            <hash_1000106511a9e36e30c52fbcd56844607e6429>
                <task_item_id>0</task_item_id>
                <color_id>0</color_id>
                <graph_type_id>9</graph_type_id>
                <consolidation_function_id>1</consolidation_function_id>
                <cdef_id>hash_050010c5aacfa940e00b05f0e83f3b33e58c91</cdef_id>
                <value/>
                <gprint_id>hash_060010e9c43831e54eca8069317a2ce8c6f751</gprint_id>
                <text_format>Average:</text_format>
                <hard_return/>
                <sequence>11</sequence>
            </hash_1000106511a9e36e30c52fbcd56844607e6429>
            <hash_1000101ad49aa97c44cf516e9e46733723ce38>
                <task_item_id>0</task_item_id>
                <color_id>0</color_id>
                <graph_type_id>9</graph_type_id>
                <consolidation_function_id>3</consolidation_function_id>
                <cdef_id>hash_050010c5aacfa940e00b05f0e83f3b33e58c91</cdef_id>
                <value/>
                <gprint_id>hash_060010e9c43831e54eca8069317a2ce8c6f751</gprint_id>
                <text_format>Maximum:</text_format>
                <hard_return>on</hard_return>
                <sequence>12</sequence>
            </hash_1000101ad49aa97c44cf516e9e46733723ce38>
        </items>
        <inputs>
            <hash_0900104fec6a4c0d45f37b86f5332aec88ed2b>
                <name>Inbound 2</name>
                <description/>
                <column_name>task_item_id</column_name>
                <items>hash_000010284b348a820dc44dc51e092c2012e1cb</items>
            </hash_0900104fec6a4c0d45f37b86f5332aec88ed2b>
            <hash_090010d6a9c1bb327732a541d41f8bbe646b25>
                <name>Inbound 1</name>
                <description/>
                <column_name>task_item_id</column_name>
                <items>hash_000010f4bc6a9b6d2ca39a18c463699dea4246</items>
            </hash_090010d6a9c1bb327732a541d41f8bbe646b25>
            <hash_0900104796aa9b2fb982dc17c509b8899f28d2>
                <name>Outbound 1</name>
                <description/>
                <column_name>task_item_id</column_name>
                <items>hash_0000108bd3555276391d7c55f1785823a7cdd8</items>
            </hash_0900104796aa9b2fb982dc17c509b8899f28d2>
            <hash_0900108d3183e2c7518af0d5c9e630110d1d5b>
                <name>Outbound 2</name>
                <description/>
                <column_name>task_item_id</column_name>
                <items>hash_0000109a681987cdcdc7ad0ee9d3a8f6745312</items>
            </hash_0900108d3183e2c7518af0d5c9e630110d1d5b>
        </inputs>
    </hash_00001021efde270610a2546c40783a24097631>
    <hash_0100106632e1e0b58a565c135d7ff90440c335>
        <name>Interface - Traffic</name>
        <ds>
            <t_name>on</t_name>
            <name>|host_description| - Traffic</name>
            <data_input_id>hash_030010bf566c869ac6443b0c75d1c32b5a350e</data_input_id>
            <t_rra_id/>
            <t_rrd_step/>
            <rrd_step>300</rrd_step>
            <t_active/>
            <active>on</active>
            <rra_items>hash_150010c21df5178e5c955013591239eb0afd46|hash_1500100d9c0af8b8acdc7807943937b3208e29|hash_1500106fc2d038fb42950138b0ce3e9874cc60|hash_150010e36f3adb9f152adfa5dc50fd2b23337e</rra_items>
        </ds>
        <items>
            <hash_0800102df25c57022b0c7e7d0be4c035ada1a0>
                <t_data_source_name>on</t_data_source_name>
                <data_source_name>traffic_in</data_source_name>
                <t_rrd_minimum/>
                <rrd_minimum>0</rrd_minimum>
                <t_rrd_maximum>on</t_rrd_maximum>
                <rrd_maximum>100000000</rrd_maximum>
                <t_data_source_type_id/>
                <data_source_type_id>2</data_source_type_id>
                <t_rrd_heartbeat/>
                <rrd_heartbeat>600</rrd_heartbeat>
                <t_data_input_field_id/>
                <data_input_field_id>0</data_input_field_id>
            </hash_0800102df25c57022b0c7e7d0be4c035ada1a0>
            <hash_080010721c0794526d1ac1c359f27dc56faa49>
                <t_data_source_name/>
                <data_source_name>traffic_out</data_source_name>
                <t_rrd_minimum/>
                <rrd_minimum>0</rrd_minimum>
                <t_rrd_maximum>on</t_rrd_maximum>
                <rrd_maximum>100000000</rrd_maximum>
                <t_data_source_type_id/>
                <data_source_type_id>2</data_source_type_id>
                <t_rrd_heartbeat/>
                <rrd_heartbeat>600</rrd_heartbeat>
                <t_data_input_field_id/>
                <data_input_field_id>0</data_input_field_id>
            </hash_080010721c0794526d1ac1c359f27dc56faa49>
        </items>
        <data>
            <item_000>
                <data_input_field_id>hash_070010e6deda7be0f391399c5130e7c4a48b28</data_input_field_id>
                <t_value>on</t_value>
                <value/>
            </item_000>
            <item_001>
                <data_input_field_id>hash_070010cbbe5c1ddfb264a6e5d509ce1c78c95f</data_input_field_id>
                <t_value>on</t_value>
                <value/>
            </item_001>
            <item_002>
                <data_input_field_id>hash_0700106027a919c7c7731fbe095b6f53ab127b</data_input_field_id>
                <t_value>on</t_value>
                <value/>
            </item_002>
            <item_003>
                <data_input_field_id>hash_070010b5c23f246559df38662c255f4aa21d6b</data_input_field_id>
                <t_value/>
                <value/>
            </item_003>
            <item_004>
                <data_input_field_id>hash_0700101cc1493a6781af2c478fa4de971531cf</data_input_field_id>
                <t_value/>
                <value/>
            </item_004>
            <item_005>
                <data_input_field_id>hash_070010f4facc5e2ca7ebee621f09bc6d9fc792</data_input_field_id>
                <t_value/>
                <value/>
            </item_005>
            <item_006>
                <data_input_field_id>hash_070010acb449d1451e8a2a655c2c99d31142c7</data_input_field_id>
                <t_value/>
                <value/>
            </item_006>
            <item_007>
                <data_input_field_id>hash_070010617cdc8a230615e59f06f361ef6e7728</data_input_field_id>
                <t_value/>
                <value/>
            </item_007>
        </data>
    </hash_0100106632e1e0b58a565c135d7ff90440c335>
    <hash_030010bf566c869ac6443b0c75d1c32b5a350e>
        <name>Get SNMP Data (Indexed)</name>
        <type_id>3</type_id>
        <input_string/>
        <fields>
            <hash_070010617cdc8a230615e59f06f361ef6e7728>
                <name>SNMP IP Address</name>
                <update_rra/>
                <regexp_match/>
                <allow_nulls/>
                <type_code>hostname</type_code>
                <input_output>in</input_output>
                <data_name>management_ip</data_name>
            </hash_070010617cdc8a230615e59f06f361ef6e7728>
            <hash_070010acb449d1451e8a2a655c2c99d31142c7>
                <name>SNMP Community</name>
                <update_rra/>
                <regexp_match/>
                <allow_nulls/>
                <type_code>snmp_community</type_code>
                <input_output>in</input_output>
                <data_name>snmp_community</data_name>
            </hash_070010acb449d1451e8a2a655c2c99d31142c7>
            <hash_070010f4facc5e2ca7ebee621f09bc6d9fc792>
                <name>SNMP Username (v3)</name>
                <update_rra/>
                <regexp_match/>
                <allow_nulls>on</allow_nulls>
                <type_code>snmp_username</type_code>
                <input_output>in</input_output>
                <data_name>snmp_username</data_name>
            </hash_070010f4facc5e2ca7ebee621f09bc6d9fc792>
            <hash_0700101cc1493a6781af2c478fa4de971531cf>
                <name>SNMP Password (v3)</name>
                <update_rra/>
                <regexp_match/>
                <allow_nulls>on</allow_nulls>
                <type_code>snmp_password</type_code>
                <input_output>in</input_output>
                <data_name>snmp_password</data_name>
            </hash_0700101cc1493a6781af2c478fa4de971531cf>
            <hash_070010b5c23f246559df38662c255f4aa21d6b>
                <name>SNMP Version (1, 2, or 3)</name>
                <update_rra/>
                <regexp_match/>
                <allow_nulls/>
                <type_code>snmp_version</type_code>
                <input_output>in</input_output>
                <data_name>snmp_version</data_name>
            </hash_070010b5c23f246559df38662c255f4aa21d6b>
            <hash_0700106027a919c7c7731fbe095b6f53ab127b>
                <name>Index Type</name>
                <update_rra/>
                <regexp_match/>
                <allow_nulls/>
                <type_code>index_type</type_code>
                <input_output>in</input_output>
                <data_name>index_type</data_name>
            </hash_0700106027a919c7c7731fbe095b6f53ab127b>
            <hash_070010cbbe5c1ddfb264a6e5d509ce1c78c95f>
                <name>Index Value</name>
                <update_rra/>
                <regexp_match/>
                <allow_nulls/>
                <type_code>index_value</type_code>
                <input_output>in</input_output>
                <data_name>index_value</data_name>
            </hash_070010cbbe5c1ddfb264a6e5d509ce1c78c95f>
            <hash_070010e6deda7be0f391399c5130e7c4a48b28>
                <name>Output Type ID</name>
                <update_rra/>
                <regexp_match/>
                <allow_nulls/>
                <type_code>output_type</type_code>
                <input_output>in</input_output>
                <data_name>output_type</data_name>
            </hash_070010e6deda7be0f391399c5130e7c4a48b28>
        </fields>
    </hash_030010bf566c869ac6443b0c75d1c32b5a350e>
    <hash_150010c21df5178e5c955013591239eb0afd46>
        <name>Daily (5 Minute Average)</name>
        <x_files_factor>0.5</x_files_factor>
        <steps>1</steps>
        <rows>600</rows>
        <timespan>86400</timespan>
        <cf_items>1|3</cf_items>
    </hash_150010c21df5178e5c955013591239eb0afd46>
    <hash_1500100d9c0af8b8acdc7807943937b3208e29>
        <name>Weekly (30 Minute Average)</name>
        <x_files_factor>0.5</x_files_factor>
        <steps>6</steps>
        <rows>700</rows>
        <timespan>604800</timespan>
        <cf_items>1|3</cf_items>
    </hash_1500100d9c0af8b8acdc7807943937b3208e29>
    <hash_1500106fc2d038fb42950138b0ce3e9874cc60>
        <name>Monthly (2 Hour Average)</name>
        <x_files_factor>0.5</x_files_factor>
        <steps>24</steps>
        <rows>775</rows>
        <timespan>2678400</timespan>
        <cf_items>1|3</cf_items>
    </hash_1500106fc2d038fb42950138b0ce3e9874cc60>
    <hash_150010e36f3adb9f152adfa5dc50fd2b23337e>
        <name>Yearly (1 Day Average)</name>
        <x_files_factor>0.5</x_files_factor>
        <steps>288</steps>
        <rows>797</rows>
        <timespan>33053184</timespan>
        <cf_items>1|3</cf_items>
    </hash_150010e36f3adb9f152adfa5dc50fd2b23337e>
    <hash_05001073f95f8b77b5508157d64047342c421e>
        <name>Turn Bytes into Bits</name>
        <items>
            <hash_1400109bbf6b792507bb9bb17d2af0970f9be9>
                <sequence>1</sequence>
                <type>4</type>
                <value>CURRENT_DATA_SOURCE</value>
            </hash_1400109bbf6b792507bb9bb17d2af0970f9be9>
            <hash_140010a4b8eb2c3bf4920a3ef571a7a004be53>
                <sequence>2</sequence>
                <type>6</type>
                <value>8</value>
            </hash_140010a4b8eb2c3bf4920a3ef571a7a004be53>
            <hash_140010caa4e023ac2d7b1c4b4c8c4adfd55dfe>
                <sequence>3</sequence>
                <type>2</type>
                <value>3</value>
            </hash_140010caa4e023ac2d7b1c4b4c8c4adfd55dfe>
        </items>
    </hash_05001073f95f8b77b5508157d64047342c421e>
    <hash_050010fb18370e1b62ab08a95a3d5056b6b454>
        <name>Combine 2 IN</name>
        <items>
            <hash_14001015e75d7af69d01dff78973258f901286>
                <sequence>1</sequence>
                <type>6</type>
                <value>a,b,+,8,*</value>
            </hash_14001015e75d7af69d01dff78973258f901286>
        </items>
    </hash_050010fb18370e1b62ab08a95a3d5056b6b454>
    <hash_050010c5aacfa940e00b05f0e83f3b33e58c91>
        <name>Combine 2 OUT</name>
        <items>
            <hash_1400104cc72602ac2b251177822b097d00e0a1>
                <sequence>1</sequence>
                <type>6</type>
                <value>c,d,+,8,*</value>
            </hash_1400104cc72602ac2b251177822b097d00e0a1>
        </items>
    </hash_050010c5aacfa940e00b05f0e83f3b33e58c91>
    <hash_060010e9c43831e54eca8069317a2ce8c6f751>
        <name>Normal</name>
        <gprint_text>%8.2lf %s</gprint_text>
    </hash_060010e9c43831e54eca8069317a2ce8c6f751>
</cacti>
Is possible edit for 5 interface?
Thanks.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Yep. Use AGGREGATE plugin
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests