Skip to content

Nagios/Icinga script to check switches from NETGEAR or Lancom

Notifications You must be signed in to change notification settings

PitWenkin/check_switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

Check Switch

Nagios/Icinga script to check switches from LANCOM, MIKROTIK, or NETGEAR

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

About

Nagios/Icinga script to check switches from NETGEAR or Lancom

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages