I've installed cacti on solaris 10 (with net-snmp).
And I have a trouble with indexed data query.
E.g. cacti can't get interfaces list:
Data Query Debug Information
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/apache2/htdocs/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/apache2/htdocs/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/apache2/htdocs/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/apache2/htdocs/resource/snmp_queries/interface.xml'
But I can easily get it by hands:
% /usr/local/bin/snmpwalk -v 2c -c public host .1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
As you can see I use net-snmp snmpwalk in /usr/local/bin. The path I've set for snmpwalk, snmpget etc. in cacti setup on cacti's first start.
What's wrong?
cacti on solaris 10
Moderators: Developers, Moderators
Your webserver probably runs under the anonymous (nobody) account.
Check to see if snmpget works when using nobody. Probably your are missing some of the environment variables for the shared libraries like LD_LIBRARY_PATH. It should be set to something like LD_LIBRARY_PATH=/usr/lib:/etc/lib:/usr/local/lib:/usr/local/ssl/lib:/usr/local/lib/sparcv9
Just set it in /etc/profile and restart your web server.
Check to see if snmpget works when using nobody. Probably your are missing some of the environment variables for the shared libraries like LD_LIBRARY_PATH. It should be set to something like LD_LIBRARY_PATH=/usr/lib:/etc/lib:/usr/local/lib:/usr/local/ssl/lib:/usr/local/lib/sparcv9
Just set it in /etc/profile and restart your web server.
There was problem with snmp really. It could not find so-library. I've fixed it.
Now some problem with rrd files. They are not created. When I turn on debug mode I get:
RRDTool Says:
ERROR: opening '/var/apache2/htdocs/rra/web_traffic_in_28.rrd': No such file or directory
No error was when I created the graph.
Data Source Debug
/usr/local/rrdtool-1.0.49/bin/rrdtool create \
/var/apache2/htdocs/rra/web_traffic_in_28.rrd \
--step 300 \
DS:traffic_out:COUNTER:600:0:100000000 \
DS:traffic_in:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
When try the command by hands the file is created. But still no data collected.
From cacti.log:
06/30/2006 03:25:08 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "update data_template_data set rrd_maximum='|query_ifSpeed|' where local_data_id=27"
Now some problem with rrd files. They are not created. When I turn on debug mode I get:
RRDTool Says:
ERROR: opening '/var/apache2/htdocs/rra/web_traffic_in_28.rrd': No such file or directory
No error was when I created the graph.
Data Source Debug
/usr/local/rrdtool-1.0.49/bin/rrdtool create \
/var/apache2/htdocs/rra/web_traffic_in_28.rrd \
--step 300 \
DS:traffic_out:COUNTER:600:0:100000000 \
DS:traffic_in:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
When try the command by hands the file is created. But still no data collected.
From cacti.log:
06/30/2006 03:25:08 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "update data_template_data set rrd_maximum='|query_ifSpeed|' where local_data_id=27"
Who is online
Users browsing this forum: No registered users and 0 guests