Windows DHCP Server scopes discovery (SNMP) with Zabbix 3.0

portuguese version here

Hello!

With the latest Zabbix 3.0 version it’s easier to create LLD discovery rules.

Using SNMP with Zabbix features, it’s possible to collect interesting data from your Windows DHCP Server.

In the template described below, the data collected will show you how many IP addresses are available for use in each scope configured in your server.

Continue reading

Windows DHCP Server scopes discovery (SNMP) with Zabbix 3.0 – PT-BR

Olá!

Com a versão 3.0 do Zabbix ficou mais fácil montar regras baseadas em LLD.

Utilizando o SNMP em conjunto com os recursos oferecidos pelo Zabbix, é possível coletar informações interessantes do seu servidor DHCP Windows.

No template descrito abaixo, é realizada uma coleta que lhe informará quantos endereços IPs estão disponíveis em cada um dos escopos configurados no seu DHCP server.

Continue reading

Downgrade from PHP 5.4 to 5.3 – Debian Wheezy

– Add the following repositories: (replace the ‘br’ with your country mirror)

deb http://ftp.br.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.br.debian.org/debian/ squeeze main contrib non-free

– Now you need to specify that only the PHP modules will be ‘downgraded’, in order to do that edit the /etc/apt/preferences.d/preferences file, then add the following lines:
Continue reading

Routing audio jacks with HDAAnalyzer

Using HDA Analyzer from Alsa Project, you can route audio from one jack to another, this feature has multiple uses like multiple headphones, multiple inputs… In my case, I have two audio jacks on my laptop, the headphone’s one is not working, so I managed to use the mic input as headphone output using HDAAnalyzer.

The first step is to download it from Alsa Project:

wget -O run.py http://www.alsa-project.org/hda-analyzer.py

Continue reading

Setting speakers to mono in Linux (Debian/Ubuntu)

In terminal, run pacmd, then run “list-sinks” and copy the main sink name. The output will be something like:

list-sinks output

Now, run the following command:

>>> load-module module-remap-sink sink_name=mono master=alsa_output.pci-0000_00_14.2.analog-stereo channels=2 channel_map=mono,mono

This change will last until the next reboot. If you want this setting permanently add the line above to the bottom of /etc/pulse/default.pa