Zabbix scripts for our monitoring
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cron.d
debian
scripts
sudoers.d
templates
zabbix_agentd.d
.gitignore
Makefile
README.rst

README.rst

zabbix-agent-osso - Zabbix Agent scripts

Common zabbix UserParameters and the necessary support scripts.

This package attempts to address our common zabbix configuration needs.

Installation

  • Install this onto the machine. Fetch a pre-built debian package from somewhere or build one yourself:

    dpkg-buildpackage -us -uc -sa
    
  • Fix the zabbix_agentd.conf to include zabbix_agentd.d/*.conf (possibly without *.conf for older zabbix agents; and not the zabbix_agentd.conf.d old-style directory).

  • Add this local config as local.conf:

    Hostname=walter-dev.EXAMPLE.COM
    Server=zabbix.EXAMPLE.COM, zabbix-proxy1.EXAMPLE.COM, zabbix-proxy2.EXAMPLE.COM
    ServerActive=zabbix-proxy1.EXAMPLE.COM
    #DebugLevel=4
    
  • On your Zabbix server you'll want to import the provided Zabbix Templates.

Sources

path description
zabbix_agentd.d/ The zabbix UserParameters as expected to be included through zabbix_agentd.conf.
scripts/

The scripts directory mainly consists of scripts that should be run periodically by the root user.

Most are not invoked by the zabbix UserParameter directly because they either take too much time to run or because they require more permissions.

cron.d/ Cron jobs for slow tasks.
sudoers.d/ Sudoers files for zabbix scripts that require more permissions.

TODO

  • Add asterisk monitoring?
  • Remark how we shouldn't use 0.1~rcX for versioning, because we also append ~deb8 to it, and the final release would come before the rc-release. Use ~aX instead.
  • Add RANDOM-sleep to periodic cron jobs? Use SHELL=/bin/bash and RANDOM?
  • dpkg? dpkg -l|grep ^rc|wc -l and linux-kernel-autoremove|wc -l