Professional Documents
Culture Documents
# References
# http://www.zabbix.com/manual/v1.1/
# http://www.howtoforge.org/zabbix_network_monitoring
cd /tmp
wget http://jaist.dl.sourceforge.net/sourceforge/zabbix/zabbix-1.1.4.tar.gz
cd zabbix-1.1.4
mysql -u root -p
quit;
cd create/mysql
cd ../data
cd tmp/zabbix-1.1.4
make install
cd /etc
mkdir zabbix
cp -a /tmp/zabbix-1.1.4/misc/conf/zabbix_server.conf /etc/zabbix/
vi /etc/zabbix/zabbix_server.conf
###########
#LogFile=/tmp/zabbix_server.log
LogFile=/var/log/zabbix_server.log
# Database name
DBName=zabbix
# Database user
#DBUser=root
DBUser=zabbix
# Database password
# Comment this line if no password used
#DBPassword=<password>
DBPassword=yourpassword
###########
chown root.root /etc/zabbix
cd /tmp/zabbix-1.1.4/misc/init.d/fedora/core
cp -a zabbix_server zabbix_server_orig
vi zabbix_server
##########
# Modify the lines as shown below
# BASEDIR=/opt/zabbix
BASEDIR=/usr/local
##########
:wq!
cp -a zabbix_server /etc/init.d/
chkconfig zabbix_server on
/usr/sbin/groupadd zabbix
cd /var/log
touch zabbix_server.log
/etc/rc.d/init.d/zabbix_server start
# Creating the web Interface
yum install gd
yum install libpng
yum install php-gd
cd /var/www/
mkdir yourdomainname
vi /etc/httpd/conf/virtualhostsconf/yourdomain.conf
#####
<VirtualHost *:80>
ServerAdmin postmaster@yourdomain
DocumentRoot /var/www/yourdomain
ServerName yourdomain
ErrorLog /etc/httpd/logs/yourdomain_error_log
CustomLog /etc/httpd/logs/yourdomain_access_log common
# Block access: SLAC addition
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
# End block access rule
</VirtualHost>
########
cd /tmp/zabbix-1.1.4/frontends/php/include/
cp -a db.inc.php db.inc.php.orig
mysql -u root -p
mysql -u root -p
#Enter Mysql root password when prompted
use zabbix;
update items set type=7 where type=0;
vi db.inc.php
#########
$DB_SERVER ="localhost";
$DB_DATABASE ="zabbix";
$DB_USER ="zabbix";
$DB_PASSWORD ="yourpassword";
#########
cp -R /tmp/zabbix-1.1.4/frontends/php/* /var/www/monitor.megaesecure.com
/etc/rc.d/init.d/httpd restart
cd /etc/logrotate.d
vi zabbix_server
###
/var/log/zabbix_server.log {
missingok
notifempty
copytruncate
}
####
# Open the domian name in your web browser and Login as Admin with a blank
password
Reference: http://www.zabbix.com/manual/v1.1/processes_agent_win.php
cd c:\Program Files\Zabbix_agent
# Non recommended but easy:You can also use the third party Zabbix agent installer
on http://sholari.free.fr/wiki/static/ZabbixOnWindows.html
# Linux agent installation
cd /tmp
wget http://superb-east.dl.sourceforge.net/sourceforge/zabbix/zabbix-1.1.6.tar.gz
rm -rf zabbix-1.1.6.tar.gz
cd zabbix-1.1.6
./configure --enable-agent
make
make install
mkdir -p /etc/zabbix
/usr/sbin/groupadd zabbix
cp -a /tmp/zabbix-1.1.6/misc/conf/zabbix_agentd.conf /etc/zabbix/
vi /etc/zabbix/zabbix_agentd.conf
# Edit values as required.Ensure that all the agent is configured for active
checks and paramaters related to active checks are configured.
cp -a /tmp/zabbix-1.1.6/misc/init.d/fedora/core/zabbix_agentd /etc/init.d/
vi /etc/init.d/zabbix_agentd
########
# Modify the lines as shown below
# BASEDIR=/opt/zabbix
BASEDIR=/usr/local
########
:wq!
cd /var/log
touch zabbix_agentd.log
/etc/rc.d/init.d/zabbix_agentd start
vi zabbix_agent
###
/var/log/zabbix_agentd.log {
missingok
notifempty
copytruncate
}
###
chown root.root zabbix_agent
chmod 644 zabbix_agent
cd /tmp
rm -rf zabbix-1.1.6
Add this host in the Zabbix frontend and apply the unix_t template