• Stars
    star
    292
  • Rank 139,206 (Top 3 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 11 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Zabbix template for collecting IO statistics

zabbix-disk-performance

Zabbix template for collecting IO statistics

With this template you can collect different disk statistics.

Bytes/Sec Merged Ops/Sec Overview

Installation

To install, copy userparameter_diskstats.conf to /etc/zabbix/zabbix_agentd.d/userparameter_diskstats.conf and lld-disks.py to /usr/local/bin/lld-disks.py. Do not forget to mark it executable.

# diskstats user parameters config
sudo mkdir -p /etc/zabbix/zabbix_agentd.d/
sudo wget https://raw.githubusercontent.com/grundic/zabbix-disk-performance/master/userparameter_diskstats.conf -O /etc/zabbix/zabbix_agentd.d/userparameter_diskstats.conf

# low level discovery script
sudo wget https://raw.githubusercontent.com/grundic/zabbix-disk-performance/master/lld-disks.py -O /usr/local/bin/lld-disks.py
sudo chmod +x /usr/local/bin/lld-disks.py

userparameter_diskstats.conf is user parameters for Zabbix. lld-disks.py is low level discovery script for enumerating disks of your system.

After that restart zabbix-agent sudo service zabbix-agent restart

Go to Zabbix's web interface, Configuration->Templates and import Template Disk Performance.xml. After that you should be able to monitor disk activity for all your disks.

Please note, that items and graphs are created for each disk/partition individually using discovery script, so do not expect to find them under usual configuration -- they would be in Discovery rules section:

Discovery Rules

Low level discovery will list your RAID devices, and LVM volumes, but LVM volumes will be mapped with their device-mapper ID, not the pretty names.

Using without User Parameters

Zabbix have standard parameters for monitoring disk io: vfs.dev.read and vfs.dev.write with several types:

  • sectors
  • operations
  • sps
  • ops

Template have this values configured, but disabled by default.

Testing

To test that everything work use zabbix_get (from some time this is in it's own package, so do apt-get/yum install zabbix-get):

# view result of low level discovery
zabbix_get -s 127.0.0.1 -k "custom.vfs.discover_disks"
# view statistics for 'sda' disk
zabbix_get -s 127.0.0.1 -k "custom.vfs.dev.write.sectors[sda]"

More Repositories

1

awesome-python-models

A curated list of awesome Python libraries, which implement models, schemas, serializers/deserializers, ODM's/ORM's, Active Records or similar patterns.
143
star
2

teamcity-web-parameters

Teamcity plugin that provides dynamic parameters for builds from web service
Java
44
star
3

jamulus-docker

Docker image for online jamming software Jamulus
Dockerfile
36
star
4

confluence-page-copier

Python script for creating recursive copy of Confluence pages.
Python
24
star
5

yagocd

Yet another GoCD python client
Python
17
star
6

teamcity-avatar

Plugin for displaying user avatars in Teamcity
Java
13
star
7

teamcity-web-ssh

Plugin for connecting to buildagents/TeamCity server directly from your browser
JavaScript
10
star
8

teamcity-agent-priority

Plugin for ordering Teamcity build agents.
Java
10
star
9

puppet-teamcity

Teamcity module for puppet
Puppet
9
star
10

teamcity-browser-notify

Teamcity browser notifications plugin.
Java
6
star
11

thePinger

Asynchronous host pinger written in python, using Tornado and jquery.
JavaScript
5
star
12

jira-issues-disposition

Plugin for atlassian Jira for ordering issues in Issue Navigator
Java
3
star
13

teamcity-postponed-schedule-trigger

Scheduled build trigger with possibility to postpone triggering if any builds are still in queue/running
Java
2
star
14

volvo-checklist

Список вещей, которые необходимо проверить при выдаче в салоне
1
star
15

bashrc

Bash configuration, completion and aliases
Shell
1
star
16

jira-copy-to-clipboard

Automatically exported from code.google.com/p/jira-copy-to-clipboard
JavaScript
1
star