Skip to content

Instantly share code, notes, and snippets.

View hafthanhf's full-sized avatar

hafthanhf hafthanhf

  • hanoi,vietnam
View GitHub Profile
@hafthanhf
hafthanhf / check_port
Last active August 29, 2015 14:15
check_port_switch
#!/bin/bash
OK=0
CRITICAL=2
STATE=0
PLUGIN_PATH="/usr/local/nagios/libexec/"
OID_sysDescr=SNMPv2-MIB::sysDescr.0
OID_hostname=SNMPv2-MIB::sysName.0
COMMUNITY=bimat
VERSION="1.1"
author="hafthanhf"