-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop OS Command Extension #116
Comments
CherfaElyes
added a commit
that referenced
this issue
Apr 23, 2024
* Developed Os Command Extension * Made all the necessary changes on metricshub engine and agent * Tested the code using the metricshub CLI and the agent
CherfaElyes
added a commit
that referenced
this issue
Apr 23, 2024
* Refactored all unit tests * Refactored Super Connector Integration Test * Added Javadoc * Code enhancement
CherfaElyes
added a commit
that referenced
this issue
Apr 23, 2024
* Refactored SshConfiguration and OsCommandConfiguration * Added unit tests
CherfaElyes
added a commit
that referenced
this issue
Apr 23, 2024
* Completed Javadoc * Merged the EPIC branch into the current branch * Made all the necessary changes * Tested the metricshub using the Engine and the Agent
NassimBtk
added a commit
that referenced
this issue
Apr 24, 2024
* Implemented a new class `SudoInformation` to wrap information such as whether to use sudo, the sudo commands that require sudo and the sudo command key. * Prepare OsCommandHelper to be defined in the engine to define a set of utilities that are required in various extensions.
CherfaElyes
added a commit
that referenced
this issue
Apr 24, 2024
* Refactored OsCommandHelper to be OsCommandService * Moved back OsCommandResult to the metricshub engine
CherfaElyes
added a commit
that referenced
this issue
Apr 24, 2024
* Split OsCommandHelper into OsCommandHelper that was moved back to the MetricsHub engine since it's used by metricshub-wmi-extension and metricshub-winrm-extension. This also led to the creation of OsCommandService which is responsible for creating embeddedFiles, and pre-processing the Os Command queries before executing them by the OsCommandRequestExecutor. * Refactored tests to mock the right classes (OsCommandService or OsCommandHelper). * Corrected a tiny CLI display bug
NassimBtk
added a commit
that referenced
this issue
Apr 26, 2024
…-os-command-extension Issue #116: Develop OS Command Extension
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Check List
Agent
OsCommandConfiguration
andSshConfiguration
class which is located in themetricshub-oscommand-extension
. And adapt the ConfigHelper code so that we callIConfiguration#validateConfiguration
(OsCommandConfiguration
andSshConfiguration
) to validate the content of the OsCommand and SSH configuration.Map<Class<? extends IConfiguration>, IConfiguration> protocolConfigurations
map which is built inConfigHelper#buildHostConfiguration
.OsCommandConfigCli
class.sshConfigCli.toProtocol
to call theextensionManager
instance responsible of building the right IConfiguration for OsCommand protocol.ConfigHelperTest#testValidateOsCommandInfo()
andConfigHelperTest#testValidateSshInfo()
because the validation will be moved to the OsCommandConfiguration class in themetricshub-oscommand-extension
.Engine
org.sentrysoftware:ssh
dependency frommetricshub-engine
POM.OsCommandHelper
code to themetricshub-oscommand-extension
. Make sure to remove the call from theOsCommandHelper.run*
method and adapt the caller (SourceProcessor CriterionProcessor) to invoke the extensionManager correctly.OsCommandConfiguration.class
andSshConfiguration.class
mapping from theHostConfiguration#CONFIGURATION_TO_SOURCES_MAP
map.metricshub-oscommand-extension
module.ProtocolHealthCheckStrategy#checkSshHealth
to OsCommandExtension located at themetricshub-oscommand-extension
module. Make sure to remove the unused constants and methods.CriterionProcessor#CriterionTestResult process(@SpanAttribute("criterion.definition") OsCommandCriterion OsCommandCriterion)
to the appropriate class in themetricshub-oscommand-extension
module and call the extensionManager in thisprocess
method to execute criterion.SourceProcessor#process(@SpanAttribute("source.definition") final OsCommandSource oscommandSource)
to the appropriate class in themetricshub-oscommand-extension
module and call the extensionManager in thisprocess
method to execute the source.OsCommandConfigurationTest
class to the extension unit tests.SshConfigurationTest
class to the extension unit tests.Extension
metricshub-oscommand-extension
depends on themetricshub-oscommand-extension
/metricshub-oscommand-extension/src/main/resources/META-INF/services/org.sentrysoftware.metricshub.engine.extension.IProtocolExtension
file so that the ServiceLoader loads the extension implementation correctly at runtime.org.sentrysoftware:ssh
andorg.sentrysoftware:metricshub-oscommand-extension
)Packaging Windows and Linux
metricshub-oscommand-extension
as dependency.maven-dependency-plugin
, execution-id:unpack-extensions
and add theartifactItem
defining themetricshub-oscommand-extension
.The text was updated successfully, but these errors were encountered: