|
|
| Author |
Message |
Yzo
Joined: 16 May 2006 Posts: 3
|
Posted: Wed May 17, 2006 9:28 pm Post subject: |
|
|
Ugh!
Days of frustration to figure out I needed to put a check mark in the Associated Data Templates section of the Associated Graphs Templates of the Data Query entries for the sensor types.
It's all good now. |
|
| Back to top |
|
 |
Fluor
Joined: 27 Jun 2006 Posts: 1 Location: Utrecht, NL
|
Posted: Tue Jun 27, 2006 9:29 am Post subject: Problems importing 8x templates |
|
|
Hello!
Thanks for this cooltemplate package. I imported the XML files, all went okay, except for the 8x ones. They all have unmet dependencies. What did I do wrong?
The other templates (seem to) work perfectly. I'm running them for just a few minutes now, waiting for the first data to come through
I'll be happy to hear what i can do to import the 8x templates! Couldn't find it on this thread, though... |
|
| Back to top |
|
 |
superdave913
Joined: 14 Jan 2005 Posts: 28
|
Posted: Mon Jul 03, 2006 12:18 am Post subject: More detail? |
|
|
| Yzo wrote: | Ugh!
Days of frustration to figure out I needed to put a check mark in the Associated Data Templates section of the Associated Graphs Templates of the Data Query entries for the sensor types.
It's all good now. |
I am confused about which check-mark you are referring too... I'm still having this problem.
Could you outline in a little more detail?
Thanks,
Dave |
|
| Back to top |
|
 |
/usr/local/dick
Joined: 11 May 2006 Posts: 3
|
Posted: Sat Jul 22, 2006 6:04 am Post subject: what about libsnmp on Ubuntu? |
|
|
I just installed lmsensors on Ubuntu-6.0.6 and the sensors command works fine, I get all sort of temperatures and voltages back.
Now I also have snmpd running on the machine, but if I snmpwalk I don't get lm-sensors values back... There is no mention of any LMSENSORS mib in the result
Any idea what needs to be done?
I was hoping to get rid of backporting and recompiling stuff myself since I went from Debian to Ubuntu... so please ...  |
|
| Back to top |
|
 |
ehall Cacti User
Joined: 09 Dec 2005 Posts: 160
|
Posted: Thu Jul 27, 2006 10:18 pm Post subject: Re: what about libsnmp on Ubuntu? |
|
|
| /usr/local/dick wrote: | I just installed lmsensors on Ubuntu-6.0.6 and the sensors command works fine, I get all sort of temperatures and voltages back. Now I also have snmpd running on the machine, but if I snmpwalk I don't get lm-sensors values back... There is no mention of any LMSENSORS mib in the result  |
You probably need to recompile net-snmp. Ask around in the Ubuntu forums if they compiled in lmSensors support or not. |
|
| Back to top |
|
 |
wintech2003
Joined: 17 May 2005 Posts: 12
|
Posted: Sun Jul 30, 2006 7:50 pm Post subject: Re: More detail? |
|
|
| superdave913 wrote: | | Yzo wrote: | Ugh!
Days of frustration to figure out I needed to put a check mark in the Associated Data Templates section of the Associated Graphs Templates of the Data Query entries for the sensor types.
It's all good now. |
I am confused about which check-mark you are referring too... I'm still having this problem.
Could you outline in a little more detail?
Thanks,
Dave |
I'm also having exactly the same problem... |
|
| Back to top |
|
 |
darkeye
Joined: 22 Aug 2006 Posts: 3
|
Posted: Tue Aug 22, 2006 4:54 pm Post subject: Unmet Dependency: (GPRINT Preset) Normal |
|
|
when trying to import some of the 8x templates, I get the following:
| Code: |
Unmet Dependency: (GPRINT Preset) Normal
|
what am I doing wrong? how could I fulfill this dependency? |
|
| Back to top |
|
 |
plouj
Joined: 31 Aug 2006 Posts: 7
|
Posted: Fri Sep 01, 2006 12:03 pm Post subject: Re: More detail? |
|
|
| wintech2003 wrote: | | superdave913 wrote: | | Yzo wrote: | Ugh!
Days of frustration to figure out I needed to put a check mark in the Associated Data Templates section of the Associated Graphs Templates of the Data Query entries for the sensor types.
It's all good now. |
I am confused about which check-mark you are referring too... I'm still having this problem.
Could you outline in a little more detail?
Thanks,
Dave |
I'm also having exactly the same problem... |
Open the ucd/net - lmSensors - Get Fan Sensors (for example) data query
Go to that query's "Associated Graph Templates" (ucd/net - lmSensors - Fan Sensor in this example)
Put a checkmark in the "Associated Data Templates" section beside "Data Source: sensorReading" |
|
| Back to top |
|
 |
plouj
Joined: 31 Aug 2006 Posts: 7
|
Posted: Fri Sep 01, 2006 1:02 pm Post subject: |
|
|
I duplicated the lm_sensors 8x template to create a 3x graph template. I removed the unneeded graph items. Then I applied this graph template to my cacti device. Then in graph management, I added appropriate data sources for all three graph items. However, the graph doesn't get drawn because the RRDTool Command is wrong:
| Code: | RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Fan Sensors" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="RPMs" \
--slope-mode \
DEF:a="/var/www/localhost/htdocs/c/rra/localhost_sensorreading_33.rrd":sensorReading:LAST \
DEF:b="/var/www/localhost/htdocs/c/rra/localhost_sensorreading_35.rrd":sensorReading:LAST \
DEF:c="/var/www/localhost/htdocs/c/rra/localhost_sensorreading_34.rrd":sensorReading:LAST \
LINE1:a#00FF00:"CPU fan" \
GPRINT::LAST:" Current\:" \
GPRINT::AVERAGE:" Average\:" \
GPRINT::MIN:" Minimum\:" \
GPRINT::MAX:" Maximum\:\n" \
LINE1:b#0000FF:"Front fan" \
GPRINT::LAST:"Current\:" \
GPRINT::AVERAGE:"Average\:" \
GPRINT::MIN:"Minimum\:" \
GPRINT::MAX:"Maximum\:\n" \
LINE1:c#EA8F00:"Rear fan" \
GPRINT::LAST:" Current\:" \
GPRINT::AVERAGE:" Average\:" \
GPRINT::MIN:" Minimum\:" \
GPRINT::MAX:" Maximum\:\n"
RRDTool Says:
ERROR: Could not parse line 'GPRINT::LAST: Current\:' |
I wonder if this is related to the fact that when I try to import the 8x graphs I see an error about unmet dependencies:
| Code: | Cacti has imported the following items:
Graph Template
[success] ucd/net - lmSensors - Fan Sensors (8x) [update]
+ Unmet Dependency: (GPRINT Preset) Exact Numbers
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
... |
|
|
| Back to top |
|
 |
plouj
Joined: 31 Aug 2006 Posts: 7
|
Posted: Fri Sep 01, 2006 9:45 pm Post subject: |
|
|
| I manually re-created my own x3 and x4 graphs and they seem to work fine. I'm wondering if there is something wrong with the XML files in the archive. |
|
| Back to top |
|
 |
Blueroot
Joined: 19 Jun 2005 Posts: 3
|
Posted: Sun Sep 03, 2006 2:55 pm Post subject: Import |
|
|
He,
the import of the xml files with cacti templateimport don't work by me.
I always get "Error: XML: Generated with a newer version of Cacti."
I use Cacti 0.8.6g.
Did anyboady knows how to fix it? |
|
| Back to top |
|
 |
plouj
Joined: 31 Aug 2006 Posts: 7
|
Posted: Sun Sep 03, 2006 4:25 pm Post subject: Re: Import |
|
|
| Blueroot wrote: | He,
the import of the xml files with cacti templateimport don't work by me.
I always get "Error: XML: Generated with a newer version of Cacti."
I use Cacti 0.8.6g.
Did anyboady knows how to fix it? |
Yes, upgrade cacti! "The latest stable version is 0.8.6h, released 01/03/06." |
|
| Back to top |
|
 |
darkeye
Joined: 22 Aug 2006 Posts: 3
|
Posted: Fri Sep 08, 2006 9:06 am Post subject: Re: More detail? |
|
|
| plouj wrote: |
Open the ucd/net - lmSensors - Get Fan Sensors (for example) data query
Go to that query's "Associated Graph Templates" (ucd/net - lmSensors - Fan Sensor in this example)
Put a checkmark in the "Associated Data Templates" section beside "Data Source: sensorReading" |
I did the same, but I still don't get any readings  |
|
| Back to top |
|
 |
proddy
Joined: 20 Sep 2006 Posts: 1
|
Posted: Wed Sep 20, 2006 4:09 pm Post subject: |
|
|
I have the same problem as darkeye.
lm_sensors and snmp are working correctly. Data query in Cacti is capturing the results when run manually in debug, but the graph is not being created (even with checkbox in Data Queries -> (Edit) -> Associated Graph Templates).
Poller is not picking up the new data source. And I noticed in the log a SQL error:
09/20/2006 11:04:38 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed "select snmp_query_graph_rrd.snmp_field_name, data_template_rrd.id as data_template_rrd_id from (snmp_query_graph_rrd,data_template_rrd) where snmp_query_graph_rrd.data_template_rrd_id=data_template_rrd.local_data_template_rrd_id and snmp_query_graph_rrd.snmp_query_graph_id= and snmp_query_graph_rrd.data_template_id=50 and data_template_rrd.local_data_id=8"
note the missing graph_id. Any ideas?
Note this is version 0.8.6h_p20060108-r2 with all the patches (gentoo ebuild) including the fix in graph.php |
|
| Back to top |
|
 |
Icarium
Joined: 06 Dec 2006 Posts: 5
|
Posted: Wed Dec 06, 2006 4:36 pm Post subject: |
|
|
| Code: | + Running data query [10].
+ Found type = '4 '[script query].
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/script_queries/lmsensors_fan.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/localhost/htdocs/cacti/scripts/netsnmp_lmsensors.php fan 127.0.0.1, , 1, , , 161, 500 index'
+ Executing script query '/usr/bin/php -q /var/www/localhost/htdocs/cacti/scripts/netsnmp_lmsensors.php fan 127.0.0.1, , 1, , , 161, 500 query sensorDevice'
+ Found item [sensorDevice=' /var/www/localhost/htdocs/cacti/scripts/netsnmp_lmsensors.php (FAN|TEMPERATURE|VOLTAGE)'] index: syntax
+ Executing script query '/usr/bin/php -q /var/www/localhost/htdocs/cacti/scripts/netsnmp_lmsensors.php fan 127.0.0.1, , 1, , , 161, 500 query sensorName'
+ Found item [sensorName=' /var/www/localhost/htdocs/cacti/scripts/netsnmp_lmsensors.php (FAN|TEMPERATURE|VOLTAGE)'] index: syntax
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/script_queries/lmsensors_fan.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/script_queries/lmsensors_fan.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/script_queries/lmsensors_fan.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/script_queries/lmsensors_fan.xml' |
that's what i get when i click "verbose query" on the device page for localhost under associated data queries
could somebody explain to me what the problem is here? |
|
| Back to top |
|
 |
|