zgmarx / zabbix-lld-sender

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zabbix-lld-sender

Scripts Description

Name Description OS
net.device.stats.py Exposes network interface info from /sys/class/net/ Linux
my.vfs.iostat.py Exposes mountpoint(disk) I/O statistics. Darwin, Linux
app.url.status.py Check url availability by response code. Darwin, Linux
zabbixdiscovery.py Zabbix low level discovery tool Linux
zabbixsender.py Push hundreds or thousands of item value by one push Linux

Usage

zabbixsender, zabbixdiscovery, my.vfs.iostat.py

git clone https://github.com/zgmarx/zabbix-lld-sender

cd zabbix-lld-sender

git clone https://github.com/bsc-s2/pykit

put `my.cron` in the crontab and run it every minute. OR run: iostat -xm 10 2 > /tmp/zbx-iostat-data

python my.vfs.iostat.py

this command will ends with error because we havn't create zabbix LLD on zabbix-server.

`cat /dev/shm/zabbix/my.vfs.iostat`, we'll get something like this:

- my.vfs.iostat[/,%util] 0.23
- my.vfs.iostat[/,avgqu-sz] 0.00
- my.vfs.iostat[/,avgrq-sz] 13.07
- my.vfs.iostat[/,await] 0.05
- my.vfs.iostat[/,r/s] 0.00
- my.vfs.iostat[/,rMB/s] 0.00
- my.vfs.iostat[/,r_await] 0.00
- my.vfs.iostat[/,rrqm/s] 0.00
- my.vfs.iostat[/,svctm] 0.05
- my.vfs.iostat[/,w/s] 48.00
- my.vfs.iostat[/,wMB/s] 0.31
- my.vfs.iostat[/,w_await] 0.05
- my.vfs.iostat[/,wrqm/s] 0.50

app.url.status.py

python app.url.status.py 'https://www.google.com' GET 200

About

License:Apache License 2.0


Languages

Language:Python 99.1%Language:Shell 0.9%