Problems of operation with SOLARIS
Moderators: Developers, Moderators
Problems of operation with SOLARIS
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
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 (48.93 KiB) Viewed 4611 times
Solaris daemons stopped?
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
Execute:
$ snmpget -v 1 -c public localhost sysUpTime.0
and post the result,
regards,
zanaguara
Re: Solaris daemons stopped?
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,
bash-2.05# snmpget -v 1 -c public localhost system.sysUpTime.0
Timeout: No Response from localhost.
Regards,
NET-SNMP running? community?
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).
$ ps -ef | grep snmp
If it's running, check if your community is "public" (check your snmpd.conf file).
Re: NET-SNMP running? community?
bash-2.05# ps -ef | grep snmp
root 19935 1 0 16:43:42 ? 0:00 ./snmpd
root 19935 1 0 16:43:42 ? 0:00 ./snmpd
Re: NET-SNMP running? community?
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
...
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
...
That snmpd.conf file is Solaris SNMP daemon config file, not NET-SNMP.
Try:
stop and disable Solaris SNMP daemons:
now start NET-SNMP:
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:
to start an interactive basic configuration process.
Regards,
zanaguara
Try:
stop and disable Solaris SNMP daemons:
Code: Select all
# cd /etc/rc3.d
# ./S76snmpdx stop
# ./S77dmi stop
# mv S76snmpdx _S76snmpdx
# mv S77dmi _S77dmi
Code: Select all
/path1/snmpd -c /path2/snmpd.conf
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
Regards,
zanaguara
Re: NET-SNMP running? community?
I am not sure if i am rigth. But i think a graph should appear even if the snmp had gathered no information.
Regards,
Regards,
downed host detection
(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
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
send log file
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
Go to Configuration -> Settings -> Poller Specific Logging and select DEBUG.
Then wait until poller is executed at least once.
Regards,
zanaguara
Re: send log file
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,
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,
Re: send log file
Ok, it's a permissions problem.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,
- 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.
Re: send log file
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,
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,
Re: send log file
Ok, apache is being executed by nobody.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
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".
Who is online
Users browsing this forum: No registered users and 0 guests