cacti on solaris 10

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Sem
Posts: 29
Joined: Fri Mar 25, 2005 3:05 am
Contact:

cacti on solaris 10

Post by Sem »

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?
Sem
Posts: 29
Joined: Fri Mar 25, 2005 3:05 am
Contact:

Post by Sem »

May be I can increase a debug level to see what exact command executed?
wimh
Posts: 1
Joined: Wed Jun 28, 2006 8:11 am

Post by wimh »

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.
elnino
Cacti User
Posts: 205
Joined: Tue Mar 08, 2005 9:51 pm

Post by elnino »

Sem, do you have PHP compiled with SNMP support?
Sem
Posts: 29
Joined: Fri Mar 25, 2005 3:05 am
Contact:

Post by Sem »

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"
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest