sonic-buildimage/device/mellanox/x86_64-mlnx_msn2700-r0
Junchao-Mellanox 1c97a03b81
[system-health] Add support for monitoring system health (#4835)
* system health first commit

* system health daemon first commit

* Finish healthd

* Changes due to lower layer logic change

* Get ASIC temperature from TEMPERATURE_INFO table

* Add system health make rule and service files

* fix bugs found during manual test

* Change make file to install system-health library to host

* Set system LED to blink on bootup time

* Caught exceptions in system health checker to make it more robust

* fix issue that fan/psu presence will always be true

* fix issue for external checker

* move system-health service to right after rc-local service

* Set system-health service start after database service

* Get system up time via /proc/uptime

* Provide more information in stat for CLI to use

* fix typo

* Set default category to External for external checker

* If external checker reported OK, save it to stat too

* Trim string for external checker output

* fix issue: PSU voltage check always return OK

* Add unit test cases for system health library

* Fix LGTM warnings

* fix demo comments: 1. get boot up timeout from monit configuration file; 2. set system led in library instead of daemon

* Remove boot_timeout configuration because it will get from monit config file

* Fix argument miss

* fix unit test failure

* fix issue: summary status is not correct

* Fix format issues found in code review

* rename th to threshold to make it clearer

* Fix review comment: 1. add a .dep file for system health; 2. deprecated daemon_base and uses sonic-py-common instead

* Fix unit test failure

* Fix LGTM alert

* Fix LGTM alert

* Fix review comments

* Fix review comment

* 1. Add relevant comments for system health; 2. rename external_checker to user_define_checker

* Ignore check for unknown service type

* Fix unit test issue

* Rename user define checker to user defined checker

* Rename user_define_checkers to user_defined_checkers for configuration file

* Renmae file user_define_checker.py -> user_defined_checker.py

* Fix typo

* Adjust import order for config.py

Co-authored-by: Joe LeVeque <jleveque@users.noreply.github.com>

* Adjust import order for src/system-health/health_checker/hardware_checker.py

Co-authored-by: Joe LeVeque <jleveque@users.noreply.github.com>

* Adjust import order for src/system-health/scripts/healthd

Co-authored-by: Joe LeVeque <jleveque@users.noreply.github.com>

* Adjust import orders in src/system-health/tests/test_system_health.py

* Fix typo

* Add new line after import

* If system health configuration file not exist, healthd should exit

* Fix indent and enable pytest coverage

* Fix typo

* Fix typo

* Remove global logger and use log functions inherited from super class

* Change info level logger to notice level

Co-authored-by: Joe LeVeque <jleveque@users.noreply.github.com>
2020-10-12 11:12:49 +03:00
..
ACS-MSN2700 [Mellanox] Update the buffer setting (#4989) 2020-07-30 14:22:08 +03:00
Mellanox-SN2700 Support single ingress pool for MSFT SKUs and optimize headroom calculation (#4686) 2020-08-13 13:12:09 +03:00
Mellanox-SN2700-C28D8 Support single ingress pool for MSFT SKUs and optimize headroom calculation (#4686) 2020-08-13 13:12:09 +03:00
Mellanox-SN2700-D48C8 Support single ingress pool for MSFT SKUs and optimize headroom calculation (#4686) 2020-08-13 13:12:09 +03:00
plugins [Mellanox] Refactor SFP related platform API and plugins with new SDK API (#5326) 2020-09-11 13:23:23 -07:00
default_sku [updategraph] add support to use preset config instead of default minigraph (#2050) 2018-09-21 22:01:10 -07:00
installer.conf [installer]: Move platform-specific files under new device/ tree (#450) 2017-03-29 04:17:49 -07:00
platform_components.json [Mellanox] Update platform components config files. (#5360) 2020-09-13 10:23:22 +03:00
platform_reboot [Mellanox] platform_reboot - sync & umount fs before power cycle (#3430) 2019-09-17 09:38:30 -07:00
platform_wait [mellanox]: Enhance pmon synchronization with hw-mgmt platform counters. (#3885) 2019-12-17 10:58:55 -08:00
platform.json [MSN2700] Add platform.json file containing platform hardware facts (#5189) 2020-09-22 17:12:51 -07:00
pmon_daemon_control.json [PMON] Extend pmon daemon start control to lm-sensors and fancontrol (#4447) 2020-04-21 08:00:48 -07:00
sensors.conf [mellanox]: Upgraded hw-management V.2.0.0160. (#2643) 2019-03-06 18:51:46 -08:00
system_health_monitoring_config.json [system-health] Add support for monitoring system health (#4835) 2020-10-12 11:12:49 +03:00
thermal_policy.json [Mellanox] Never disable kernel thermal algorithm at real-time (#4638) 2020-05-26 10:46:29 -07:00