Skip to content

[action] [PR:19759] Use monit validate to get live data#19853

Merged
mssonicbld merged 1 commit intosonic-net:202505from
mssonicbld:cherry/202505/19759
Jul 30, 2025
Merged

[action] [PR:19759] Use monit validate to get live data#19853
mssonicbld merged 1 commit intosonic-net:202505from
mssonicbld:cherry/202505/19759

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

Description of PR

Summary:
'monit status' provides a stale 60 secs old data, this is not ideal in certain scenarios.
We should use the live data , 'monit validate' provides the live data.

Fixes # (issue)
https://github.com/aristanetworks/sonic-qual.msft/issues/718

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
  • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

disk/test_disk_exhaustion.py creates a 1.7G file in the test and deletes it at the end of the test.
But "monit status" is configured to check only once every 60 secs in /etc/monit/monitrc.
This provides a stale data resulting in memory high threshold getting breached.

How did you do it?

We should use "monit validate" instead of "monit status"

How did you verify/test it?

verified by running the test

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

What is the motivation for this PR?
disk/test_disk_exhaustion.py creates a 1.7G file in the test and deletes it at the end of the test.
But "monit status" is configured to check only once every 60 secs in /etc/monit/monitrc.
This provides a stale data resulting in memory high threshold getting breached.

How did you do it?
We should use "monit validate" instead of "monit status"

How did you verify/test it?
verified by running the test
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #19759

@yejianquan
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit 9d83f65 into sonic-net:202505 Jul 30, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants