Git Product home page Git Product logo

vnx2graphite's Introduction

vnx2graphite

vnx tool for pushing server_stats to graphite

build and install

build your crosscompile environment http://dave.cheney.net/2012/09/08/an-introduction-to-cross-compilation-with-go

then do a

go-linux-386 build vnx2graphite.go

because the controlstations are 32-bit OS you have to do a 386 build.

after this just copy the conf, the binary and the shell script to

nasadmin@your-control-station:~/vnx2graphite/

configure

you have to configure four options in the vnx2graphite.conf:

host=<hostname or ipaddress of graphite>
port=<carbon port>
timeout=<timeout in seconds>
basename=<graphite namespace e.g. com.company.your.vnx>

run

if your config and binary are at $HOME/vnx2graphite/ you can use the vnx2graphite wrapper script. It expects that the nasdb is mounted at /nas. Otherwise take it as an example and write your own script.

run the wrapper

$HOME/vnx2graphite/vnx2graphite.sh <stats e.g. nfs> <server name e.g. server_2>

periodicly run the wrapper

Use cron to ensure the script will run every minute. If you need it faster just do a loop with sleep but be aware of timeouts. The default timeout for vnx2graphite is 10 seconds.

example /etc/cron.d/vnx2graphite

* * * * *      nasadmin     /home/nasadmin/vnx2graphite/vnx2graphite.sh nfs server_2
* * * * *      nasadmin     /home/nasadmin/vnx2graphite/vnx2graphite.sh fs server_2
* * * * *      nasadmin     /home/nasadmin/vnx2graphite/vnx2graphite.sh kernel server_2
* * * * *      nasadmin     /home/nasadmin/vnx2graphite/vnx2graphite.sh mpfs server_2
* * * * *      nasadmin     /home/nasadmin/vnx2graphite/vnx2graphite.sh store server_2
* * * * *      nasadmin     /home/nasadmin/vnx2graphite/vnx2graphite.sh rep server_2
* * * * *      nasadmin     /home/nasadmin/vnx2graphite/vnx2graphite.sh rpc server_2
* * * * *      nasadmin     /home/nasadmin/vnx2graphite/vnx2graphite.sh snap server_2

environment

I tested this script with the 5300 model and the 5500 model

vnx2graphite's People

Stargazers

 avatar Tom avatar  avatar Vitalii Mikhnevych avatar Michael Rosile avatar Jan Ulferts avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

osowskig koumdros

vnx2graphite's Issues

invalid lines in carbon-cache listener.log

Hello,
I deployed the scripts on our VNX5600, but 100s of invalid lines are logged in carbon-cache listener.log. I run the 8 command types separately and below I copy paste some example invalid lines per case:

  • Running /home/nasadmin/bin/vnx2graphite.sh nfs server_2:
    10/09/2015 11:48:45 :: invalid line () received from client 99.99.99.99:57190, ignoring
    10/09/2015 11:48:45 :: invalid line (com.company.vnx5600.server_2.nfs.NFS_Op_v4DestroyClid_NFS_Op_% 1441874925) received from client 99.99.99.99:57190, ignoring
    10/09/2015 11:48:45 :: invalid line (com.company.vnx5600.server_2.nfs.NFS_Op_v4Sequence_NFS_Op_uSec_Call 1441874925) received from client 99.99.99.99:57190, ignoring
    10/09/2015 11:48:45 :: invalid line (com.company.vnx5600.server_2.nfs.NFS_VAAI_op_vaaiRegister_VAAI_Op_Average_uSec_Op 1441874925) received from client 99.99.99.99:57190
    , ignoring
    10/09/2015 11:48:45 :: invalid line (com.company.vnx5600.server_2.nfs.NFS_Op_VAAI_NFS_Op_uSec_Call 1441874925) received from client 99.99.99.99:57190, ignoring
  • Running /home/nasadmin/bin/vnx2graphite.sh fs server_2:
    10/09/2015 11:50:06 :: invalid line () received from client 99.99.99.99:57307, ignoring
  • Running /home/nasadmin/bin/vnx2graphite.sh kernel server_2:
    10/09/2015 11:52:58 :: invalid line () received from client 99.99.99.99:57427, ignoring
    10/09/2015 11:52:58 :: invalid line (com.company.vnx5600.server_2.kernel.hhmmss 13:04:22 1441875178) received from client 99.99.99.99:57427, ignoring
  • Running /home/nasadmin/bin/vnx2graphite.sh mpfs server_2:
    10/09/2015 11:53:40 :: invalid line () received from client 99.99.99.99:57443, ignoring
    10/09/2015 11:53:40 :: invalid line (com.company.vnx5600.server_2.mpfs. 1441875220) received from client 99.99.99.99:57443, ignoring
    10/09/2015 11:53:40 :: invalid line (com.company.vnx5600.server_2.mpfs.MPFS_Server_Operation_Notify_MPFS_Op_Average_uSec_Op 1441875220) received from client 99.99.99.99:57443, ignoring
  • Running /home/nasadmin/bin/vnx2graphite.sh store server_2:
    10/09/2015 11:54:23 :: invalid line () received from client 99.99.99.99:57470, ignoring
    10/09/2015 11:54:23 :: invalid line (com.company.vnx5600.server_2.store.dVol_NBS2_Avg_Read_Size_Bytes 1441875263) received from client 99.99.99.99:57470, ignoring
  • Running /home/nasadmin/bin/vnx2graphite.sh rep server_2:
    (no invalid lines here)
  • Running /home/nasadmin/bin/vnx2graphite.sh rpc server_2:
    10/09/2015 11:55:59 :: invalid line () received from client 99.99.99.99:57797, ignoring
  • Running /home/nasadmin/bin/vnx2graphite.sh snap server_2:
    10/09/2015 11:57:06 :: invalid line () received from client 99.99.99.99:57828, ignoring

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.