Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zabbix
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
infra
zabbix
Commits
21f337e0
Commit
21f337e0
authored
Oct 13, 2025
by
Joab Bremer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xen 8.4
parent
38194cc6
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
68 additions
and
2 deletions
+68
-2
.gitkeep
zabbix_v2/Xen/8.2.1/.gitkeep
+0
-0
README.md
zabbix_v2/Xen/8.2.1/README.md
+28
-0
pcre2-10.23-2.el7.x86_64.rpm
zabbix_v2/Xen/8.2.1/pcre2-10.23-2.el7.x86_64.rpm
+0
-0
zabbix_install_with_repo.sh
zabbix_v2/Xen/8.2.1/zabbix_install_with_repo.sh
+1
-1
.gitkeep
zabbix_v2/Xen/8.4/.gitkeep
+0
-0
README.md
zabbix_v2/Xen/8.4/README.md
+1
-1
openssl-compat-10-libs-1.0.2k-26.1.xs8.x86_64.rpm
...Xen/8.4/openssl-compat-10-libs-1.0.2k-26.1.xs8.x86_64.rpm
+0
-0
zabbix_install_with_repo.sh
zabbix_v2/Xen/8.4/zabbix_install_with_repo.sh
+38
-0
No files found.
zabbix_v2/Xen/.gitkeep
→
zabbix_v2/Xen/
8.2.1/
.gitkeep
View file @
21f337e0
File moved
zabbix_v2/Xen/8.2.1/README.md
0 → 100644
View file @
21f337e0
# zabbix XEN
### Instalação zabbix no XEN
> Acesse o host do xen pelo ssh e execute o seguinte comando Subistituindo as Variavel <IP_PROXY> e <SERVER_NAME>
```
curl -fsSL https://git.usb.org.br/infra/zabbix/raw/master/zabbix_v2/Xen/8.2.1/zabbix_install_with_repo.sh | bash -s -- <IP_PROXY> <SERVER_NAME>
```
> Adicione a liberação da porta 10050 antes das regras de bloqueio dentro do arquivo "/etc/sysconfig/iptables"
```
# Zabbix-Agent
-A RH-Firewall-1-INPUT -s 10.11.0.0/22 -m conntrack --ctstate NEW -m tcp -p tcp --dport 10050 -j ACCEPT
```
> Reinicie o iptables
```
systemctl restart iptables
```
> Adicione o host no zabbix onde o "Host name" é igual ao <SERVER_NAME> adicionado no script
> Nas interfaces adicione o IP do host do XEN
> Coloque o Devido proxy para fazer o monitoramento e clique adicionar
> Feito isso as configurações estão prontas, só aguardar o servidor sincronizar e carregar os dados.
\ No newline at end of file
zabbix_v2/Xen/pcre2-10.23-2.el7.x86_64.rpm
→
zabbix_v2/Xen/
8.2.1/
pcre2-10.23-2.el7.x86_64.rpm
View file @
21f337e0
File moved
zabbix_v2/Xen/zabbix_install_with_repo.sh
→
zabbix_v2/Xen/
8.2.1/
zabbix_install_with_repo.sh
View file @
21f337e0
...
...
@@ -10,7 +10,7 @@ NOVO_HOSTNAME=$2
CONFIG_FILE
=
"/etc/zabbix/zabbix_agent2.conf"
rpm
-Uvh
http://repo.zabbix.com/zabbix/7.0/rhel/7/x86_64/zabbix-release-latest.el7.noarch.rpm
rpm
-i
https://git.usb.org.br/infra/zabbix/raw/master/zabbix_v2/Xen/pcre2-10.23-2.el7.x86_64.rpm
rpm
-i
https://git.usb.org.br/infra/zabbix/raw/master/zabbix_v2/Xen/
8.2.1/
pcre2-10.23-2.el7.x86_64.rpm
sed
-i
's/enabled=1/enabled=0/g'
/etc/yum.repos.d/zabbix.repo
sed
-i
's/https/http/g'
/etc/yum.repos.d/zabbix.repo
...
...
zabbix_v2/Xen/8.4/.gitkeep
0 → 100644
View file @
21f337e0
zabbix_v2/Xen/README.md
→
zabbix_v2/Xen/
8.4/
README.md
View file @
21f337e0
...
...
@@ -5,7 +5,7 @@
> Acesse o host do xen pelo ssh e execute o seguinte comando Subistituindo as Variavel <IP_PROXY> e <SERVER_NAME>
```
curl -fsSL https://git.usb.org.br/infra/zabbix/raw/master/zabbix_v2/Xen/zabbix_install_with_repo.sh | bash -s -- <IP_PROXY> <SERVER_NAME>
curl -fsSL https://git.usb.org.br/infra/zabbix/raw/master/zabbix_v2/Xen/
8.4/
zabbix_install_with_repo.sh | bash -s -- <IP_PROXY> <SERVER_NAME>
```
> Adicione a liberação da porta 10050 antes das regras de bloqueio dentro do arquivo "/etc/sysconfig/iptables"
...
...
zabbix_v2/Xen/8.4/openssl-compat-10-libs-1.0.2k-26.1.xs8.x86_64.rpm
0 → 100644
View file @
21f337e0
File added
zabbix_v2/Xen/8.4/zabbix_install_with_repo.sh
0 → 100644
View file @
21f337e0
#!/bin/bash
if
[
"$#"
-ne
2
]
;
then
echo
"Uso:
$0
<Novo_IP> <Novo_Hostname>"
exit
1
fi
NOVO_IP
=
$1
NOVO_HOSTNAME
=
$2
CONFIG_FILE
=
"/etc/zabbix/zabbix_agent2.conf"
rpm
-Uvh
http://repo.zabbix.com/zabbix/7.0/rhel/7/x86_64/zabbix-release-latest.el7.noarch.rpm
sed
-i
's/enabled=1/enabled=0/g'
/etc/yum.repos.d/zabbix.repo
sed
-i
's/https/http/g'
/etc/yum.repos.d/zabbix.repo
sed
-i
's/obsoletes=1/obsoletes=0/g'
/etc/yum.conf
#yum -y -q erase xs-obsolete-packages-8-19.xs8.noarch
rpm
-i
https://git.usb.org.br/infra/zabbix/raw/master/zabbix_v2/Xen/8.4/openssl-compat-10-libs-1.0.2k-26.1.xs8.x86_64.rpm
echo
"instalando zabbix-agent2..."
yum
-y
-q
install
--enablerepo
=
zabbix zabbix-agent2 zabbix-agent2-plugin-
*
zabbix-get zabbix-sender
echo
"Configurando..."
sed
-i
"s/^Server=.*/Server=
$NOVO_IP
/"
"
$CONFIG_FILE
"
sed
-i
"s/^Hostname=.*/Hostname=
$NOVO_HOSTNAME
/"
"
$CONFIG_FILE
"
sed
-i
"s/^ServerActive=.*/#&/"
"
$CONFIG_FILE
"
echo
"Configurações atualizadas com sucesso no arquivo
$CONFIG_FILE
:"
echo
"Server=
$NOVO_IP
"
echo
"Hostname=
$NOVO_HOSTNAME
"
systemctl start zabbix-agent2
systemctl
enable
zabbix-agent2
sed
-i
's/obsoletes=0/obsoletes=1/g'
/etc/yum.conf
echo
"Instalação Concluida"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment