Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Zabbix Agent     - Use source packages compiled and installed GCC5.1 in Mac OS X 10.10.3 (Linux)

- Ubuntu Apache virtual host configuration (Server)

- To install and deploy Java applications under CentOS 6.5 (Linux)

- How to disable UEFI to install Linux on Win8 (Linux)

- Smooth upgrade to OpenSSH 6.1 Procedure (Linux)

- Linux file compression and archiving (Linux)

- Android SDK Manager can not update the domestic solutions (Linux)

- MariaDB phpMyAdmin installation and configuration issues to resolve under CentOS7 (Database)

- Linux tar compressed exclude a folder (Linux)

- dmidecode command Detailed (Hardware information) (Linux)

- Getting the Linux shell flow control statements (Programming)

- Docker use Dockerfile created since the launch of the service support SSH container mirror (Server)

- Ubuntu How to install screen recording tool Simple Screen Recorder 0.3.1 (Linux)

- Memcached source installation and configuration under CentOS 6.6 (Server)

- Usage Linux device tree (Programming)

- using the ssh command to check the socket / Network Connections (Linux)

- Android Activity launchMode (Programming)

- Analysis of memory mapping process in Linux x86-32 mode (Linux)

- Java Generics (Programming)

- FreeBSD install Gnome 3 Desktop (Linux)

 
         
  Zabbix Agent
     
  Add Date : 2018-11-21      
         
         
         
  Zabbix as a system-level monitoring is still very to the force, it is always in the background, repeatedly checking and verification tireless, then by e-mail, text messaging, graphics, and other ways to express the early warning system.

zabbix agent is a component on the client's needs, in this passive mode, zabbix server will greatly reduce the pressure, as is the agent began to push information to the terminal server, rather than take the initiative to get the server.

To interact between the server and the client list zabbix server through a specific network port. So between the two server you need to consider a firewall.

Now if you want to install the agent on each server, at least we need to copy the installation media in the past, create the appropriate directory, create a corresponding user, and then configure the network, and finally run the agent installation file, and so do make install.

If each client to do so again, in fact, the steps are similar, spend a lot of time, is very exhausting. I tried to manually install on their own after a few results of the installation, and much suffering. Some intermediate steps of a mistake, we have to further analysis, and finally found a very simple little errors.

At least for me, I think the easiest way is to install only a ip address, and then the rest of the things can be done automatically.

For example, suppose we have a script zabbix_agent.sh only need to install the agent to enter the ip address of the machine, the installation will start automatically, thus saving time and effort up.

We can continue to refine the problem, it is called thinning parts can be achieved. For example, I was in the middle of a proxy server, you need to connect through this server to each server to install agent, then the first thing to do is to create the corresponding directory on the target machine, the files required for installation gave a copy of the past, can Acronym release agent

After the file directory then so have, we need to configure the network firewall to create zabbix agent operating system user, calls the installation file, this section referred to as the deployment agent

So I put the script into two parts, the running time only need to provide ip address.

./publish_zabbix_agd.sh $ 1
./zabbix_agent_dep.sh $ 1

Clear goals after the task that remains is the concrete implementation.

For publishers, in order to achieve one-click publishing, deployment results, use expect dynamic way to run the script.

I am currently employed as follows:

Release agent script reads as follows, assuming the agent directory new_agent, on the line to create the folder, and then copy the installation files to the specified directory / home / zabbix

#! / Usr / bin / expect
 set ip_addr [lindex $ argv 0]
 set timeout 2
 spawn ssh $ ip_addr
 expect "* #"
 send "mkdir -p / home / zabbix \ r"
 expect eof
 spawn scp -r / home / jeanron / new_agent $ ip_addr: / home / zabbix
 send "exit \ r"
 expect eof

The script then deploy the agent follows, we put the network configuration, call the installation files are part concentrated install-zabbix-agentd.sh inside. Direct calls can be disposable.

#! / Usr / bin / expect
 set ip_addr [lindex $ argv 0]
 set timeout 120
 spawn ssh $ ip_addr
 expect "* #"
 send "cd / home / zabbix / new_agent / zabbix_agent \ r"
 send "chmod + x install-zabbix-agentd.sh \ r"
 send "./install-zabbix-agentd.sh \ r"
 send "exit \ r"
 send "exit \ r"
 expect eof

According to this idea, it is possible to achieve a fundamental key to the installation zabbix agent. Before dinner, began to run scripts, and so came back after dinner, dozens of agent automatically installation is complete, the zabbix can be automatically identified.
     
         
         
         
  More:      
 
- DBCA Error: ORA-19809: limit exceeded for recovery files process (Database)
- Oracle creates split and splitstr functions (Database)
- Some of the bibliographic management tools to good use on linux (Linux)
- Linux environment password security settings (Linux)
- 20 Linux commands interview questions and answers (Linux)
- Give your photos Instagram style filters plus program in ubuntu (Linux)
- Python exception summary (Programming)
- Oracle utilized undo data recovery operations (Database)
- Preps - Print within the specified range of IP addresses (Linux)
- Fedora && Arch Linux - the most romantic thing to happen now (Linux)
- HDFS Hadoop Distributed File System Works (Server)
- Linux kernel compilation, the configuration of the motor drive (Programming)
- Vmstat command Linux Performance Monitoring (Linux)
- Using Python and OpenCV detecting image barcode (Programming)
- In the case of using cgroups Ubuntu 14.04 and Docker (Linux)
- Docker in the development and practice of IFTTT (Server)
- Android child thread really do not update UI (Programming)
- CentOS 6.5 x86_64 system customized automated deployment (Linux)
- Oracle and MySQL difference between the jdbc (Database)
- MySQL uses mysqld_multi to deploy stand-alone multi-instance detail procedures (Database)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.