Thursday, April 16, 2009

zabbix server monitoring

The first step to install the zabbix host is to ensure that we have installed the webserver (apache2-PHP5) and the database server (mysql server5).

If you have installed the next step to install SNMP:
Tsubasa root @: / # apt-get install SNMP

Then the following tambahkanlah repository in / etc / apt / source.list

# Zabbix
deb http://mirror.opf.slu.cz/zabbix unstable contrib

then updatelah source list and install zabbix
Tsubasa root @: / # apt-get update
Tsubasa root @: / # aptitude install zabbix-frontend-php zabbix-server zabbix-agent

After that there will be a display screen that asks for admin password for our database server (user root)
will have on demand from the user zabbix password and confirmation.

After the finish has been installed zabbix.

How to run zabbix:
Tsubasa root @: / # / etc / init.d / zabbix-server start
Tsubasa root @: / # / etc / init.d / zabbix-agent start

To begin configuring zabbix:
open a browser and type http://localhost/zabbix
Then you will be taken to install the zabbix and configure underweb.

Here are some error messages as well as the solution that I experienced when installing zabbix:

1. Timezone for PHP is not set set.Please ... ... ... ..
solution: change the variable value of the date.timezone php.ini in the directory / etc/php5/apache2 into date.timezone = Asia / Jakarta. Then restartlah apache service.

2. PHP Max execution time: 30 sec fail
solution: change the value max_execution_time = 30 in which there is a php.ini max_execution_time = 300, then apache restartlah service.

3. Mysql_pconnect, access denied for user @ localhost user zabbix
solutions: Adjust the configuration (username, password and database), which is located at / usr / share / conf / zabbix.conf.php with username, password and database in mysql.

4. Incorrect configuration file [/ usr / share / conf / zabbix.conf.php]
solution: Click save configuration files on the 6.install then change the content of the file / usr / share / conf / zabbix.conf.php with the contents of the file before clicked.

Enough here until I can explain that, depending on how you use and develop.
> swap

Wednesday, March 18, 2009

Router Debian

First prepare your computer with 2 lan card is eth0 and eth1.

1. Make sure the program is installed iptables

2. And open the console

3. Remove the rules that already exist with the command as follows:

* Iptables-flush
* Iptables-table nat-flush
* Iptables-delete-chain
* Iptables-table nat-delete-chain

4. Then do the settings for the Masquerade and forwarding with the command as follows:

* Iptables-table nat-append POSTROUTING-out-interface eth0-j Masquerade
Iptables-append * Forward-in-interface eth1-j ACCEPT
* Echo 1> / proc/sys/net/ipv4/ip_forward

5. Save firewall rules have been made with the command as follows:

* Iptables-save> / etc / firewall.conf

6. Then, create a file with a name in the directory iptables / etc / network / if-up.d /
iptables:
* Vi / etc / network / if-up.d / iptables
* Inside type the command:

#! / bin / sh

iptables-restore
echo 1> / proc/sys/net/ipv4/ip_forward

* Then save the file

7. Provide access to execution so that firewall rules have been created that can be used since
the process of booting with the command:

chmod + x / etc / network / if-up.d / iptables

8. Restart your Computer to do the testing iptables rules.

9. Done.
Indonesian