## **Installing Zabbix Agent**

Follow these instructions to install Zabbix Agent on CentOS, RHEL 7/6/5 systems.

### **Step 1 – Add Required Repository**

Configure the Zabbix yum repository using the following commands depending on your required version and operating system. **Centos 7** _rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm_ **Ubuntu 18.04** _wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb_ _dpkg -i zabbix-release_3.2-1+xenial_all.deb_

647


### **Step 2 – Install Zabbix Agent**

**Centos7** _yum install -y zabbix-agent_ **Ubuntu** _apt-get install zabbix-agent -y_

675


### **Step 3 – Edit Zabbix Agent Configuration**

Configure zabbix agent by adding zabbix server IP in its configuration file/etc/zabbix/zabbix_agentd.conf _vi /etc/zabbix/zabbix_agentd.conf_



### **Step 4 – Restarting Zabbix Agent**

Restart agent service using the following commands. _systemctl enable zabbix-agent systemctl start Zabbix-agent_

874


To start and stop zabbix-agent service anytime, use the following commands. _systemctl start zabbix-agent systemctl stop zabbix-agent_



Port#10050 should be allowed in your Firewall (iptables, firewalld)

## **Adding JMX Monitoring to Zabbix**

### **Step 1 – Enable jmx in jetty configuration**

Open start.ini in searchblox directory (Eg: /opt/searchblox ) In line 48



Then restart the SearchBlox service: # service searchblox restart

926


Confirm that it is listening using netstat –nutlp



### **Step 2 – Adding JMX monitoring in Zabbix**

In Zabbix, go to Configuration -> Hosts

1364


Adding the host into zabbix server

  1. Hostname: <give meaningful host name>

  2. Visible Name: <give some name(optional) >

  3. Groups : <Template/Application>

  4. Agent Interface : <add host ip address> and Port no is 10050

  5. JMX insterface : <add host ip address> and port no 1099

  6. And click add to complete the host creation

990


### **Step 3 - Select the custom Template**

  1. click **Template**

  2. click **Link new template**

  3. select the **Template for SearchBlox **

  4. click **Select **

1082


### **Step 4 - Creating the Application: **

  1. Click **Configuration**

  2. Click **Hosts **

  3. Select** Application Group** :`<application Template>`

  4. Select **Host**: `<select created host>`

  5. Click **Create Application**

1356

  1. Name: `<Searchblox>`

  2. Click **Add **option.

878


### **Step 5 – Creating Web Scenario**

  1. Click **Configuration**

  2. Click **Hosts**

  3. Click **Web scenarios**

  4. Click **Scenarios**

  5. **Name**:` <give some meaning full name>`

  6. **Application**: `<select the application Name>`

  7. Click **Update**

729

  1. Click **Steps **

  2. **Name **: `<application name>`

  3. **URL**: `<application url>`

  4. Click **Follow Redirection** Note: status code should be 200

  5. Click **Add** button

495


### **Step 6 – Monitoring**

  1. Click **Monitoring**

  2. Click **Web**

  3. Select the server

1354

1287


Go to Monitoring -> Latest data

1332