-
Notifications
You must be signed in to change notification settings - Fork 284
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
enh(network::fortinet::fortigate::restapi) - mode(licenses) : Add counter last_update #4964
enh(network::fortinet::fortigate::restapi) - mode(licenses) : Add counter last_update #4964
Conversation
Hi, ./centreon_plugins.pl --plugin=network::fortinet::fortigate::restapi::plugin --mode=licenses --hostname='xxxxxxxxxx' --port='xxxxx' --proto='https' --access-token='xxxxxxxx' --curl-opt="CURLOPT_SSL_VERIFYPEER => 0" --filter-name='malicious_urls' --unit='d' --warning-status='' --critical-status='%{status} !~ /licensed/i' --warning-last-update='' --critical-last-update='2' OK: License 'malicious_urls' status: licensed, expires in 2M 19h 10m 50s, last_update is 15h 5m 25s | 'malicious_urls#license.expires.days'=61d;;;0; Best regards, |
Hello :) This PR is listed and to allow its integration I need to understand its link (or not) with the PR #4801 because I feel that there are “duplicate” files. If this is the case, would it be possible to pull the two PRs into one? Anyway to allow us to integrate your contribution we would need data sets (anonymized) which would allow us to set up automated tests to ensure non-regression in the future around the plugin project. We can also support you in writing these tests if you wish. If necessary in the case of your PR we would need curls commands as well as JSON returns to correctly simulate the behavior of the API and validate the contribution proposed here. Best regards. |
Hi, Concerning PR #4801, I am having difficulties because the API does not return I would like to take this opportunity to ask another question regarding the vmware plugin. In the cmdxxxx.pm file in the ..connectors/vmware/src/centreon/vmware folder my @view_type = ('ClusterComputeResource',VirtualMachine'); Or should I make two calls : my $views_cluster = centreon::vmware::common::search_entities(command => $self, view_type => 'ClusterComputeResource', properties => @properties, filter => $filters); Thank you in advance for your feedback. |
Hello, could you please provide me with feedback regarding this contribution? Thank you in advance. |
Hello :) Sorry for the delay in replying. I haven't been able to find the data extracts for testing the PR you've proposed (we'd need the API output for testing the correct functioning of the parts of the code you've modified). For the second part about creating a vmware plugin I'm not sure to understand your needs maybe you should open a dedicated issue to discuss about this. |
Hello @lucie-dubrunfaut , |
Thanks a lot @chris-mvila ! |
Hi,
We have modified the licensing mode by adding the "last_update" option.
With this option, the plugin can monitor the last update of the databases.
By using the options "--unit", "--critical-last-update", and "--critical-status", we will be able to raise an alert if the last_update of the database exceeds xx days.
I remain at your disposal for any further information.
Best regards,