Anyone can help ?
Ad Widget
Collapse
Centos 4.4 installation help
Collapse
X
-
Perhaps you have DOS-style end of lines in the file?Comment
-
Hi,
I've edited zabbix_server.conf for mysql config, the website is blank when
I open it:
# This is config file for ZABBIX server process
# To get more information about ZABBIX,
# go http://www.zabbix.com
############ GENERAL PARAMETERS #################
# This defines which server this is.
# Default value 1
# This parameter must be between 1 and 255
Server=1
# 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 6
# This parameter must be between 5 and 255
StartPollers=6
# Number of pre-forked instances of trappers
# Default value is 5
# This parameter must be between 2 and 255
StartTrappers=5
# Listen port for trapping. Default port number is 10051. This parameter
# must be between 1024 and 32767
ListenPort=10051
# 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=30Comment
-
I don't use mysql client to connect database, the following infomation hope
can help me.
Thanks
###the include/db.inc.php###
?>
<?php
function DBconnect(&$error)
{
$result = true;
global $DB, $DB_TYPE="MYSQL", $DB_SERVER="localhost", $DB_DATABASE="zabbix", $DB_USER="root", $DB_PASSWORD=1234";
###the zabbix_server.conf###
mysql> show tables;
+--------------------+
| Tables_in_zabbix |
+--------------------+
| acknowledges |
| actions |
| alerts |
| applications |
| auditlog |
| autoreg |
| conditions |
| config |
| events |
| functions |
| graphs |
| graphs_items |
| groups |
| help_items |
| history |
| history_log |
| history_str |
| history_str_sync |
| history_sync |
| history_text |
| history_uint |
| history_uint_sync |
| hosts |
| hosts_groups |
| hosts_profiles |
| hosts_templates |
| housekeeper |
| images |
| items |
| items_applications |
| mappings |
| media |
| media_type |
| node_cksum |
| node_configlog |
| nodes |
| profiles |
| rights |
| screens |
| screens_items |
| service_alarms |
| services |
| services_links |
| services_times |
| sessions |
| sysmaps |
| sysmaps_elements |
| sysmaps_links |
| trends |
| trigger_depends |
| triggers |
| users |
| users_groups |
| usrgrp |
| valuemaps |
+--------------------+
55 rows in set (0.00 sec)
mysql>Comment
-
If you can connect to the mysql zabbix database with the username, password and hostname, then make sure that both your zabbix_server.conf and your db.inc.php have those details properly entered in. Once you have done so, it should work assuming everything else is set up properly.
- PaulComment
-
you need to read the zabbix documentation and follow the instructions from there.
http://www.zabbix.com/manual/v1.1/Comment
Comment