/check_pon_fiberhome

A Nagios plugin to check in OLT Fiberhome if ONUs status is UP

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

Nagios check PON status in OLT Fiberhome

SNMP VERSION

Nagios check PON in OLT Fiberhome
Written by Jorge Luiz Taioque
This plugin check status of all ONUs connected in a specific PON
and return if these ONUs operational state is UP or DOWN
-----
Usage:
./check_pon_fiberhome [IP_OLT] [PON_SLOT/PON_PORT]
Like:
./check_pon_fiberhome 10.10.10.1 1/8
put only the slot_number and pon_number before and after slash /

In nagios service.cfg use:
check_command: check_pon_fiberhome!10.10.10.1!1/8

Configuring nagios

In nagios command.cfg use:
define command{
command_name check_pon_fiberhome
command_line $USER1$/check_pon_fiberhome $ARG1$ $ARG2$
}

TL1 VERSION

Written by Jorge Luiz Taioque
This plugin check status of all ONUs connected in a specific PON
and return if these ONUs operational state is UP


How plugin the compare nagios status?
If the most part of ONUs is UP all it's OK
If all ONUs is DOWN the PON port is DOWN
and if the most part of ONUs is DOWN the PON port is WARNING


Usage:
./check_pon_fiberhome [IP_TL1] [IP_OLT] [PON_SLOT-PON_PORT]
Like:
./check_pon_fiberhome 10.10.10.1 10.10.10.2 1-1
put only the slot_number and pon_number

In nagios service.cfg use:
check_command: check_pon_fiberhome!10.10.10.1!10.10.10.2!1-1

Configuring nagios

In nagios command.cfg use:
define command{
command_name check_pon_fiberhome
command_line $USER1$/check_pon_fiberhome $ARG1$ $ARG2$ $ARG3$
}