Code Monkey home page Code Monkey logo

zabbix-gluster's Introduction

Zabbix template for monitoring Gluster nodes.

Tested with Gluster 3.5.2

Monitored items

  • Number of offline bricks
  • Gluster NFS server
  • Selfheal daemon
  • Number of offline peers
  • Glusterd TCP port
  • Total number of unhealed entries
  • Number of split-brain entries

Installation

(Assumes Centos 6, on other distros may vary)

  • Copy etc contents to /etc
  • Copy opt contents to /opt
  • Import template_app_gluster.xml into Zabbix
  • Assign the template to the relevant hosts

zabbix-gluster's People

Contributors

blka avatar burner1024 avatar tnajanssen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

zabbix-gluster's Issues

getting -1 as value

I getting -1 as value back from some servers for the offline bricks and the self heal status.

Looking to the collection script:

if item=$(timeout -s 9 1 sudo gluster volume status 2>/dev/null | grep rick1 | awk '{print $4}'); then echo "$item" | grep -c N; else echo '-1'; fi

-1 will be displayed after a timeout - right?

Have running the command line above parallel in a loop on the same machine. The output of the loop was within one hour everytime 0, but the agent sends over 6 times within this hour a -1

Any ideas?

Have now set the timeout from 1 to 2 seconds: ... timeout -s 9 2 sudo ...

/opt/zabbix/gluster/heal.sh returning empty value

1st Issue
[root@cluster-stor1 gluster]# sh heal.sh ' ' 0
=> no value returned, so Trigger detects a pending healing but there isn't:

[root@cluster-stor1 gluster]# gluster volume heal volume1 info
Brick 192.168.110.221:/bricks/raid5array1/brick1
Status: Connected
Number of entries: 0

Brick 192.168.110.222:/bricks/raid5array1/brick1
Status: Connected
Number of entries: 0

Brick 192.168.110.223:/bricks/raid5array1/brick1
Status: Connected
Number of entries: 0


2nd Issue
[root@cluster-stor1 gluster]# sh heal.sh split-brain 0
=> no value returned, so Trigger detects split brain


Sysinfo:
[root@cluster-stor1 gluster]# gluster volume list
volume1

[root@cluster-stor1 gluster]# uname -a
Linux cluster-stor1.cbr1.de 2.6.32-504.1.3.el6.x86_64 #1 SMP Tue Nov 11 17:57:25 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

CentOS release 6.6 (Final)

[root@cluster-stor1 gluster]# glusterd -V
glusterfs 3.12.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.