Zabbix Monitoring Symantec Backup Exec Server 2010

How to monitoring Symantec Backup Exec Server 2010 with Zabbix

Hello, my name is Diego Luisi and in today’s article I will demonstrate how to monitor Symantec Backup Exec 2010 using Zabbix and auto-discovery.

Firstly download the attached files.

http://www.4shared.com/zip/PWFW6s2Jce/BackupExec2010_EN.html

Unzip the downloaded file contains two files inside an executable and the template.

Copy the executable to the folder where the agent is installed Backup Exec.

Znil BackupExec 2010

Edit the configuration file Zabbix agent (zabbix_agentd.conf) and insert the following line at the end of the file.

UserParameter znil.BackupExec2010 = [*] “C: \ Program Files \ Zabbix \ backupexec2010.exe” $ 1 “$ 2”

Save and exit, then restart the agent.

Add the mapping values ​​in Zabbix, go to administration, general mapping values ​​and add content as image below. 

Value Mapping

Upload the template on zabbix and associate the host to be monitored.

 

 Reference

http://znil.net/index.php/Zabbix

I translated the template for English and added some triggers and graphs.

How to count number of files with Zabbix

How to count number of files with Zabbix

Olá, meu nome é Diego Luisi e no artigo de hoje demonstrarei como contar a quantidade de arquivos em um diretório usando o Zabbix.

system.run[dir /a-d /s /b “d:\foldername\” | find /c “:”]

Se quisermos contar somente um tipo de arquivo podemos trocar “:”   ->    “*.xml” ou o tipo de arquivo desejado.

Criar um item no host que desejamos monitorar, conforme figura abaixo:

ItemComo podemos ver no “Last Data” a coleta dos valores:

Last Data

Simples né, espero que tenham gostado!

Batch Script Install Zabbix-Agent Windows

Olá, meu nome é Diego Luisi e no artigo de hoje vou demonstrar como criar um script em batch para instalação do agent zabbix em servidores Windows.

Quando temos uma rede grande com muitos hosts Windows e começamos a monitorar via zabbix pode ser demorado e trabalhoso o processo de instalação dos agents nos servidores, esse batch script tem a tarefa de facilitar a vida do administrador de redes.

Primeiramente vamos fazer o download do zabbix-agent para windows.

http://www.zabbix.com/download.php

Crie uma nova pasta chamada Zabbix,
Dentro da pasta zabbix crie 2 pastas Zabbix32 e Zabbix64

Acesse a pasta Zabbix32 e crie um novo arquivo de texto.
Install.txt
Abra e cole o seguinte conteúdo dentro do arquivo:

mkdir c:\zabbix
copy *.* c:\zabbix
echo Server=monitoramento.diegoluisi.eti.br >> c:\zabbix\zabbix_agentd.conf
echo ServerActive=monitoramento.diegoluisi.eti.br >> c:\zabbix\zabbix_agentd.conf
echo Hostname=%COMPUTERNAME% >> c:\zabbix\zabbix_agentd.conf
echo StartAgents=5 >> c:\zabbix\zabbix_agentd.conf
echo DebugLevel=3 >> c:\zabbix\zabbix_agentd.conf
echo LogFile=c:\zabbix\zabbix_agentd.log >> c:\zabbix\zabbix_agentd.conf
echo Timeout=3 >> c:\zabbix\zabbix_agentd.conf
C:\Zabbix\zabbix_agentd.exe -i -c C:\Zabbix\zabbix_agentd.conf
del c:\zabbix\instalador.bat
net stop "Zabbix Agent"
net start "Zabbix Agent"
@pause

Adeque de acordo com suas necessidades alterando Server e ServerActive e colocando o endereço do seu servidor.

Salve e saia, renomeie o arquivo para Install.bat deixe uma cópia dentro de Zabbix32 e Zabbix64

Pronto, agora é só copiar o instalar para o servidores e executar o Install de acordo com sua versão 32 ou 64.

Espero que seja útil e que tenham gostado.