Code: Select all
Notice: Undefined index: arg_index in /usr/share/cacti/lib/data_query.php on line 98
Notice: Undefined index: script_path in /usr/share/cacti/lib/data_query.php on line 98
Notice: Undefined index: arg_query in /usr/share/cacti/lib/data_query.php on line 109
Notice: Undefined index: query_name in /usr/share/cacti/lib/data_query.php on line 109
Notice: Undefined index: script_path in /usr/share/cacti/lib/data_query.php on line 109
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/lib/data_query.php:98) in /usr/share/cacti/host.php on line 129
I'm trying to graph the temperature of CPU and System, for now I am trying to make it work for the CPU to get started. It looks to me that the machine I am attempting to get temps for does not have "MIB Variables" for the lmsensor information, which brings me to my first real question... does "query->fields->ifIndex" at ifIndex need to be the name of a MIB variable? If not can I create an arbitrary name here, or list the numerical OID? I am running 0.8.6h. Any help or insight would be greatly appreciated or alternatively debugging information. Thanks!
Code: Select all
<interface>
<name>Get SNMP CPU Temp</name>
<description>Queries a host for the CPU Temperature</description>
<oid_index>host.8.1</oid_index>
<index_order_type>numeric</index_order_type>
<fields>
<lmsensorIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>host.8.1</oid>
</lmsensorIndex>
<lmsensorCPU>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>host.8.1.5.22</oid>
</lmsensorCPU>
</fields>
</interface>
Code: Select all
HOST-RESOURCES-MIB::host.8.1.5.22 = STRING: "39.400000"