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
Default Syscollector scan interval not set #15428
Default Syscollector scan interval not set #15428
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
85e9275
to
e5fb1f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@@ -46,14 +46,15 @@ static void parse_synchronization_section(wm_sys_t * syscollector, XML_NODE node | |||
} | |||
|
|||
// Parse XML configuration | |||
int wm_sys_read(const OS_XML *xml, XML_NODE node, wmodule *module) { | |||
int wm_syscollector_read(const OS_XML *xml, XML_NODE node, wmodule *module) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naming +1!
syscollector->interval *= 86400; | ||
syscollector->interval *= W_DAY_SECONDS; | ||
break; | ||
case 'h': | ||
syscollector->interval *= 3600; | ||
syscollector->interval *= W_HOUR_SECONDS; | ||
break; | ||
case 'm': | ||
syscollector->interval *= 60; | ||
syscollector->interval *= W_MINUTE_SECONDS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionality +1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
28cd479
Co-authored-by: Juan Nicolas Asselle <jnasselle@gmail.com>
QA review
|
Description
This PR sets the scan time interval for Syscollector that was missing.
Configuration options
Section commented
Logs/Alerts example
Getting Syscollector configuration from API.
Syscollector scan is not triggered one after another in a few seconds.