Giter Club home page Giter Club logo

check_switch's Introduction

Check Switch

Nagios/Icinga script to check switches from NETGEAR or LANCOM

Used to check switches from

Usage:

./check_switch -h [hostname] -c [community] -s [status]

Options:

  -h [snmp hostname]	Hostname
  -c [community name]	community name (ex: public)
  -p [snmp port]	port for snmp request (default: 161)
  -P [port]		port(s) to check, seperated by ","
  -n [number of ports]	number of physical ports on device
  -o [options]		additional options
    d				only ports that are down (or anything except up)
    u				only ports that are up
  -s [check]		Check to be executed
    info			System infos
    port			Check status specific port ('P' option)
    ports			Listing of ports ('n' option defines number of port to check)
    uptime			System uptime
  -t [timeout]		duration before doing an timeout in seconds - default 10s

Examples:

  ./check_switch -h 1.2.3.4 -c public -s info
  ./check_switch -h 1.2.3.4 -p 4321 -c public -s uptime -t 30
  ./check_switch -h 1.2.3.4 -c public -s ports -n 28
  ./check_switch -h 1.2.3.4 -c public -s port -P 1
  ./check_switch -h 1.2.3.4 -c public -s port -P 1,25 #Check port 1 and 25

check_switch's People

Contributors

pitwenkin avatar

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.