Problems polling CPU util

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
rusty
Posts: 16
Joined: Thu Mar 16, 2006 9:20 am

Problems polling CPU util

Post by rusty »

I have been through a few of the how to's and been using cacti for a few weeks now. I am currently trying to troubleshoot a problem with one host not displaying data for CPU util. the graph shows up but there is no data and the values are all 0. If I snmpget the ssCPURaw there are numbers in the counters, they are not 0.

I eventually exported the ucd/net CPU Usage graph template and I noticed a problem. there is a section for the CPU Usage User and CPU Usage Nice bu there is no section for System. There is also an error "Invalid data template" in the section where I would expect to find the CPU Usage System section.

I am not knowledgeable in xml but this doesn't look right to me.

Code: Select all

<cacti>	
	<hash_000011e334bdcf821cd27270a4cc945e80915e>
		<name>ucd/net - CPU Usage</name>
		<graph>
			<t_title></t_title>
			<title>|host_description| - CPU Usage</title>
			<t_image_format_id></t_image_format_id>
			<image_format_id>1</image_format_id>
			<t_height></t_height>
			<height>120</height>
			<t_width></t_width>
			<width>500</width>
			<t_auto_scale></t_auto_scale>
			<auto_scale>on</auto_scale>
			<t_auto_scale_opts></t_auto_scale_opts>
			<auto_scale_opts>2</auto_scale_opts>
			<t_auto_scale_log></t_auto_scale_log>
			<auto_scale_log></auto_scale_log>
			<t_auto_scale_rigid></t_auto_scale_rigid>
			<auto_scale_rigid>on</auto_scale_rigid>
			<t_auto_padding></t_auto_padding>
			<auto_padding>on</auto_padding>
			<t_export></t_export>
			<export>on</export>
			<t_upper_limit></t_upper_limit>
			<upper_limit>100</upper_limit>
			<t_lower_limit></t_lower_limit>
			<lower_limit>0</lower_limit>
			<t_base_value></t_base_value>
			<base_value>1000</base_value>
			<t_unit_value></t_unit_value>
			<unit_value></unit_value>
			<t_unit_exponent_value></t_unit_exponent_value>
			<unit_exponent_value></unit_exponent_value>
			<t_vertical_label></t_vertical_label>
			<vertical_label>percent</vertical_label>
		</graph>
		<items>
			<hash_100011ff0a6125acbb029b814ed1f271ad2d38>
				<task_item_id>hash_0800117bee7987bbf30a3bc429d2a67c6b2595</task_item_id>
				<color_id>FF0000</color_id>
				<graph_type_id>7</graph_type_id>
				<consolidation_function_id>1</consolidation_function_id>
				<cdef_id>0</cdef_id>
				<value></value>
				<gprint_id>hash_060011e9c43831e54eca8069317a2ce8c6f751</gprint_id>
				<text_format>System</text_format>
				<hard_return></hard_return>
				<sequence>1</sequence>
			</hash_100011ff0a6125acbb029b814ed1f271ad2d38>
			<hash_100011f0776f7d6638bba76c2c27f75a424f0f>
				<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>0</cdef_id>
				<value></value>
				<gprint_id>hash_060011e9c43831e54eca8069317a2ce8c6f751</gprint_id>
				<text_format>Current:</text_format>
				<hard_return></hard_return>
				<sequence>2</sequence>
			</hash_100011f0776f7d6638bba76c2c27f75a424f0f>
			<hash_10001139f4e021aa3fed9207b5f45a82122b21>
				<task_item_id>hash_0800117bee7987bbf30a3bc429d2a67c6b2595</task_item_id>
				<color_id>0</color_id>
				<graph_type_id>9</graph_type_id>
				<consolidation_function_id>1</consolidation_function_id>
				<cdef_id>0</cdef_id>
				<value></value>
				<gprint_id>hash_060011e9c43831e54eca8069317a2ce8c6f751</gprint_id>
				<text_format>Average:</text_format>
				<hard_return></hard_return>
				<sequence>3</sequence>
			</hash_10001139f4e021aa3fed9207b5f45a82122b21>
			<hash_100011800f0b067c06f4ec9c2316711ea83c1e>
				<task_item_id>hash_0800117bee7987bbf30a3bc429d2a67c6b2595</task_item_id>
				<color_id>0</color_id>
				<graph_type_id>9</graph_type_id>
				<consolidation_function_id>3</consolidation_function_id>
				<cdef_id>0</cdef_id>
				<value></value>
				<gprint_id>hash_060011e9c43831e54eca8069317a2ce8c6f751</gprint_id>
				<text_format>Maximum:</text_format>
				<hard_return>on</hard_return>
				<sequence>4</sequence>
			</hash_100011800f0b067c06f4ec9c2316711ea83c1e>
			<hash_1000119419dd5dbf549ba4c5dc1462da6ee321>
				<task_item_id>hash_080011ddccd7fbdece499da0235b4098b87f9e</task_item_id>
				<color_id>0000FF</color_id>
				<graph_type_id>8</graph_type_id>
				<consolidation_function_id>1</consolidation_function_id>
				<cdef_id>0</cdef_id>
				<value></value>
				<gprint_id>hash_060011e9c43831e54eca8069317a2ce8c6f751</gprint_id>
				<text_format>User</text_format>
				<hard_return></hard_return>
				<sequence>5</sequence>
			</hash_1000119419dd5dbf549ba4c5dc1462da6ee321>
			<hash_100011e461dd263ae47657ea2bf3fd82bec096>
				<task_item_id>hash_080011ddccd7fbdece499da0235b4098b87f9e</task_item_id>
				<color_id>0</color_id>
				<graph_type_id>9</graph_type_id>
				<consolidation_function_id>4</consolidation_function_id>
				<cdef_id>0</cdef_id>
				<value></value>
				<gprint_id>hash_060011e9c43831e54eca8069317a2ce8c6f751</gprint_id>
				<text_format>Current:</text_format>
				<hard_return></hard_return>
				<sequence>6</sequence>
			</hash_100011e461dd263ae47657ea2bf3fd82bec096>
			<hash_100011f2d1fbb8078a424ffc8a6c9d44d8caa0>
				<task_item_id>hash_080011ddccd7fbdece499da0235b4098b87f9e</task_item_id>
				<color_id>0</color_id>
				<graph_type_id>9</graph_type_id>
				<consolidation_function_id>1</consolidation_function_id>
				<cdef_id>0</cdef_id>
				<value></value>
				<gprint_id>hash_060011e9c43831e54eca8069317a2ce8c6f751</gprint_id>
				<text_format>Average:</text_format>
				<hard_return></hard_return>
				<sequence>7</sequence>
			</hash_100011f2d1fbb8078a424ffc8a6c9d44d8caa0>
			<hash_100011e70a5de639df5ba1705b5883da7fccfc>
				<task_item_id>hash_080011ddccd7fbdece499da0235b4098b87f9e</task_item_id>
				<color_id>0</color_id>
				<graph_type_id>9</graph_type_id>
				<consolidation_function_id>3</consolidation_function_id>
				<cdef_id>0</cdef_id>
				<value></value>
				<gprint_id>hash_060011e9c43831e54eca8069317a2ce8c6f751</gprint_id>
				<text_format>Maximum:</text_format>
				<hard_return>on</hard_return>
				<sequence>8</sequence>
			</hash_100011e70a5de639df5ba1705b5883da7fccfc>
			<hash_10001185fefb25ce9fd0317da2706a5463fc42>
				<task_item_id>hash_080011122ab2097f8c6403b7b90cde7b9e2bc2</task_item_id>
				<color_id>00FF00</color_id>
				<graph_type_id>8</graph_type_id>
				<consolidation_function_id>1</consolidation_function_id>
				<cdef_id>0</cdef_id>
				<value></value>
				<gprint_id>hash_060011e9c43831e54eca8069317a2ce8c6f751</gprint_id>
				<text_format>Nice</text_format>
				<hard_return></hard_return>
				<sequence>9</sequence>
			</hash_10001185fefb25ce9fd0317da2706a5463fc42>
			<hash_100011a1cb26878776999db16f1de7577b3c2a>
				<task_item_id>hash_080011122ab2097f8c6403b7b90cde7b9e2bc2</task_item_id>
				<color_id>0</color_id>
				<graph_type_id>9</graph_type_id>
				<consolidation_function_id>4</consolidation_function_id>
				<cdef_id>0</cdef_id>
				<value></value>
				<gprint_id>hash_060011e9c43831e54eca8069317a2ce8c6f751</gprint_id>
				<text_format>Current:</text_format>
				<hard_return></hard_return>
				<sequence>10</sequence>
			</hash_100011a1cb26878776999db16f1de7577b3c2a>
			<hash_1000117d0f9bf64a0898a0095f099674754273>
				<task_item_id>hash_080011122ab2097f8c6403b7b90cde7b9e2bc2</task_item_id>
				<color_id>0</color_id>
				<graph_type_id>9</graph_type_id>
				<consolidation_function_id>1</consolidation_function_id>
				<cdef_id>0</cdef_id>
				<value></value>
				<gprint_id>hash_060011e9c43831e54eca8069317a2ce8c6f751</gprint_id>
				<text_format>Average:</text_format>
				<hard_return></hard_return>
				<sequence>11</sequence>
			</hash_1000117d0f9bf64a0898a0095f099674754273>
			<hash_100011b2879248a522d9679333e1f29e9a87c3>
				<task_item_id>hash_080011122ab2097f8c6403b7b90cde7b9e2bc2</task_item_id>
				<color_id>0</color_id>
				<graph_type_id>9</graph_type_id>
				<consolidation_function_id>3</consolidation_function_id>
				<cdef_id>0</cdef_id>
				<value></value>
				<gprint_id>hash_060011e9c43831e54eca8069317a2ce8c6f751</gprint_id>
				<text_format>Maximum:</text_format>
				<hard_return>on</hard_return>
				<sequence>12</sequence>
			</hash_100011b2879248a522d9679333e1f29e9a87c3>
			<hash_100011d800aa59eee45383b3d6d35a11cdc864>
				<task_item_id>0</task_item_id>
				<color_id>000000</color_id>
				<graph_type_id>4</graph_type_id>
				<consolidation_function_id>1</consolidation_function_id>
				<cdef_id>hash_050011f1ac79f05f255c02f914c920f1038c54</cdef_id>
				<value></value>
				<gprint_id>hash_060011e9c43831e54eca8069317a2ce8c6f751</gprint_id>
				<text_format>Total</text_format>
				<hard_return></hard_return>
				<sequence>13</sequence>
			</hash_100011d800aa59eee45383b3d6d35a11cdc864>
			<hash_100011cab4ae79a546826288e273ca1411c867>
				<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_050011f1ac79f05f255c02f914c920f1038c54</cdef_id>
				<value></value>
				<gprint_id>hash_060011e9c43831e54eca8069317a2ce8c6f751</gprint_id>
				<text_format>Current:</text_format>
				<hard_return></hard_return>
				<sequence>14</sequence>
			</hash_100011cab4ae79a546826288e273ca1411c867>
			<hash_100011d44306ae85622fec971507460be63f5c>
				<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_050011f1ac79f05f255c02f914c920f1038c54</cdef_id>
				<value></value>
				<gprint_id>hash_060011e9c43831e54eca8069317a2ce8c6f751</gprint_id>
				<text_format>Average:</text_format>
				<hard_return></hard_return>
				<sequence>15</sequence>
			</hash_100011d44306ae85622fec971507460be63f5c>
			<hash_100011aa5c2118035bb83be497d4e099afcc0d>
				<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_050011f1ac79f05f255c02f914c920f1038c54</cdef_id>
				<value></value>
				<gprint_id>hash_060011e9c43831e54eca8069317a2ce8c6f751</gprint_id>
				<text_format>Maximum:</text_format>
				<hard_return></hard_return>
				<sequence>16</sequence>
			</hash_100011aa5c2118035bb83be497d4e099afcc0d>
		</items>
		<inputs>
			<hash_0900114d52e112a836d4c9d451f56602682606>
				<name>System CPU Data Source</name>
				<description></description>
				<column_name>task_item_id</column_name>
				<items>hash_000011ff0a6125acbb029b814ed1f271ad2d38|hash_000011f0776f7d6638bba76c2c27f75a424f0f|hash_00001139f4e021aa3fed9207b5f45a82122b21|hash_000011800f0b067c06f4ec9c2316711ea83c1e</items>
			</hash_0900114d52e112a836d4c9d451f56602682606>
			<hash_090011f0310b066cc919d2f898b8d1ebf3b518>
				<name>User CPU Data Source</name>
				<description></description>
				<column_name>task_item_id</column_name>
				<items>hash_0000119419dd5dbf549ba4c5dc1462da6ee321|hash_000011e461dd263ae47657ea2bf3fd82bec096|hash_000011f2d1fbb8078a424ffc8a6c9d44d8caa0|hash_000011e70a5de639df5ba1705b5883da7fccfc</items>
			</hash_090011f0310b066cc919d2f898b8d1ebf3b518>
			<hash_090011d9eb6b9eb3d7dd44fd14fdefb4096b54>
				<name>Nice CPU Data Source</name>
				<description></description>
				<column_name>task_item_id</column_name>
				<items>hash_00001185fefb25ce9fd0317da2706a5463fc42|hash_000011a1cb26878776999db16f1de7577b3c2a|hash_0000117d0f9bf64a0898a0095f099674754273|hash_000011b2879248a522d9679333e1f29e9a87c3</items>
			</hash_090011d9eb6b9eb3d7dd44fd14fdefb4096b54>
		</inputs>
	</hash_000011e334bdcf821cd27270a4cc945e80915e>
	<hash_010011a27e816377d2ac6434a87c494559c726>
		<name>ucd/net - CPU Usage - User</name>
		<ds>
			<t_name></t_name>
			<name>|host_description| - CPU Usage - User</name>
			<data_input_id>hash_0300113eb92bb845b9660a7445cf9740726522</data_input_id>
			<t_rra_id></t_rra_id>
			<t_rrd_step></t_rrd_step>
			<rrd_step>300</rrd_step>
			<t_active></t_active>
			<active>on</active>
			<rra_items>hash_150011c21df5178e5c955013591239eb0afd46|hash_1500110d9c0af8b8acdc7807943937b3208e29|hash_1500116fc2d038fb42950138b0ce3e9874cc60|hash_150011e36f3adb9f152adfa5dc50fd2b23337e</rra_items>
		</ds>
		<items>
			<hash_080011ddccd7fbdece499da0235b4098b87f9e>
				<t_data_source_name></t_data_source_name>
				<data_source_name>cpu_user</data_source_name>
				<t_rrd_minimum></t_rrd_minimum>
				<rrd_minimum>0</rrd_minimum>
				<t_rrd_maximum></t_rrd_maximum>
				<rrd_maximum>100</rrd_maximum>
				<t_data_source_type_id></t_data_source_type_id>
				<data_source_type_id>1</data_source_type_id>
				<t_rrd_heartbeat></t_rrd_heartbeat>
				<rrd_heartbeat>600</rrd_heartbeat>
				<t_data_input_field_id></t_data_input_field_id>
				<data_input_field_id>0</data_input_field_id>
			</hash_080011ddccd7fbdece499da0235b4098b87f9e>
		</items>
		<data>
			<item_000>
				<data_input_field_id>hash_0700114276a5ec6e3fe33995129041b1909762</data_input_field_id>
				<t_value></t_value>
				<value>.1.3.6.1.4.1.2021.11.50.0</value>
			</item_000>
			<item_001>
				<data_input_field_id>hash_070011012ccb1d3687d3edb29c002ea66e72da</data_input_field_id>
				<t_value></t_value>
				<value></value>
			</item_001>
			<item_002>
				<data_input_field_id>hash_0700119c55a74bd571b4f00a96fd4b793278c6</data_input_field_id>
				<t_value></t_value>
				<value></value>
			</item_002>
			<item_003>
				<data_input_field_id>hash_070011ad14ac90641aed388139f6ba86a2e48b</data_input_field_id>
				<t_value></t_value>
				<value></value>
			</item_003>
			<item_004>
				<data_input_field_id>hash_07001132285d5bf16e56c478f5e83f32cda9ef</data_input_field_id>
				<t_value></t_value>
				<value></value>
			</item_004>
			<item_005>
				<data_input_field_id>hash_07001192f5906c8dc0f964b41f4253df582c38</data_input_field_id>
				<t_value></t_value>
				<value></value>
			</item_005>
		</data>
	</hash_010011a27e816377d2ac6434a87c494559c726>
	<hash_010011c06c3d20eccb9598939dc597701ff574>
		<name>ucd/net - CPU Usage - Nice</name>
		<ds>
			<t_name></t_name>
			<name>|host_description| - CPU Usage - Nice</name>
			<data_input_id>hash_0300113eb92bb845b9660a7445cf9740726522</data_input_id>
			<t_rra_id></t_rra_id>
			<t_rrd_step></t_rrd_step>
			<rrd_step>300</rrd_step>
			<t_active></t_active>
			<active>on</active>
			<rra_items>hash_150011c21df5178e5c955013591239eb0afd46|hash_1500110d9c0af8b8acdc7807943937b3208e29|hash_1500116fc2d038fb42950138b0ce3e9874cc60|hash_150011e36f3adb9f152adfa5dc50fd2b23337e</rra_items>
		</ds>
		<items>
			<hash_080011122ab2097f8c6403b7b90cde7b9e2bc2>
				<t_data_source_name></t_data_source_name>
				<data_source_name>cpu_nice</data_source_name>
				<t_rrd_minimum></t_rrd_minimum>
				<rrd_minimum>0</rrd_minimum>
				<t_rrd_maximum></t_rrd_maximum>
				<rrd_maximum>100</rrd_maximum>
				<t_data_source_type_id></t_data_source_type_id>
				<data_source_type_id>1</data_source_type_id>
				<t_rrd_heartbeat></t_rrd_heartbeat>
				<rrd_heartbeat>600</rrd_heartbeat>
				<t_data_input_field_id></t_data_input_field_id>
				<data_input_field_id>0</data_input_field_id>
			</hash_080011122ab2097f8c6403b7b90cde7b9e2bc2>
		</items>
		<data>
			<item_000>
				<data_input_field_id>hash_0700114276a5ec6e3fe33995129041b1909762</data_input_field_id>
				<t_value></t_value>
				<value>.1.3.6.1.4.1.2021.11.51.0</value>
			</item_000>
			<item_001>
				<data_input_field_id>hash_070011012ccb1d3687d3edb29c002ea66e72da</data_input_field_id>
				<t_value></t_value>
				<value></value>
			</item_001>
			<item_002>
				<data_input_field_id>hash_0700119c55a74bd571b4f00a96fd4b793278c6</data_input_field_id>
				<t_value></t_value>
				<value></value>
			</item_002>
			<item_003>
				<data_input_field_id>hash_070011ad14ac90641aed388139f6ba86a2e48b</data_input_field_id>
				<t_value></t_value>
				<value></value>
			</item_003>
			<item_004>
				<data_input_field_id>hash_07001132285d5bf16e56c478f5e83f32cda9ef</data_input_field_id>
				<t_value></t_value>
				<value></value>
			</item_004>
			<item_005>
				<data_input_field_id>hash_07001192f5906c8dc0f964b41f4253df582c38</data_input_field_id>
				<t_value></t_value>
				<value></value>
			</item_005>
		</data>
	</hash_010011c06c3d20eccb9598939dc597701ff574>
	Invalid data template.
	<hash_0300113eb92bb845b9660a7445cf9740726522>
		<name>Get SNMP Data</name>
		<type_id>2</type_id>
		<input_string></input_string>
		<fields>
			<hash_07001192f5906c8dc0f964b41f4253df582c38>
				<name>SNMP IP Address</name>
				<update_rra></update_rra>
				<regexp_match></regexp_match>
				<allow_nulls></allow_nulls>
				<type_code>hostname</type_code>
				<input_output>in</input_output>
				<data_name>management_ip</data_name>
			</hash_07001192f5906c8dc0f964b41f4253df582c38>
			<hash_07001132285d5bf16e56c478f5e83f32cda9ef>
				<name>SNMP Community</name>
				<update_rra></update_rra>
				<regexp_match></regexp_match>
				<allow_nulls></allow_nulls>
				<type_code>snmp_community</type_code>
				<input_output>in</input_output>
				<data_name>snmp_community</data_name>
			</hash_07001132285d5bf16e56c478f5e83f32cda9ef>
			<hash_070011ad14ac90641aed388139f6ba86a2e48b>
				<name>SNMP Username</name>
				<update_rra></update_rra>
				<regexp_match></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_070011ad14ac90641aed388139f6ba86a2e48b>
			<hash_0700119c55a74bd571b4f00a96fd4b793278c6>
				<name>SNMP Password</name>
				<update_rra></update_rra>
				<regexp_match></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_0700119c55a74bd571b4f00a96fd4b793278c6>
			<hash_070011012ccb1d3687d3edb29c002ea66e72da>
				<name>SNMP Version (1, 2, or 3)</name>
				<update_rra></update_rra>
				<regexp_match></regexp_match>
				<allow_nulls>on</allow_nulls>
				<type_code>snmp_version</type_code>
				<input_output>in</input_output>
				<data_name>snmp_version</data_name>
			</hash_070011012ccb1d3687d3edb29c002ea66e72da>
			<hash_0700114276a5ec6e3fe33995129041b1909762>
				<name>OID</name>
				<update_rra></update_rra>
				<regexp_match></regexp_match>
				<allow_nulls></allow_nulls>
				<type_code>snmp_oid</type_code>
				<input_output>in</input_output>
				<data_name>oid</data_name>
			</hash_0700114276a5ec6e3fe33995129041b1909762>
		</fields>
	</hash_0300113eb92bb845b9660a7445cf9740726522>
	<hash_150011c21df5178e5c955013591239eb0afd46>
		<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_150011c21df5178e5c955013591239eb0afd46>
	<hash_1500110d9c0af8b8acdc7807943937b3208e29>
		<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_1500110d9c0af8b8acdc7807943937b3208e29>
	<hash_1500116fc2d038fb42950138b0ce3e9874cc60>
		<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_1500116fc2d038fb42950138b0ce3e9874cc60>
	<hash_150011e36f3adb9f152adfa5dc50fd2b23337e>
		<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_150011e36f3adb9f152adfa5dc50fd2b23337e>
	<hash_050011f1ac79f05f255c02f914c920f1038c54>
		<name>Total All Data Sources</name>
		<items>
			<hash_1400110ef6b8a42dc83b4e43e437960fccd2ea>
				<sequence>1</sequence>
				<type>4</type>
				<value>ALL_DATA_SOURCES_NODUPS</value>
			</hash_1400110ef6b8a42dc83b4e43e437960fccd2ea>
		</items>
	</hash_050011f1ac79f05f255c02f914c920f1038c54>
	<hash_060011e9c43831e54eca8069317a2ce8c6f751>
		<name>Normal</name>
		<gprint_text>%8.2lf %s</gprint_text>
	</hash_060011e9c43831e54eca8069317a2ce8c6f751>
</cacti>
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please switch Settings->Logging Level to DEBUg for ONE polling cycle and find the OID in log/cacti.log. Please post the snippet pertaining to the failing host
Reinhard
rusty
Posts: 16
Joined: Thu Mar 16, 2006 9:20 am

Post by rusty »

I have made a few changes since my last post. I deleted the data source for the ucd/net CPU Usage for hte host in question and then I readded it.

When I create the CPU Usage graph I get the following errors

Code: Select all

Notice: Undefined index: 258 in /usr/share/cacti/site/lib/template.php on line 732

Notice: Undefined index: 258 in /usr/share/cacti/site/lib/template.php on line 732

Notice: Undefined index: 258 in /usr/share/cacti/site/lib/template.php on line 732

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/lib/template.php:732) in /usr/share/cacti/site/graphs_new.php on line 322
I am working on capturing the debug and will post soon.

When I look at the data templates the ucd/net CPU Usage - Nice and User are listed but the System is not. I selected the User data template and chose Duplicate. I changed the name to - System and the internal data source name to cpu_system. I also change the OID to .52 to poll the system variable. I saved and now the new template is not displayed.
rusty
Posts: 16
Joined: Thu Mar 16, 2006 9:20 am

Post by rusty »

Forgot to mention.

I am running out of time to get this resolved. The server in question went into production last week and I desparately need to start tracking CPU usage.

Consequently, we are looking to hire someone for a fw hours of consulting work to get this resolved if anyone is interested.
rusty
Posts: 16
Joined: Thu Mar 16, 2006 9:20 am

Post by rusty »

collecting some more data...

Here's the result from a debug mode for the CPU Usage graph template;

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="www.cleversafe.com - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
DEF:a="/usr/share/cacti/site/rra/www_cleversafe_com_cpu_user_186.rrd":cpu_user:AVERAGE \
DEF:b="/usr/share/cacti/site/rra/www_cleversafe_com_cpu_nice_185.rrd":cpu_nice:AVERAGE \
CDEF:cdefbc=TIME,1144689730,GT,a,a,UN,0,a,IF,IF,TIME,1144689730,GT,b,b,UN,0,b,IF,IF,+ \
AREA:#FF0000:"System"  \
GPRINT::LAST:" Current\:%8.2lf %s"  \
GPRINT::AVERAGE:"Average\:%8.2lf %s"  \
GPRINT::MAX:"Maximum\:%8.2lf %s\n"  \
AREA:a#0000FF:"User":STACK \
GPRINT:a:LAST:"  Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"  \
AREA:b#00FF00:"Nice":STACK \
GPRINT:b:LAST:"  Current\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:cdefbc#000000:"Total"  \
GPRINT:cdefbc:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefbc:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefbc:MAX:"Maximum\:%8.2lf %s" 
RRDTool Says:

ERROR: Not a valid vname: #FF0000 in line AREA:#FF0000:System
I am not sure how best to fix the problem though. When I try to add a new data source is does not show up in the list of data sources (see this link http://forums.cacti.net/viewtopic.php?t=11621
rusty
Posts: 16
Joined: Thu Mar 16, 2006 9:20 am

Post by rusty »

When I go to the Graph Template for CPU Usage the System CPU Data Source is listed as NONE. The pull down menu does not show a CPU Usage - System as a choice.

But, when I try to create a new Data Template for CPU Usage - System and go to the pull down menu for Selected Data Template, there are 4 ucd/net - CPU Usage - System entries to chose from.

How can there be 4 separate entries with the same name?

How can I delete the 3 that do not belong? and how do I know which ones to delete?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Goto Graph Management and find your Graph. Add your newly defined data source to the Supplemental Graph Template Data, assuming, that this data source gets valid data from your target
Reinhard
rusty
Posts: 16
Joined: Thu Mar 16, 2006 9:20 am

Post by rusty »

Can't find the where to add the Supplemental Graph Template Data. Where do I go to add that.
rusty
Posts: 16
Joined: Thu Mar 16, 2006 9:20 am

Post by rusty »

Ok I figured out what you were referring to regarding the Supplemental Graph Data template. The problem is that the newly defined data source is not shown in the pull down menu
rusty
Posts: 16
Joined: Thu Mar 16, 2006 9:20 am

Post by rusty »

Can anyone take a look at this thread and see if they know why the new data templates are not available inthe Supplemental Graph Data template pul down or why there is an error in the xml export for the CPU Usage - System.

I really need to get this resolved.
rusty
Posts: 16
Joined: Thu Mar 16, 2006 9:20 am

Post by rusty »

And I regularly get this error when trying to create a new CPU Usage graph

Code: Select all

Notice: Undefined index: 258 in /usr/share/cacti/site/lib/template.php on line 732

Notice: Undefined index: 258 in /usr/share/cacti/site/lib/template.php on line 732

Notice: Undefined index: 258 in /usr/share/cacti/site/lib/template.php on line 732

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/lib/template.php:732) in /usr/share/cacti/site/graphs_new.php on line 322
rusty
Posts: 16
Joined: Thu Mar 16, 2006 9:20 am

Post by rusty »

The problem still seems to be that the System CPU Data Source is gone and when I create a new one it doesn't show up on the pull down menu under Supplemental Graph Template Data.

Has any one else experienced this problem? what did you do to fix it?

Thanks
rusty
Posts: 16
Joined: Thu Mar 16, 2006 9:20 am

Post by rusty »

321 views and nobody knows how to fix this problem?

No developers out there willing to take a look at this and see if they can figure out what is wrong here?

Seems like I have posted more than enough info for someone to at least have some ideas.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I have sent you an email.

I would like to login and look at this.

Other graphs are working, right?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests