If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
Hello,
Thanks for your reply. I have locate zabbix-server file in /usr/local/bin
marina:/usr/local/bin# ls
encode_keychange ptlib-config snmpget snmptest traptoemail
fixproc snmpbulkget snmpgetnext snmptranslate zabbix_agent
ipf-mod.pl snmpbulkwalk snmpinform snmptrap zabbix_agentd
mib2c snmpcheck snmpnetstat snmpusm zabbix_get
mib2c-update snmpconf snmpset snmpvacm zabbix_sender
net-snmp-config snmpdelta snmpstatus snmpwalk zabbix_server
openmcu snmpdf snmptable tkmib
marina:/usr/local/bin#
And this is the output of dpkg -l | grep zabbix
marina:~# dpkg -l | grep zabbix
ii zabbix-frontend-php 1.1.4-10 software for monitoring of your servers -- p
marina:~#
I want to explain a new phenomena. Yesterday I try to re-install all following the wiki howto and the official document. All the installation run well until I get this error in the log file.
marina:/usr/local/bin# cat /tmp/zabbix_server.log
4170:20070725:073956 Starting zabbix_server. ZABBIX 1.4.1.
4170:20070725:073956 **** Enabled features ****
4170:20070725:073956 SNMP monitoring: YES
4170:20070725:073956 WEB monitoring: YES
4170:20070725:073956 Jabber notifications: YES
4170:20070725:073956 **************************
4170:20070725:073956 Failed to connect to database: Error: Access denied for user 'root'@'localhost' (using password: NO) [1045]
marina:/usr/local/bin#
Can you help me solve the connection of database problem because I can finalize the installation via http://localhost/overview
Thanks for your reply therefore I want to know if I must clean all the table I have in zabbix database before and after execute all the command you suggest ?
I have delete the last installation zabbix database and execute all the commands you suggest. Now when I try to access zabbix via web interface, I have these wranings messages on the top of the web page :
Warning: include_once(/etc/zabbix/dbconfig.php) [function.include-once]: failed to open stream: Permission denied in /usr/share/zabbix/include/db.inc.php on line 24
Warning: include_once() [function.include]: Failed opening '/etc/zabbix/dbconfig.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/zabbix/include/db.inc.php on line 24
And an this error message on the top of the login :
[ERROR:Login name or password is incorrect]
# This is config file for ZABBIX server process
# To get more information about ZABBIX,
# go http://www.zabbix.com
############ GENERAL PARAMETERS #################
# This defines unique NodeID in distributed setup,
# Default value 0 (standalone server)
# This parameter must be between 0 and 999
#NodeID=0
# Number of pre-forked instances of pollers
# Default value is 5
# This parameter must be between 0 and 255
#StartPollers=5
# Number of pre-forked instances of pollers for unreachable hosts
# Default value is 1
# This parameter must be between 0 and 255
#StartPollersUnreachable=1
# Number of pre-forked instances of trappers
# Default value is 5
# This parameter must be between 0 and 255
#StartTrappers=5
# Number of pre-forked instances of ICMP pingers
# Default value is 1
# This parameter must be between 0 and 255
#StartPingers=1
# Number of pre-forked instances of discoverers
# Default value is 1
# This parameter must be between 0 and 255
#StartDiscoverers=1
# Number of pre-forked instances of HTTP pollers
# Default value is 1
# This parameter must be between 0 and 255
#StartHTTPPollers=1
# Listen port for trapper. Default port number is 10051. This parameter
# must be between 1024 and 32767
#ListenPort=10051
# Listen interface for trapper. Trapper will listen all network interfaces
# if this parameter is missing.
#ListenIP=127.0.0.1
# How often ZABBIX will perform housekeeping procedure
# (in hours)
# Default value is 1 hour
# Housekeeping is removing unnecessary information from
# tables history, alert, and alarms
# This parameter must be between 1 and 24
#HousekeepingFrequency=1
# How often ZABBIX will try to send unsent alerts
# (in seconds)
# Default value is 30 seconds
SenderFrequency=30
# Uncomment this line to disable housekeeping procedure
#DisableHousekeeping=1
# Specifies debug level
# 0 - debug is not created
# 1 - critical information
# 2 - error information
# 3 - warnings (default)
# 4 - for debugging (produces lots of information)
DebugLevel=3
# Specifies how long we wait for agent response (in sec)
# Must be between 1 and 30
Timeout=5
# Specifies how many seconds trapper may spend processing new data
# Must be between 1 and 30
#TrapperTimeout=5
# After how many seconds of unreachability treat a host as unavailable
#UnreachablePeriod=45
# How ofter check host for availability during the unreachability period
#UnavailableDelay=15
# How ofter check host for availability during the unavailability period
#UnavailableDelay=60
# Name of PID file
PidFile=/var/tmp/zabbix_server.pid
# Name of log file
# If not set, syslog is used
LogFile=/tmp/zabbix_server.log
# Maximum size of log file in MB. Set to 0 to disable automatic log rotation.
#LogFileSize=1
# Location for custom alert scripts
AlertScriptsPath=/home/zabbix/bin/
# Location of external scripts
#ExternalScripts=/etc/zabbix/externalscripts
# Location of 'fping. Default is /usr/sbin/fping
# Make sure that fping binary has root permissions and SUID flag set
#FpingLocation=/usr/sbin/fping
# Frequency of ICMP pings (item keys 'icmpping' and 'icmppingsec'). Defauls is 60 seconds.
#PingerFrequency=60
# Database host name
# Default is localhost
#DBHost=localhost
# Database name
# SQLite3 note: path to database file must be provided. DBUser and DBPassword are ignored.
DBName=zabbix
# Database user
#DBUser=root
DBUser=zabbix
# Database password
# Comment this line if no password used
Thanks a lot,
Now I can connect as admin without password. But I have a new warning message at the top of the web page :
Error in query [select * from rights where userid=2] [Unknown column 'userid' in 'where clause']
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /usr/share/zabbix/include/db.inc.php on line 104
Another thing is that when I select Monitoring or Inventory I can see " No permissions!" in red color.
Can you please help me solve this problem and avoid the warning.
marina:/usr/share/zabbix/include# cat db.inc.php
<?php
/*
** ZABBIX
** Copyright (C) 2000-2005 SIA Zabbix
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**/
?>
<?php
// DATABASE CONFIGURATION
include_once("/etc/zabbix/dbconfig.php");
// END OF DATABASE CONFIGURATION
Comment