=============================
  Nagios monitoring support
=============================

To activate Nagios monitoring agents, execute next steps:

# yum install -y epel-release
# yum install -y nrpe perl-Nagios-Plugin nagios-plugins-perl nagios-plugins-all

Next examples are for videoNEXT internal DEMO-4.videonext.com STRATUS systemct
and nagios.videonext.net monitoring system.

Configure on DEMO-4:

# vi /etc/nagios/nrpe.cfg
allowed_hosts=127.0.0.1,207.207.163.2     # nagios.videonext.net

# vi /etc/nrpe.d/stratus-hm.cfg
command[check_stratus]=sudo -Hiu apl /opt/sarch/hm/bin/check_combined_status

# systemctl enable nrpe
# systemctl start nrpe

# visudo -f /etc/sudoers.d/stratus-hm
Defaults:nrpe !requiretty
#nrpe ALL=(apl) NOPASSWD:/opt/sarch/hm/bin/check_combined_status    TODO: need to make more secure!
nrpe ALL=(apl) NOPASSWD:ALL

===============================

check from nagios.videonext.net side:

# /usr/lib64/nagios/plugins/check_nrpe -H demo-4.videonext.com -c check_stratus
COMBINED_STATUS OK - Consolidated STRATUS status

INSTALL_RESULT OK - Install/update status is OK
PATROL OK - patrol is running
DB_STATUS OK - Database is running NORMALLY
OSGI_STATUS OK - OSGi Framework is running, bundles are in OK state
EVENTS_COUNT OK - Events total: 263828
EVENTS_INTEGRITY OK - Event Database has 'CONSISTENT' status
NODES_STATUS OK - All nodes run normally

