-
Notifications
You must be signed in to change notification settings - Fork 298
feat(apps::monitoring::zscaler::zdx::api): new plugin #5938
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
base: develop
Are you sure you want to change the base?
Conversation
Co-authored-by: Sylvain Cresto <[email protected]>
|
New Issues (1)Checkmarx found the following issues in this Pull Request
|
| "dependencies": [ | ||
| "libjson-perl" | ||
| ] |
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.
appears to be useless
| "perl(DateTime)", | ||
| "perl(JSON)" |
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.
appears to be useless
| use DateTime; | ||
| use JSON::XS; |
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.
appears to be useless
| foreach my $met (@$metrics) { | ||
| $data->{$met->{metric}} = -1; # -1 means no value has been recorded | ||
| LOOP_VALUES: | ||
| while ( my $dp = pop(@{$met->{datapoints}}) ) { |
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.
I find this more readable, but it's just my opinion
| while ( my $dp = pop(@{$met->{datapoints}}) ) { | |
| foreach my $dp (reverse @{$met->{datapoints}}) { |
|
|
||
| foreach (qw(key_id key_secret)) { | ||
| $self->{output}->option_exit(short_msg => "Mandatory option '$_' is missing.") if ($self->{$_} eq ''); | ||
| $self->{output}->option_exit(short_msg => "Option '$_' contains illegal characters '$1'") if ($self->{$_} =~ /([\b\f\n\r\t\"\\]+)/); |
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.
The display of the illegal character will probably not work correctly


Description
How to use this plugin:
discoverymode to get the applications names and IDs--application-id=<ID>option to specify the application you want to monitorlist-locationsmode to get the locations names and IDs--location-id=<ID>option to narrow the field of data to a specific locationIf you have an IT license, just use the host discovery provider and then the service discovery rule to get set.
Refs: CTOR-1961
Type of change
Checklist