Problems of operation with SOLARIS

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

Moderators: Developers, Moderators

KARLOS

Problems of operation with SOLARIS

Post by KARLOS »

I have all the steps for the configuration of cacti in Solaris 9, but at the moment of test it appears the problem of snmp error.

The programs that have installed are:
Cacti 0.8.6b
PHP 4.1.7
Apache 2.0.51
rrdtool-1.0.49
package netsnmp-5.1.1-sol9-sparc-local
Attachments
solaris.png
solaris.png (48.93 KiB) Viewed 4541 times
zanaguara
Cacti User
Posts: 60
Joined: Tue Nov 16, 2004 10:33 am
Location: Spain

Solaris daemons stopped?

Post by zanaguara »

Have you stopped Solaris SNMP daemons and started NET-SNMP?

Execute:

$ snmpget -v 1 -c public localhost sysUpTime.0

and post the result,

regards,

zanaguara
KARLOS

Re: Solaris daemons stopped?

Post by KARLOS »

After having stopped SNMP daemons i have tried ...

bash-2.05# snmpget -v 1 -c public localhost system.sysUpTime.0
Timeout: No Response from localhost.



Regards,
zanaguara
Cacti User
Posts: 60
Joined: Tue Nov 16, 2004 10:33 am
Location: Spain

NET-SNMP running? community?

Post by zanaguara »

First, check if NET-SNMP is up and running:

$ ps -ef | grep snmp

If it's running, check if your community is "public" (check your snmpd.conf file).
KARLOS

Re: NET-SNMP running? community?

Post by KARLOS »

bash-2.05# ps -ef | grep snmp
root 19935 1 0 16:43:42 ? 0:00 ./snmpd
KARLOS

Re: NET-SNMP running? community?

Post by KARLOS »

I understand the community is public:

bash-2.05# more snmpd.conf
# Copyright 1988 - 07/17/00 Sun Microsystems, Inc. All Rights Reserved.
#ident "@(#)snmpd.conf 2.24 00/07/17 SMI"

# See below for file format and supported keywords

sysdescr Sun SNMP Agent, UltraAX-i2
syscontact System administrator
sysLocation System administrators office
#
system-group-read-community public
#system-group-write-community private
#
read-community public
#write-community private
#
trap localhost
trap-community SNMP-trap
#
#kernel-file /vmunix
#
#managers lvs golden
managers localhost

...
zanaguara
Cacti User
Posts: 60
Joined: Tue Nov 16, 2004 10:33 am
Location: Spain

Post by zanaguara »

That snmpd.conf file is Solaris SNMP daemon config file, not NET-SNMP.

Try:

stop and disable Solaris SNMP daemons:

Code: Select all

# cd /etc/rc3.d
# ./S76snmpdx stop
# ./S77dmi stop
# mv S76snmpdx _S76snmpdx
# mv S77dmi _S77dmi
now start NET-SNMP:

Code: Select all

/path1/snmpd -c /path2/snmpd.conf 
You have installed NET-SNMP sunfreeware package instead of compiling it, so path1 and path2 depend on how that package has been compiled. I suppose path1 and path2 are going to be under /usr/local.

Note that NET-SNMP snmpd.conf file shouldn't have the Sun Microsystems copyright stuff.

You could edit your snmpd.conf file by hand or you can do:

Code: Select all

./snmpconf -g basic_setup
to start an interactive basic configuration process.

Regards,

zanaguara
KARLOS

Re: NET-SNMP running? community?

Post by KARLOS »

I am not sure if i am rigth. But i think a graph should appear even if the snmp had gathered no information.

Regards,
zanaguara
Cacti User
Posts: 60
Joined: Tue Nov 16, 2004 10:33 am
Location: Spain

downed host detection

Post by zanaguara »

(I am not 100% sure of this, so if I am wrong corrections are of course very welcome).

There is one poller setting called "Downed Host Detection" (Settings -> Poller)

If "Downed Host Detection" is SNMP and your SNMP daemon is down, your poller is not going to poll that host. So no graphs are going to be updated.

If you feed your graphs via scripts you can chage the "Downed Host Detection" setting to ping.

regards,

zanaguara
KARLOS

Post by KARLOS »

In device the status puts unknow, in spite of this, the dates queries appear different items and rows.

In the data sources, in Debug Mode, i can see the files are created. When i go to rra folder not appear it.

regards,
zanaguara
Cacti User
Posts: 60
Joined: Tue Nov 16, 2004 10:33 am
Location: Spain

send log file

Post by zanaguara »

Could you please send your log file in debug mode?

Go to Configuration -> Settings -> Poller Specific Logging and select DEBUG.

Then wait until poller is executed at least once.

Regards,

zanaguara
KARLOS

Re: send log file

Post by KARLOS »

Hi Javier,

It is like if it was imposible to write anything at all in rra and log files. So i cannot send you a log file.

It can be seen information in the View Poller Cache [9 Items]. For instance,
Data Source: eretza2 - Memory - Free
RRD: /usr/local/apache2/htdocs/cacti-0.8.6b/rra/localhost_mem_buffers_3.rrd
Action: 1, Script: perl /usr/local/apache2/htdocs/cacti-0.8.6b/scripts/linux_memory.pl MemFree:

Data Source: eretza2 - Memory - Free Swap
RRD: /usr/local/apache2/htdocs/cacti-0.8.6b/rra/localhost_mem_swap_4.rrd
Action: 1, Script: perl /usr/local/apache2/htdocs/cacti-0.8.6b/scripts/linux_memory.pl SwapFree:

(...)

But there is nothing in View Cacti Log file.

It says

ERROR: opening '/usr/local/apache2/htdocs/cacti-0.8.6b/rra/localhost_proc_7.rrd': No such file or directory

and i get another error/warning:

Warning: unlink(/usr/local/apache2/htdocs/cacti-0.8.6b/log/cacti.log): Permission denied in /usr/local/apache2/htdocs/cacti-0.8.6b/utilities.php on line 158

Warning: touch(): Utime failed: Permission denied in /usr/local/apache2/htdocs/cacti-0.8.6b/utilities.php on line 159



Regards,
zanaguara
Cacti User
Posts: 60
Joined: Tue Nov 16, 2004 10:33 am
Location: Spain

Re: send log file

Post by zanaguara »

KARLOS wrote:
Warning: unlink(/usr/local/apache2/htdocs/cacti-0.8.6b/log/cacti.log): Permission denied in /usr/local/apache2/htdocs/cacti-0.8.6b/utilities.php on line 158

Warning: touch(): Utime failed: Permission denied in /usr/local/apache2/htdocs/cacti-0.8.6b/utilities.php on line 159

Regards,
Ok, it's a permissions problem.

- which user is executing poller.php?
- execute:

$ grep User /path_apache_conf/httpd.conf
$ ls -d /usr/local/apache2/htdocs/cacti-0.8.6b

and post the results.
KARLOS

Re: send log file

Post by KARLOS »

Hi javier,

i get these results:

bash-2.05# grep User usr/local/apache2/conf/httpd.conf
# User/Group: The name (or #number) of the user/group to run httpd as.
# . On SCO (ODT 3) use "User nouser" and "Group nogroup".
User nobody
# UserDir: The name of the directory that is appended onto a user's home
UserDir public_html
# Control access to UserDir directories. The following is an example
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%{User-agent}i" agent
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O"


bash-2.05# ls - d usr/local/apache2/htdocs/cacti-0.8.6b
-: No such file or directory
d: No such file or directory
usr/local/apache2/htdocs/cacti-0.8.6b:
LICENSE graph_image.php log
README graph_settings.php logout.php
about.php graph_templates.php poller.php
auth_changepassword.php graph_templates_inputs.php poller_cron
auth_login.php graph_templates_items.php resource
cacti.sql graph_view.php rra
cdef.php graphs.php rra.php
cmd.php graphs_items.php script_server.php
color.php graphs_new.php script_server.pl
data_input.php host.php scripts
data_queries.php host_templates.php settings.php
data_sources.php images templates_export.php
data_templates.php include templates_import.php
docs index.php tree.php
gprint_presets.php install user_admin.php
graph.php lib utilities.php


regards,
zanaguara
Cacti User
Posts: 60
Joined: Tue Nov 16, 2004 10:33 am
Location: Spain

Re: send log file

Post by zanaguara »

KARLOS wrote:
User nobody

bash-2.05# ls - d usr/local/apache2/htdocs/cacti-0.8.6b
-: No such file or directory
d: No such file or directory
Ok, apache is being executed by nobody.

Please execute:

bash-2.05# ls -d /usr/local/apache2/htdocs/cacti-0.8.6b

Note that there is no space between the "-" and the "d".
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests