Skip to main content

Install Zabbix Agent on Suse Linux and Configure

Image result for suse linux
Install taken from Suse – http://software.opensuse.org/download/package?project=server:monitoring&package=zabbix-agent
For SLE 12 SP1 run the following as root:
zypper addrepo http://download.opensuse.org/repositories/server:monitoring/SLE_12_SP1/server:monitoring.repo
zypper refresh
zypper install zabbix-agent
For SLE 12 run the following as root:
zypper addrepo http://download.opensuse.org/repositories/server:monitoring/SLE_12/server:monitoring.repo
zypper refresh
zypper install zabbix-agent
For SLE 11 SP4 run the following as root:
zypper addrepo http://download.opensuse.org/repositories/server:monitoring/SLE_11_SP4/server:monitoring.repo
zypper refresh
zypper install zabbix-agent
For SLE 11 SP3 run the following as root:
zypper addrepo http://download.opensuse.org/repositories/server:monitoring/SLE_11_SP3/server:monitoring.repo
zypper refresh
zypper install zabbix-agent


To configure the agent – Instructions taken from – https://www.zabbix.org/wiki/Install_on_openSUSE_/_SLES#Linux
  • Edit /etc/zabbix/zabbix_agentd.conf and point the agent to the zabbix server by changing the Server and ServerActive settings.
  • Start the agent (rczabbix-agentd start)

 In case of without internet use below procedure.
--------------------------------------------------------------

step 1: Copy “zabbix_agent_suse11_sp3_64bit.tar” through winSCP in ‘/’ path.
Download Agent
# cd /
# tar –xzvf zabbix_agent_suse11_sp3_64bit.tar
# ls -l /etc/init.d/zabbix_agentd
# chkconfig zabbix_agentd
# groupadd zabbix
# useradd -g zabbix zabbix
# id zabbix
# vi /opt/zabbix/etc/zabbix_agentd.conf
Server=x.x.x.x                                           àGive Proxy Server IP Address
ServerActive=x.x.x.x                               àGive Proxy Server IP Address
Hostname=hostname_x.x.x.x               àGive Hostname which we need to at frontend as well.
:wq!
NOTE:- under “Server” & “ServerActive” we have to give zabbix proxy IP and remember whatever you give the host name , same hostname have to give in the front end in zabbix.

# /etc/init.d/zabbix_agentd restart
# ps -ef | grep zabbix
# chkconfig --list | grep zabbix
# chkconfig --level 3,5 zabbix_agentd on
# chkconfig --list | grep zabbix

Step 2:-  Now Restart the zabbix agent.
Ex:-
# /etc/init.d/zabbix-agent restart


NOW WE HAVE FINISHED ZABBIX AGENT INSTALLAION AT CLIENT SERVER.
Now we have to add in Zabbix front end.

Comments

  1. i try with a lot of solution......I finally found someone who writes things that work...thnak you!!!!!!

    ReplyDelete
  2. Thanks, really useful.

    Slight typo in # chkconfig --level 3,5 zabbix_agentd on it's of course a hypen not an underscore.

    Also could possibly add "and Hostname" near the end of this line "add Edit /etc/zabbix/zabbix_agentd.conf and point the agent to the zabbix server by changing the Server and ServerActive settings."

    Thanks

    ReplyDelete

Post a Comment

Popular posts from this blog

How to remove zabbix-agent from Ubuntu 16.04 (Xenial Xerus)

Uninstall zabbix-agent To remove just zabbix-agent package itself from Ubuntu 16.04 (Xenial Xerus) execute on terminal: sudo apt-get remove zabbix-agent Uninstall zabbix-agent and it's dependent packages To remove the zabbix-agent package and any other dependant package which are no longer needed from Ubuntu Xenial. sudo apt-get remove --auto-remove zabbix-agent Purging zabbix-agent If you also want to delete configuration and/or data files of zabbix-agent from Ubuntu Xenial then this will work: sudo apt-get purge zabbix-agent To delete configuration and/or data files of zabbix-agent and it's dependencies from Ubuntu Xenial then execute: sudo apt-get purge --auto-remove zabbix-agent

Zabbix alert Notification with Telegram

Zabbix Notifications with graphs in Telegram. Features  Graphs based on latest data are sent directly to your messenger  You can send messages both in private and group chats  Channels support  Saves chatid as a temporary file  Simple markdown and HTML are supported  Emoji in messages First of all : Nedd to install python (>3) on Cent os  # yum -y install python-pip # yum install -y https://centos7.iuscommunity.org/ius-release.rpm #  yum install -y python34u python34u-libs python34u-devel python34u-pi # yum -y install python-pip You need to install the  requests  module for python, this is required for operation! # pip install requests Put  zbxtg.py  in your  AlertScriptsPath  directory, the path is set inside your zabbix_server.conf (once confirm by zabbix server conf file ) Link to download ZBXTG.PY file  https://drive.google.com/open?i...