> For the complete documentation index, see [llms.txt](https://prosbcdocs.telcobridges.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prosbcdocs.telcobridges.com/tmedia-documentation/server-and-os-administration/installing-a-zabbix-server.md).

# Installing a Zabbix server

***This procedure applies to Zabbix v.2.4 on CentOS6***

## Install Zabbix

1. Follow RedHat/CentOS installation procedure from Zabbix documentation

<https://www.zabbix.com/documentation/2.4/manual/installation/install\\_from\\_packages#red\\_hat\\_enterprise\\_linuxcentos>

**Note**: It is possible that you might get the following error while starting httpd on a new CentOS installation:

1. service httpd start Starting httpd: httpd: apr\_sockaddr\_info\_get() failed for myZabbixHost httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

Make sure to configure your hostname "myZabbixHost" to /etc/hosts

2. Configure services to automatically starts on reboot of the server
3. chkconfig mysqld on
4. chkconfig zabbix-server on
5. chkconfig zabbix-agent on
6. chkconfig httpd on
7. Disable SELinux
8. setenforce 0

Edit /etc/selinux/config and set SELINUX to disabled:

1. vi /etc/selinux/config SELINUX=disabled
2. Configure the Zabbix frontend

Follow the procedure in the section **Installing frontend** from Zabbix documentation

<https://www.zabbix.com/documentation/2.4/manual/installation/install#installing\\_zabbix\\_web\\_interface>

5. Login to Zabbix frontend

In your browser, open Zabbix URL: http:`//`\<server\_ip\_or\_name>/zabbix

The default user name is **Admin**, password **zabbix**

## Install NET-SNMP

1. yum install net-snmp-utils
2. yum install net-snmp-perl
3. yum install snmptt

**Note**: perl-Net-SNMP will be installed together with snmptt

## Install MIBs

1. Get the "install\_mibs.sh" script:
2. wget <http://download.distribution.telcobridges.com/mibs/install\\_mibs.sh>
3. chmod +x install\_mibs.sh
4. Run "install\_mibs.sh" script with no argument to get the mibs path configured on your system:
5. ./install\_mibs.sh ./install\_mibs.sh Mibs paths returned by snmptranslate: init\_mib: Seen MIBDIRS: Looking in '/root/.snmp/mibs\:/usr/share/snmp/mibs' for mib dirs ...
6. Install the mibs files to the MIBDIRS path (ex.**/usr/share/snmp/mibs**):
7. ./install\_mibs.sh /usr/share/snmp/mibs

The installation of NET-SNMP already comes with defaults mibs. The script install only the mibs that are not included in the default NET-SNMP package and that are needed by the TB snmp zabbix templates:

* TB-MIB-2014.mib (TB-MIB)
* rfc-2495.mib (DS1-MIB)
* rfcperfhist.mib (definition used by rfc-2495.mib)

**Note**: If for some reason your NET-SNMP does not contain all the required mibs, you can download all the mibs from <http://download.distribution.telcobridges.com/mibs> and copy them to your MIBDIRS path.

4. Configure snmp.conf (if the file does not exist, create the file with only the following line):
5. vi /etc/snmp/snmp.conf mibs +ALL

## Configure SNMP traps

Reference from <http://www.zabbix.org/wiki/ConfigureSnmptrapsCentos6\\_RHEL6>).

### Configure Zabbix Server

1. vi /etc/zabbix/zabbix\_server.conf StartSNMPTrapper=1 SNMPTrapperFile=/var/log/snmptt/snmptt.log

### Configure snmptrapd

1. vi /etc/snmp/snmptrapd.conf traphandle default /usr/sbin/snmptthandler authCommunity log,execute,net public

### Configure snmptt

1. vi /etc/snmp/snmptt.ini translate\_log\_trap\_oid = 2 net\_snmp\_perl\_enable = 1 date\_time\_format = %H:%M:%S %Y/%m/%d log\_file = /var/log/snmptt/snmptt.log log\_system\_enable = 1

### Install TelcoBridges snmptt.conf

1. wget <http://download.distribution.telcobridges.com/zabbix/snmptt.conf>
2. cp snmptt.conf /etc/snmp/snmptt.conf

### Start services

1. chkconfig snmptt on
2. chkconfig snmptrapd on
3. service snmptrapd start
4. service snmptt start


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://prosbcdocs.telcobridges.com/tmedia-documentation/server-and-os-administration/installing-a-zabbix-server.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
