f5151879 | 25-Oct-2021 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Add OWNERS file
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: I75d4b5bf44212574e31ddbb0f5a2dcf08208f6b7 |
036f1617 | 22-Jul-2021 |
Sui Chen <suichen@google.com> |
Fix association creation
This change contains two fixes:
1) phosphor-health-monitor will now not exit with an xyz.openbmc_project.Common.Error.ResourceNotFound error even when the inventory it's lo
Fix association creation
This change contains two fixes:
1) phosphor-health-monitor will now not exit with an xyz.openbmc_project.Common.Error.ResourceNotFound error even when the inventory it's looking for (/xyz/openbmc_project/inventory/system) is not found. The sensor objects will still be created; they will just not have associations with the system.
2) phosphor-health-monitor now listens for the "BMC inventory activated" InventoryAdded singal. Upon detecting this signal, it will recreate the health sensors with associations.
Tested by stopping and restarting xyz.openbmc_project.Inventory.Manager.service, saw the health sensors disappear and re-appear from the curl command against the https://${bmc}/redfish/v1/Chassis/bmc/Sensors RedFish resource.
Signed-off-by: Sui Chen <suichen@google.com> Change-Id: I37abe0b680038f8989181ac816ac67bfa3ee60bf
show more ...
|
957e03c0 | 02-Sep-2021 |
Patrick Williams <patrick@stwcx.xyz> |
logging: switch to lg2
Switch all phosphor-logging calls to use lg2 APIs.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ie118039fec235dffa7ff77f3184f57dc155558f4 |
d9c1cf17 | 02-Sep-2021 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: sync latest from docs
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Id448b2b415a3776014a43244a1b00872866e1d3d |
de40a6e8 | 02-Sep-2021 |
Patrick Williams <patrick@stwcx.xyz> |
MAINTAINERS: update for Vijay
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ibf661d7efe29b7c1af2e35f1670bc97ae0ee7dbb |
19527c78 | 02-Sep-2021 |
Patrick Williams <patrick@stwcx.xyz> |
meson: add subprojects to build
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ia7a24e92715cca5ee890d67d7b645feada4ec68b |
5669015b | 02-Sep-2021 |
Patrick Williams <patrick@stwcx.xyz> |
build: switch to C++20
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Id6ea32858d77e132c8c9ef254a5193f0633cfa39 |
670cc130 | 13-Apr-2021 |
Sui Chen <suichen6@gmail.com> |
Associate BMC health sensors with chassis
This change adds association between the sensors and the bmc, such that the BMC health sensors are ready to be picked up by bmcweb.
Tested: Added a BMC in
Associate BMC health sensors with chassis
This change adds association between the sensors and the bmc, such that the BMC health sensors are ready to be picked up by bmcweb.
Tested: Added a BMC in phosphor-inventory, made a few temporary changes to bmcweb so it treats BMCs as a chassis and populates /redfish/v1/Chassis/bmc/Sensor entries, set up webui-vue, saw the sensor readings in browser.
Change-Id: I1b5b9e9c97b37ecdef916712cb9f345858eb1ada Signed-off-by: Sui Chen <suichen6@gmail.com>
show more ...
|
2b231e8a | 22-Nov-2020 |
Bruceleequantatw <Bruce_Lee@quantatw.com> |
Avoid "Error from statvfs2" showing reaptedly.
Add check Storage or Inode path whether exist in the system. Fixes openbmc/phosphor-health-monitor#1.
Signed-off-by: Bruce Lee <Bruce_Lee@quantatw.com
Avoid "Error from statvfs2" showing reaptedly.
Add check Storage or Inode path whether exist in the system. Fixes openbmc/phosphor-health-monitor#1.
Signed-off-by: Bruce Lee <Bruce_Lee@quantatw.com> Change-Id: Iff298615c59324c1d9907261d124b69a7b94e233
show more ...
|
af9acbde | 12-Oct-2020 |
Bruceleequantatw <Bruce_Lee@quantatw.com> |
Add storage utilization functions
1. Add "path" in HealthConfig for storage and inode functions. 2. Add storage and inode functions to calculate each utilization by "path" (filesystem path).
Tes
Add storage utilization functions
1. Add "path" in HealthConfig for storage and inode functions. 2. Add storage and inode functions to calculate each utilization by "path" (filesystem path).
Tested: verified the storage object path will auto generate when bmc_health_config.json setting correct and collect the storage utilization.
Signed-off-by: Bruce Lee <Bruce_Lee@quantatw.com> Change-Id: I4a8fb51b5e85190f908a40d9bf0545ec8167923a
show more ...
|
1d0d0120 | 29-Sep-2020 |
Vijay Khemka <vijaykhemka@fb.com> |
Add object manager
Added object manager to sensor node so that it can be queried mapper and GetManagedObjects method can be called.
Tested: verified this using busctl command and see object manager
Add object manager
Added object manager to sensor node so that it can be queried mapper and GetManagedObjects method can be called.
Tested: verified this using busctl command and see object manager interface has been added to this service.
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com> Change-Id: I53e361ea81cabbba78aca2cec4939601d615d232
show more ...
|
415dcd21 | 21-Sep-2020 |
Vijay Khemka <vijaykhemka@fb.com> |
Fix threshold checking
Fix a bug of undefined threshold value, if threshold is not defined then there will not be threshold monitoring
This is just fixing current issue but code can be enhanced for
Fix threshold checking
Fix a bug of undefined threshold value, if threshold is not defined then there will not be threshold monitoring
This is just fixing current issue but code can be enhanced for better handling, will modify it later.
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com> Change-Id: I8f54552f202ac1aeee14ad655d7846446f516bc4
show more ...
|
08797705 | 21-Sep-2020 |
Vijay Khemka <vijaykhemka@fb.com> |
Add unit to health sensor
Added unit property in dbus
Tested: Verfied by running on target and querying unit peoperty from dbus busctl get-property xyz.openbmc_project.HealthMon /xyz/openbmc_projec
Add unit to health sensor
Added unit property in dbus
Tested: Verfied by running on target and querying unit peoperty from dbus busctl get-property xyz.openbmc_project.HealthMon /xyz/openbmc_project/sensors/utilization/Memory xyz.openbmc_project.Sensor.Value Unit
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com> Change-Id: I3a4fe71e83992688cdcdd2bdff9c2037558cf12d
show more ...
|
b7a7b8a5 | 29-Jul-2020 |
Vijay Khemka <vijaykhemka@fb.com> |
Check threshold values
Added check threshold functionality and logging required messages.
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com> Change-Id: I02a1fdff43754a913abbadff74c440fe8eda9bd4 |
b38fd585 | 23-Jul-2020 |
Vijay Khemka <vijaykhemka@fb.com> |
Add sensor reading timer
Added timer for reading sensor at regular interval defined for each sensor in configuration file.
Tested: Verified this by running following busctrl command and checked val
Add sensor reading timer
Added timer for reading sensor at regular interval defined for each sensor in configuration file.
Tested: Verified this by running following busctrl command and checked value as it is changing regularly. busctl introspect --no-page xyz.openbmc_project.HealthMon /xyz/openbmc_project/sensors/utilization/CPU busctl introspect --no-page xyz.openbmc_project.HealthMon /xyz/openbmc_project/sensors/utilization/Memory
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com> Change-Id: I7da085e24b68c0b9f9bf1c13c567024c69f65d70
show more ...
|
1553776d | 22-Jul-2020 |
Vijay Khemka <vijaykhemka@fb.com> |
Add sensor read function
Added read functions for CPU and memory utilization and also class initilization for each sensor.
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com> Change-Id: I34de974435b37
Add sensor read function
Added read functions for CPU and memory utilization and also class initilization for each sensor.
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com> Change-Id: I34de974435b37f45a9a11719959d79b72aea9a46
show more ...
|
e279530e | 15-Jul-2020 |
Vijay Khemka <vijaykhemka@fb.com> |
Basic initial implementation
This is a base implementation which does following 1. create a daemon, 2. parse config file and create config object 3. create utilization sensor for given config option
Basic initial implementation
This is a base implementation which does following 1. create a daemon, 2. parse config file and create config object 3. create utilization sensor for given config options.
It currently support CPU and memory config only but it can be extended for other feature as well. Reading and updating sensor data will be in follow up patch.
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com> Change-Id: If52cfd3ff879d0d121836bf37e17e2cc63fa2a38
show more ...
|
62f16ec9 | 08-Jul-2020 |
Vijay Khemka <vijaykhemka@fb.com> |
Adding initial basic files
Added MAINTAINERS, LICENSE and cland-format files.
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com> Change-Id: I6e67b7623ea4ec46641255215604afaa3212175b |
bb51a69b | 15-Apr-2020 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Initial empty repository
|