Skip to content

Instantly share code, notes, and snippets.

@MrLunar
MrLunar / Zabbix-Agent-Install.md
Last active March 22, 2017 12:04
Zabbix agent installation

Zabbix Agent Installation

Windows

  1. Create host in Zabbix server.
  2. PS: mkdir c:\zabbix-agent; mkdir c:\zabbix-agent\logs
  3. Download the Windows agent: 3.2.0 | 3.0.4 | Other versions - Extract to c:\zabbix-agent
  4. PS: notepad c:\zabbix-agent\conf\zabbix_agentd.win.conf
@MrLunar
MrLunar / VStats_Listener.php
Created June 22, 2013 12:36
Listens for UDP packets on the local port 14092, buffers them up, then POSTs the data to a remote server. This is a basic example receiver implementation for https://github.com/MrLunar/VStats.
<?php
class VStats_Listener
{
protected $receiver_location = '---YOUR REMOTE SERVER---';
protected $receiver_send_after = 5; // seconds
protected $receiver_time_last_send = 0; // timestamp
protected $socket;
protected $socket_location = '127.0.0.1';