/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

This plugin can test all Fiberhome pon slot with 8 or 16 PONs if PON link status is UP or DOWN

The plugin check if in all PONs of a specific SLOT has customers, if a PON port have one or more customers and PON status is DOWN one alarm is generated.


Nagios check PON in OLT Fiberhome

Written by Jorge Luiz Taioque
This plugin check status of a PON Slot connected in a specific OLT
and return if these PON operational state is UP or DOWN

Dependences

apt install python3
apt install python3-pip
apt install libsnmp-dev snmp-mibs-downloader
apt install gcc python3-dev
pip3 install easysnmp

-----

Usage:

./check_pon_fiberhome [IP_OLT] [SLOT]
Like:
./check_pon_fiberhome 10.10.10.1 1
put only the slot_number after olt IP address

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

Configuring nagios

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