Skip to content

RDKEMW-18837: [8.4] Integrate monit utility#874

Open
yuvaramachandran-gurusamy wants to merge 13 commits into
support/8.4.4.0from
topic/RDKEMW-18837_8p4_Test
Open

RDKEMW-18837: [8.4] Integrate monit utility#874
yuvaramachandran-gurusamy wants to merge 13 commits into
support/8.4.4.0from
topic/RDKEMW-18837_8p4_Test

Conversation

@yuvaramachandran-gurusamy
Copy link
Copy Markdown

RDKEMW-18837: [8.4] Integrate monit utility

Signed-off-by: Yuvaramachandran Gurusamy yuvaramachandran_gurusamy@comcast.com

Signed-off-by: Yuvaramachandran Gurusamy <yuvaramachandran_gurusamy@comcast.com>
Copilot AI review requested due to automatic review settings May 19, 2026 17:12
@yuvaramachandran-gurusamy yuvaramachandran-gurusamy requested review from a team as code owners May 19, 2026 17:12
@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 3 files pending identification.

  • Protex Server Path: /home/blackduck/github/meta-rdk/874/rdk/components/generic/rdk-oe/meta-rdk

  • Commit: 3133b91

Report detail: gist'

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new Yocto/OpenEmbedded recipe to build and integrate the Monit monitoring utility into the RDK 8.4 layer, including default configuration and init integration (systemd + SysV).

Changes:

  • Adds a monit_5.35.2.bb recipe that fetches/builds Monit and installs config + service/init integration.
  • Introduces a default /etc/monitrc configuration file.
  • Adds a SysV init script for starting/stopping Monit.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
recipes-support/monit/monit/monitrc Adds default Monit configuration, including daemon interval and HTTP interface settings.
recipes-support/monit/monit/monit Adds SysV init script for Monit service management.
recipes-support/monit/monit_5.35.2.bb Adds the Monit recipe and installs config, systemd unit, and init script.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread recipes-support/monit/monit/monitrc Outdated
Comment on lines +35 to +40
set httpd port 2812
allow 0.0.0.0/0 # allow localhost to connect to the server and
allow admin:monit # require user 'admin' with password 'monit'
#with ssl { # enable SSL/TLS and set path to server certificate
# pemfile: /etc/ssl/certs/monit.pem
#}
Comment thread recipes-support/monit/monit/monit Outdated
Comment on lines +7 to +9
monit=/usr/bin/monit
pidfile=/var/run/monit.pid
monit_args="-c /etc/monitrc"
Comment thread recipes-support/monit/monit_5.35.2.bb Outdated

# SystemD
install -Dm 0644 ${S}/system/startup/monit.service.in ${D}${systemd_system_unitdir}/monit.service
sed -i -e 's,@prefix@,${exec_prefix},g' ${D}${systemd_unitdir}/system/monit.service
Comment thread recipes-support/monit/monit/monitrc Outdated
@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/meta-rdk/874/rdk/components/generic/rdk-oe/meta-rdk

  • Commit: 143487b

Report detail: gist'

Copilot AI review requested due to automatic review settings May 19, 2026 19:21
@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/meta-rdk/874/rdk/components/generic/rdk-oe/meta-rdk

  • Commit: f948fb0

Report detail: gist'

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated 5 comments.

Comment thread recipes-support/monit/monit/monitrc Outdated
##
## Start Monit in the background (run as a daemon):
#
set daemon 1 # check services at 30 seconds intervals
Comment thread recipes-support/monit/monit/monit.service Outdated
Comment on lines +13 to +16

# Ensure monitrc from meta-rdk is installed.
install -Dm 0600 ${UNPACKDIR}/monitrc ${D}${sysconfdir}/monitrc

Comment thread recipes-support/monit/monit/monit Outdated
Comment on lines +1 to +5
#! /bin/sh
#
# This is an init script for openembedded
# Copy it to /etc/init.d/monit and type
# > update-rc.d monit defaults 89
Comment thread recipes-support/monit/monit/monit.service
Copilot AI review requested due to automatic review settings May 20, 2026 01:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 4 comments.

Comment thread recipes-support/monit/monit/monitrc Outdated
###############################################################################
##
## Comments begin with a '#' and extend through the end of the line. Keywords
## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'.
# This file is systemd template for monit service. To
# register monit with systemd, place the monit.service file
# to the /lib/systemd/system/ directory and then start it
# using systemctl (see bellow).
Comment thread recipes-support/monit/monit/monitrc
Comment on lines +11 to +15
install -Dm 0644 ${UNPACKDIR}/monit.service ${D}${systemd_system_unitdir}/monit.service
install -Dm 0644 ${UNPACKDIR}/monit.path ${D}${systemd_system_unitdir}/monit.path

# Ensure monitrc from meta-rdk is installed.
install -Dm 0600 ${UNPACKDIR}/monitrc ${D}${sysconfdir}/monitrc
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 20, 2026 05:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 5 comments.

SRC_URI:append = " file://monit.service file://monit.path"

# Enable only the path unit so monit starts when the trigger file appears.
SYSTEMD_SERVICE:${PN} = "monit.path"
Comment on lines +13 to +16

# Ensure monitrc from meta-rdk is installed.
install -Dm 0600 ${UNPACKDIR}/monitrc ${D}${sysconfdir}/monitrc

Comment thread recipes-support/monit/monit/monitrc
Comment thread recipes-support/monit/monit/monitrc
Comment thread recipes-support/monit/monit/monit.service Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 20, 2026 07:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 4 comments.

Comment thread recipes-support/monit/monit/monit.path
Comment thread recipes-support/monit/monit/monitrc
Comment thread recipes-support/monit/monit/monit.service
Comment thread recipes-support/monit/monit/monit.service Outdated
Copilot AI review requested due to automatic review settings May 20, 2026 08:07
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Comment thread recipes-support/monit/monit/monitrc
Comment thread recipes-support/monit/monit/monitrc Outdated
# systemctl status monit.service

[Unit]
Description=Pro-active monitoring utility for Unix systems
Copilot AI review requested due to automatic review settings May 20, 2026 08:12
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Comment on lines +3 to +17
SRC_URI:append = " file://monit.service file://monit.path"

# Enable only the path unit so monit starts when the trigger file appears.
SYSTEMD_SERVICE:${PN} = "monit.path"

do_install:append() {
# Replace the service and rc installed by the base recipe with the layer-local one.
rm -f ${D}${systemd_system_unitdir}/monit.service
rm -f ${D}${sysconfdir}/monitrc

install -Dm 0644 ${UNPACKDIR}/monit.service ${D}${systemd_system_unitdir}/monit.service
install -Dm 0644 ${UNPACKDIR}/monit.path ${D}${systemd_system_unitdir}/monit.path

# Ensure monitrc from meta-rdk is installed.
install -Dm 0600 ${UNPACKDIR}/monitrc ${D}${sysconfdir}/monitrc
}

FILES:${PN} += " \
${systemd_system_unitdir}/monit.path \
Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants